Ruby
2.5.0dev(2017-10-22revision60238)
|
Go to the source code of this file.
Macros | |
#define | sizeof_array(o) (sizeof o / sizeof o[0]) |
#define | f_negate(x) rb_funcall(x, rb_intern("-@"), 0) |
#define | f_add(x, y) rb_funcall(x, '+', 1, y) |
#define | f_sub(x, y) rb_funcall(x, '-', 1, y) |
#define | f_mul(x, y) rb_funcall(x, '*', 1, y) |
#define | f_div(x, y) rb_funcall(x, '/', 1, y) |
#define | f_idiv(x, y) rb_funcall(x, rb_intern("div"), 1, y) |
#define | f_mod(x, y) rb_funcall(x, '%', 1, y) |
#define | f_expt(x, y) rb_funcall(x, rb_intern("**"), 1, y) |
#define | f_lt_p(x, y) rb_funcall(x, '<', 1, y) |
#define | f_gt_p(x, y) rb_funcall(x, '>', 1, y) |
#define | f_le_p(x, y) rb_funcall(x, rb_intern("<="), 1, y) |
#define | f_ge_p(x, y) rb_funcall(x, rb_intern(">="), 1, y) |
#define | f_match(r, s) rb_funcall(r, rb_intern("match"), 1, s) |
#define | f_aref(o, i) rb_funcall(o, rb_intern("[]"), 1, i) |
#define | f_end(o, i) rb_funcall(o, rb_intern("end"), 1, i) |
#define | issign(c) ((c) == '-' || (c) == '+') |
#define | NUM_PATTERN_P() num_pattern_p(&fmt[fi + 1]) |
#define | set_hash(k, v) rb_hash_aset(hash, ID2SYM(rb_intern(k)), v) |
#define | ref_hash(k) rb_hash_aref(hash, ID2SYM(rb_intern(k))) |
#define | del_hash(k) rb_hash_delete(hash, ID2SYM(rb_intern(k))) |
#define | fail() |
#define | fail_p() (!NIL_P(ref_hash("_fail"))) |
#define | READ_DIGITS(n, w) |
#define | READ_DIGITS_MAX(n) READ_DIGITS(n, LONG_MAX) |
#define | recur(fmt) |
Functions | |
VALUE | date_zone_to_diff (VALUE) |
VALUE | date__strptime (const char *str, size_t slen, const char *fmt, size_t flen, VALUE hash) |
#define del_hash | ( | k | ) | rb_hash_delete(hash, ID2SYM(rb_intern(k))) |
Definition at line 118 of file date_strptime.c.
#define f_add | ( | x, | |
y | |||
) | rb_funcall(x, '+', 1, y) |
Definition at line 39 of file date_strptime.c.
#define f_aref | ( | o, | |
i | |||
) | rb_funcall(o, rb_intern("[]"), 1, i) |
Definition at line 53 of file date_strptime.c.
#define f_div | ( | x, | |
y | |||
) | rb_funcall(x, '/', 1, y) |
Definition at line 42 of file date_strptime.c.
#define f_end | ( | o, | |
i | |||
) | rb_funcall(o, rb_intern("end"), 1, i) |
Definition at line 54 of file date_strptime.c.
#define f_expt | ( | x, | |
y | |||
) | rb_funcall(x, rb_intern("**"), 1, y) |
Definition at line 45 of file date_strptime.c.
#define f_ge_p | ( | x, | |
y | |||
) | rb_funcall(x, rb_intern(">="), 1, y) |
Definition at line 50 of file date_strptime.c.
#define f_gt_p | ( | x, | |
y | |||
) | rb_funcall(x, '>', 1, y) |
Definition at line 48 of file date_strptime.c.
#define f_idiv | ( | x, | |
y | |||
) | rb_funcall(x, rb_intern("div"), 1, y) |
Definition at line 43 of file date_strptime.c.
#define f_le_p | ( | x, | |
y | |||
) | rb_funcall(x, rb_intern("<="), 1, y) |
Definition at line 49 of file date_strptime.c.
#define f_lt_p | ( | x, | |
y | |||
) | rb_funcall(x, '<', 1, y) |
Definition at line 47 of file date_strptime.c.
#define f_match | ( | r, | |
s | |||
) | rb_funcall(r, rb_intern("match"), 1, s) |
Definition at line 52 of file date_strptime.c.
#define f_mod | ( | x, | |
y | |||
) | rb_funcall(x, '%', 1, y) |
Definition at line 44 of file date_strptime.c.
#define f_mul | ( | x, | |
y | |||
) | rb_funcall(x, '*', 1, y) |
Definition at line 41 of file date_strptime.c.
#define f_negate | ( | x | ) | rb_funcall(x, rb_intern("-@"), 0) |
Definition at line 38 of file date_strptime.c.
#define f_sub | ( | x, | |
y | |||
) | rb_funcall(x, '-', 1, y) |
Definition at line 40 of file date_strptime.c.
#define fail | ( | ) |
Definition at line 120 of file date_strptime.c.
Referenced by ruby_setenv().
Definition at line 126 of file date_strptime.c.
#define issign | ( | c | ) | ((c) == '-' || (c) == '+') |
Definition at line 56 of file date_strptime.c.
#define NUM_PATTERN_P | ( | ) | num_pattern_p(&fmt[fi + 1]) |
Definition at line 75 of file date_strptime.c.
#define READ_DIGITS | ( | n, | |
w | |||
) |
Definition at line 128 of file date_strptime.c.
#define READ_DIGITS_MAX | ( | n | ) | READ_DIGITS(n, LONG_MAX) |
Definition at line 137 of file date_strptime.c.
#define recur | ( | fmt | ) |
Definition at line 149 of file date_strptime.c.
Referenced by rb_obj_singleton_methods().
#define ref_hash | ( | k | ) | rb_hash_aref(hash, ID2SYM(rb_intern(k))) |
Definition at line 117 of file date_strptime.c.
#define set_hash | ( | k, | |
v | |||
) | rb_hash_aset(hash, ID2SYM(rb_intern(k)), v) |
Definition at line 116 of file date_strptime.c.
#define sizeof_array | ( | o | ) | (sizeof o / sizeof o[0]) |
Definition at line 36 of file date_strptime.c.
Definition at line 653 of file date_strptime.c.
Definition at line 353 of file date_parse.c.
References ALLOCV_N, Qnil, RSTRING_LEN, and RSTRING_PTR.