include/ruby/internal/arithmetic/off_t.h: add doxygen
Must not be a bad idea to improve documents. [ci skip]
This commit is contained in:
parent
5289552e53
commit
92150fde85
Notes:
git
2021-09-10 20:01:22 +09:00
@ -26,6 +26,7 @@
|
|||||||
#include "ruby/internal/arithmetic/long_long.h"
|
#include "ruby/internal/arithmetic/long_long.h"
|
||||||
#include "ruby/backward/2/long_long.h"
|
#include "ruby/backward/2/long_long.h"
|
||||||
|
|
||||||
|
/** Converts a C's `off_t` into an instance of ::rb_cInteger. */
|
||||||
#ifdef OFFT2NUM
|
#ifdef OFFT2NUM
|
||||||
# /* take that. */
|
# /* take that. */
|
||||||
#elif SIZEOF_OFF_T == SIZEOF_LONG_LONG
|
#elif SIZEOF_OFF_T == SIZEOF_LONG_LONG
|
||||||
@ -36,6 +37,7 @@
|
|||||||
# define OFFT2NUM RB_INT2NUM
|
# define OFFT2NUM RB_INT2NUM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/** Converts an instance of ::rb_cNumeric into C's `off_t`. */
|
||||||
#ifdef NUM2OFFT
|
#ifdef NUM2OFFT
|
||||||
# /* take that. */
|
# /* take that. */
|
||||||
#elif SIZEOF_OFF_T == SIZEOF_LONG_LONG
|
#elif SIZEOF_OFF_T == SIZEOF_LONG_LONG
|
||||||
@ -46,6 +48,7 @@
|
|||||||
# define NUM2OFFT RB_NUM2INT
|
# define NUM2OFFT RB_NUM2INT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/** A rb_sprintf() format prefix to be used for an `off_t` parameter. */
|
||||||
#ifdef PRI_OFFT_PREFIX
|
#ifdef PRI_OFFT_PREFIX
|
||||||
# /* take that. */
|
# /* take that. */
|
||||||
#elif SIZEOF_OFF_T == SIZEOF_LONG_LONG
|
#elif SIZEOF_OFF_T == SIZEOF_LONG_LONG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user