Ruby: include/ruby/backward/2/inttypes.h File Reference

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

Macros
inttypes.h File Reference

C99 shim for `<inttypes.h>` More...

`#include "ruby/internal/config.h"`
`#include "ruby/internal/value.h"`

Go to the source code of this file.

## Macros
#define | PRI_INT_PREFIX ""
#define | PRI_LONG_PREFIX "l"
#define | PRI_SHORT_PREFIX "h"
#define | PRIdPTR PRI_PTR_PREFIX"d"
#define | PRIiPTR PRI_PTR_PREFIX"i"
#define | PRIoPTR PRI_PTR_PREFIX"o"
#define | PRIuPTR PRI_PTR_PREFIX"u"
#define | PRIxPTR PRI_PTR_PREFIX"x"
#define | RUBY_PRI_VALUE_MARK "\v"
#define | PRIdVALUE PRI_VALUE_PREFIX"d"
#define | PRIoVALUE PRI_VALUE_PREFIX"o"
#define | PRIuVALUE PRI_VALUE_PREFIX"u"
#define | PRIxVALUE PRI_VALUE_PREFIX"x"
#define | PRIsVALUE PRI_VALUE_PREFIX"i" RUBY_PRI_VALUE_MARK
#define | PRI_TIMET_PREFIX
#define | PRI_PTRDIFF_PREFIX ""
#define | PRIdPTRDIFF PRI_PTRDIFF_PREFIX"d"
#define | PRIiPTRDIFF PRI_PTRDIFF_PREFIX"i"
#define | PRIoPTRDIFF PRI_PTRDIFF_PREFIX"o"
#define | PRIuPTRDIFF PRI_PTRDIFF_PREFIX"u"
#define | PRIxPTRDIFF PRI_PTRDIFF_PREFIX"x"
#define | PRI_SIZE_PREFIX ""
#define | PRIdSIZE PRI_SIZE_PREFIX"d"
#define | PRIiSIZE PRI_SIZE_PREFIX"i"
#define | PRIoSIZE PRI_SIZE_PREFIX"o"
#define | PRIuSIZE PRI_SIZE_PREFIX"u"
#define | PRIxSIZE PRI_SIZE_PREFIX"x"

## Detailed Description

C99 shim for `<inttypes.h>`

Author
  Ruby developers ruby-.nosp@m.core.nosp@m.@ruby.nosp@m.-lan.nosp@m.g.org

Copyright
  This file is a part of the programming language Ruby. Permission is hereby granted, to either redistribute and/or modify this file, provided that the conditions mentioned in the file COPYING are met. Consult the file for details.

Warning
  Symbols prefixed with either `RBIMPL` or `rbimpl` are implementation details. Don't take them as canon. They could rapidly appear then vanish. The name (path) of this header file is also an implementation detail. Do not expect it to persist at the place it is now. Developers are free to move it anywhere anytime at will.

Note
  To ruby-core: remember that this header can be possibly recursively included from extension libraries written in C++. Do not expect for instance `__VA_ARGS__` is always available. We assume C99 for ruby itself but we don't assume languages of extension libraries. They could be written in C++98.

Definition in file inttypes.h.

## Macro Definition Documentation

## ◆ PRI_INT_PREFIX

#define PRI_INT_PREFIX ""

Definition at line 32 of file inttypes.h.

## ◆ PRI_LONG_PREFIX

#define PRI_LONG_PREFIX "l"

Definition at line 36 of file inttypes.h.

## ◆ PRI_PTRDIFF_PREFIX

#define PRI_PTRDIFF_PREFIX ""

Definition at line 97 of file inttypes.h.

## ◆ PRI_SHORT_PREFIX

#define PRI_SHORT_PREFIX "h"

Definition at line 40 of file inttypes.h.

## ◆ PRI_SIZE_PREFIX

#define PRI_SIZE_PREFIX ""

Definition at line 116 of file inttypes.h.

## ◆ PRI_TIMET_PREFIX

#define PRI_TIMET_PREFIX

