Ruby: include/ruby/internal/arithmetic/off_t.h Source File

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

off_t.h
Go to the documentation of this file.
1#ifndef RBIMPL_ARITHMETIC_OFF_T_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_ARITHMETIC_OFF_T_H
23#include "ruby/internal/config.h"
24#include "ruby/internal/arithmetic/int.h"
25#include "ruby/internal/arithmetic/long.h"
26#include "ruby/internal/arithmetic/long_long.h"
27#include "ruby/backward/2/long_long.h"
28
29#ifdef OFFT2NUM
30# /* take that. */
31#elif SIZEOF_OFF_T == SIZEOF_LONG_LONG
32# define OFFT2NUM RB_LL2NUM
33#elif SIZEOF_OFF_T == SIZEOF_LONG
34# define OFFT2NUM RB_LONG2NUM
35#else
36# define OFFT2NUM RB_INT2NUM
37#endif
38
39#ifdef NUM2OFFT
40# /* take that. */
41#elif SIZEOF_OFF_T == SIZEOF_LONG_LONG
42# define NUM2OFFT RB_NUM2LL
43#elif SIZEOF_OFF_T == SIZEOF_LONG
44# define NUM2OFFT RB_NUM2LONG
45#else
46# define NUM2OFFT RB_NUM2INT
47#endif
48
49#endif /* RBIMPL_ARITHMETIC_OFF_T_H */
long_long.h
Defines old #LONG_LONG.
config.h
Thin wrapper to ruby/config.h.
int.h
Arithmetic conversion between C's int and Ruby's.
long_long.h
Arithmetic conversion between C's long long and Ruby's.
long.h
Arithmetic conversion between C's long and Ruby's.