1#ifndef RBIMPL_ARITHMETIC_OFF_T_H
2#define RBIMPL_ARITHMETIC_OFF_T_H
23#include "ruby/internal/config.h"
32#elif SIZEOF_OFF_T == SIZEOF_LONG_LONG
33# define OFFT2NUM RB_LL2NUM
34#elif SIZEOF_OFF_T == SIZEOF_LONG
35# define OFFT2NUM RB_LONG2NUM
37# define OFFT2NUM RB_INT2NUM
43#elif SIZEOF_OFF_T == SIZEOF_LONG_LONG
44# define NUM2OFFT RB_NUM2LL
45#elif SIZEOF_OFF_T == SIZEOF_LONG
46# define NUM2OFFT RB_NUM2LONG
48# define NUM2OFFT RB_NUM2INT
54#elif SIZEOF_OFF_T == SIZEOF_LONG_LONG
55# define PRI_OFFT_PREFIX PRI_LL_PREFIX
56#elif SIZEOF_OFF_T == SIZEOF_LONG
57# define PRI_OFFT_PREFIX PRI_LONG_PREFIX
59# define PRI_OFFT_PREFIX PRI_INT_PREFIX
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.