Definition at line 87 of file inttypes.h.

## ◆ PRIdPTR

#define PRIdPTR PRI_PTR_PREFIX"d"

Definition at line 52 of file inttypes.h.

## ◆ PRIdPTRDIFF

#define PRIdPTRDIFF PRI_PTRDIFF_PREFIX"d"

Definition at line 105 of file inttypes.h.

## ◆ PRIdSIZE

#define PRIdSIZE PRI_SIZE_PREFIX"d"

Definition at line 124 of file inttypes.h.

## ◆ PRIdVALUE

#define PRIdVALUE PRI_VALUE_PREFIX"d"

Definition at line 72 of file inttypes.h.

## ◆ PRIiPTR

#define PRIiPTR PRI_PTR_PREFIX"i"

Definition at line 53 of file inttypes.h.

## ◆ PRIiPTRDIFF

#define PRIiPTRDIFF PRI_PTRDIFF_PREFIX"i"

Definition at line 106 of file inttypes.h.

## ◆ PRIiSIZE

#define PRIiSIZE PRI_SIZE_PREFIX"i"

Definition at line 125 of file inttypes.h.

## ◆ PRIoPTR

#define PRIoPTR PRI_PTR_PREFIX"o"

Definition at line 54 of file inttypes.h.

## ◆ PRIoPTRDIFF

#define PRIoPTRDIFF PRI_PTRDIFF_PREFIX"o"

Definition at line 107 of file inttypes.h.

## ◆ PRIoSIZE

#define PRIoSIZE PRI_SIZE_PREFIX"o"

Definition at line 126 of file inttypes.h.

## ◆ PRIoVALUE

#define PRIoVALUE PRI_VALUE_PREFIX"o"

Definition at line 73 of file inttypes.h.

## ◆ PRIsVALUE

#define PRIsVALUE PRI_VALUE_PREFIX"i" RUBY_PRI_VALUE_MARK

Definition at line 77 of file inttypes.h.

## ◆ PRIuPTR

#define PRIuPTR PRI_PTR_PREFIX"u"

Definition at line 55 of file inttypes.h.

## ◆ PRIuPTRDIFF

#define PRIuPTRDIFF PRI_PTRDIFF_PREFIX"u"

Definition at line 108 of file inttypes.h.

## ◆ PRIuSIZE

#define PRIuSIZE PRI_SIZE_PREFIX"u"

Definition at line 127 of file inttypes.h.

## ◆ PRIuVALUE

#define PRIuVALUE PRI_VALUE_PREFIX"u"

Definition at line 74 of file inttypes.h.

## ◆ PRIxPTR

#define PRIxPTR PRI_PTR_PREFIX"x"

Definition at line 56 of file inttypes.h.

## ◆ PRIXPTR

#define PRIXPTR PRI_PTR_PREFIX"X"

Definition at line 57 of file inttypes.h.

## ◆ PRIxPTRDIFF

#define PRIxPTRDIFF PRI_PTRDIFF_PREFIX"x"

Definition at line 109 of file inttypes.h.

## ◆ PRIXPTRDIFF

#define PRIXPTRDIFF PRI_PTRDIFF_PREFIX"X"

Definition at line 110 of file inttypes.h.

## ◆ PRIxSIZE

#define PRIxSIZE PRI_SIZE_PREFIX"x"

Definition at line 128 of file inttypes.h.

## ◆ PRIXSIZE

#define PRIXSIZE PRI_SIZE_PREFIX"X"

Definition at line 129 of file inttypes.h.

## ◆ PRIxVALUE

#define PRIxVALUE PRI_VALUE_PREFIX"x"

Definition at line 75 of file inttypes.h.

## ◆ PRIXVALUE

#define PRIXVALUE PRI_VALUE_PREFIX"X"

Definition at line 76 of file inttypes.h.

## ◆ RUBY_PRI_VALUE_MARK

#define RUBY_PRI_VALUE_MARK "\v"

Definition at line 61 of file inttypes.h.