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
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 */
Defines old #LONG_LONG.
Thin wrapper to ruby/config.h.
Arithmetic conversion between C's int and Ruby's.
Arithmetic conversion between C's long long and Ruby's.
Arithmetic conversion between C's long and Ruby's.