|
Ruby
2.5.0dev(2017-10-22revision60238)
|
#include "ruby.h"#include "ruby/encoding.h"#include "ruby/util.h"#include <math.h>#include <time.h>#include <assert.h>#include "date_tmx.h"#include <errno.h>Go to the source code of this file.
Data Structures | |
| struct | SimpleDateData |
| struct | ComplexDateData |
| union | DateData |
Macros | |
| #define | NDEBUG |
| #define | USE_PACK |
| #define | f_boolcast(x) ((x) ? Qtrue : Qfalse) |
| #define | f_abs(x) rb_funcall(x, rb_intern("abs"), 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_quo(x, y) rb_funcall(x, rb_intern("quo"), 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_remainder(x, y) rb_funcall(x, rb_intern("remainder"), 1, y) |
| #define | f_expt(x, y) rb_funcall(x, rb_intern("**"), 1, y) |
| #define | f_floor(x) rb_funcall(x, rb_intern("floor"), 0) |
| #define | f_ceil(x) rb_funcall(x, rb_intern("ceil"), 0) |
| #define | f_truncate(x) rb_funcall(x, rb_intern("truncate"), 0) |
| #define | f_round(x) rb_funcall(x, rb_intern("round"), 0) |
| #define | f_to_i(x) rb_funcall(x, rb_intern("to_i"), 0) |
| #define | f_to_r(x) rb_funcall(x, rb_intern("to_r"), 0) |
| #define | f_to_s(x) rb_funcall(x, rb_intern("to_s"), 0) |
| #define | f_inspect(x) rb_funcall(x, rb_intern("inspect"), 0) |
| #define | f_add3(x, y, z) f_add(f_add(x, y), z) |
| #define | f_sub3(x, y, z) f_sub(f_sub(x, y), z) |
| #define | f_nonzero_p(x) (!f_zero_p(x)) |
| #define | f_positive_p(x) (!f_negative_p(x)) |
| #define | f_ajd(x) rb_funcall(x, rb_intern("ajd"), 0) |
| #define | f_jd(x) rb_funcall(x, rb_intern("jd"), 0) |
| #define | f_year(x) rb_funcall(x, rb_intern("year"), 0) |
| #define | f_mon(x) rb_funcall(x, rb_intern("mon"), 0) |
| #define | f_mday(x) rb_funcall(x, rb_intern("mday"), 0) |
| #define | f_wday(x) rb_funcall(x, rb_intern("wday"), 0) |
| #define | f_hour(x) rb_funcall(x, rb_intern("hour"), 0) |
| #define | f_min(x) rb_funcall(x, rb_intern("min"), 0) |
| #define | f_sec(x) rb_funcall(x, rb_intern("sec"), 0) |
| #define | NDIV(x, y) (-(-((x)+1)/(y))-1) |
| #define | NMOD(x, y) ((y)-(-((x)+1)%(y))-1) |
| #define | DIV(n, d) ((n)<0 ? NDIV((n),(d)) : (n)/(d)) |
| #define | MOD(n, d) ((n)<0 ? NMOD((n),(d)) : (n)%(d)) |
| #define | HAVE_JD (1 << 0) |
| #define | HAVE_DF (1 << 1) |
| #define | HAVE_CIVIL (1 << 2) |
| #define | HAVE_TIME (1 << 3) |
| #define | COMPLEX_DAT (1 << 7) |
| #define | have_jd_p(x) ((x)->flags & HAVE_JD) |
| #define | have_df_p(x) ((x)->flags & HAVE_DF) |
| #define | have_civil_p(x) ((x)->flags & HAVE_CIVIL) |
| #define | have_time_p(x) ((x)->flags & HAVE_TIME) |
| #define | complex_dat_p(x) ((x)->flags & COMPLEX_DAT) |
| #define | simple_dat_p(x) (!complex_dat_p(x)) |
| #define | ITALY 2299161 /* 1582-10-15 */ |
| #define | ENGLAND 2361222 /* 1752-09-14 */ |
| #define | JULIAN positive_inf |
| #define | GREGORIAN negative_inf |
| #define | DEFAULT_SG ITALY |
| #define | UNIX_EPOCH_IN_CJD INT2FIX(2440588) /* 1970-01-01 */ |
| #define | MINUTE_IN_SECONDS 60 |
| #define | HOUR_IN_SECONDS 3600 |
| #define | DAY_IN_SECONDS 86400 |
| #define | SECOND_IN_MILLISECONDS 1000 |
| #define | SECOND_IN_NANOSECONDS 1000000000 |
| #define | JC_PERIOD0 1461 /* 365.25 * 4 */ |
| #define | GC_PERIOD0 146097 /* 365.2425 * 400 */ |
| #define | CM_PERIOD0 71149239 /* (lcm 7 1461 146097) */ |
| #define | CM_PERIOD (0xfffffff / CM_PERIOD0 * CM_PERIOD0) |
| #define | CM_PERIOD_JCY (CM_PERIOD / JC_PERIOD0 * 4) |
| #define | CM_PERIOD_GCY (CM_PERIOD / GC_PERIOD0 * 400) |
| #define | REFORM_BEGIN_YEAR 1582 |
| #define | REFORM_END_YEAR 1930 |
| #define | REFORM_BEGIN_JD 2298874 /* ns 1582-01-01 */ |
| #define | REFORM_END_JD 2426355 /* os 1930-12-31 */ |
| #define | SEC_WIDTH 6 |
| #define | MIN_WIDTH 6 |
| #define | HOUR_WIDTH 5 |
| #define | MDAY_WIDTH 5 |
| #define | MON_WIDTH 4 |
| #define | SEC_SHIFT 0 |
| #define | MIN_SHIFT SEC_WIDTH |
| #define | HOUR_SHIFT (MIN_WIDTH + SEC_WIDTH) |
| #define | MDAY_SHIFT (HOUR_WIDTH + MIN_WIDTH + SEC_WIDTH) |
| #define | MON_SHIFT (MDAY_WIDTH + HOUR_WIDTH + MIN_WIDTH + SEC_WIDTH) |
| #define | PK_MASK(x) ((1 << (x)) - 1) |
| #define | EX_SEC(x) (((x) >> SEC_SHIFT) & PK_MASK(SEC_WIDTH)) |
| #define | EX_MIN(x) (((x) >> MIN_SHIFT) & PK_MASK(MIN_WIDTH)) |
| #define | EX_HOUR(x) (((x) >> HOUR_SHIFT) & PK_MASK(HOUR_WIDTH)) |
| #define | EX_MDAY(x) (((x) >> MDAY_SHIFT) & PK_MASK(MDAY_WIDTH)) |
| #define | EX_MON(x) (((x) >> MON_SHIFT) & PK_MASK(MON_WIDTH)) |
| #define | PACK5(m, d, h, min, s) |
| #define | PACK2(m, d) (((m) << MON_SHIFT) | ((d) << MDAY_SHIFT)) |
| #define | date_sg_t double |
| #define | get_d1(x) |
| #define | get_d1a(x) |
| #define | get_d1b(x) |
| #define | get_d2(x, y) |
| #define | set_to_simple(obj, x, _nth, _jd, _sg, _year, _mon, _mday, _flags) |
| #define | set_to_complex(obj, x, _nth, _jd, _df, _sf, _of, _sg, _year, _mon, _mday, _hour, _min, _sec, _flags) |
| #define | copy_simple_to_complex(obj, x, y) |
| #define | copy_complex_to_simple(obj, x, y) |
| #define | canonicalize_jd(_nth, _jd) |
| #define | HALF_DAYS_IN_SECONDS (DAY_IN_SECONDS / 2) |
| #define | decode_offset(of, s, h, m) |
| #define | valid_sg(sg) |
| #define | jd_trunc d_trunc |
| #define | k_trunc d_trunc |
| #define | num2num_with_frac(s, n) |
| #define | num2int_with_frac(s, n) |
| #define | canon24oc() |
| #define | add_frac() |
| #define | val2sg(vsg, dsg) |
| #define | set_hash0(k, v) rb_hash_aset(hash, k, v) |
| #define | ref_hash0(k) rb_hash_aref(hash, k) |
| #define | del_hash0(k) rb_hash_delete(hash, k) |
| #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 | sym(x) ID2SYM(rb_intern(x)) |
| #define | val2off(vof, iof) |
| #define | SMALLBUF 100 |
| #define | MILLISECOND_IN_NANOSECONDS 1000000 |
| #define | f_subsec(x) rb_funcall(x, rb_intern("subsec"), 0) |
| #define | f_utc_offset(x) rb_funcall(x, rb_intern("utc_offset"), 0) |
| #define | f_local3(x, y, m, d) rb_funcall(x, rb_intern("local"), 3, y, m, d) |
| #define | rb_intern(str) rb_intern_const(str) |
| #define | f_public(m, s) |
Enumerations | |
| enum | { DECIMAL_SIZE_OF_LONG = DECIMAL_SIZE_OF_BITS(CHAR_BIT*sizeof(long)), JISX0301_DATE_SIZE = DECIMAL_SIZE_OF_LONG+8 } |
Functions | |
| VALUE | date_zone_to_diff (VALUE) |
| VALUE | date__strptime (const char *str, size_t slen, const char *fmt, size_t flen, VALUE hash) |
| VALUE | date__parse (VALUE str, VALUE comp) |
| VALUE | date__iso8601 (VALUE) |
| VALUE | date__rfc3339 (VALUE) |
| VALUE | date__xmlschema (VALUE) |
| VALUE | date__rfc2822 (VALUE) |
| VALUE | date__httpdate (VALUE) |
| VALUE | date__jisx0301 (VALUE) |
| size_t | date_strftime (char *s, size_t maxsize, const char *format, const struct tmx *tmx) |
| void | Init_date_core (void) |
| #define add_frac | ( | ) |
Definition at line 3237 of file date_core.c.
| #define canon24oc | ( | ) |
Definition at line 3229 of file date_core.c.
| #define canonicalize_jd | ( | _nth, | |
| _jd | |||
| ) |
Definition at line 1111 of file date_core.c.
| #define CM_PERIOD (0xfffffff / CM_PERIOD0 * CM_PERIOD0) |
Definition at line 183 of file date_core.c.
| #define CM_PERIOD0 71149239 /* (lcm 7 1461 146097) */ |
Definition at line 182 of file date_core.c.
| #define CM_PERIOD_GCY (CM_PERIOD / GC_PERIOD0 * 400) |
Definition at line 185 of file date_core.c.
| #define CM_PERIOD_JCY (CM_PERIOD / JC_PERIOD0 * 4) |
Definition at line 184 of file date_core.c.
| #define COMPLEX_DAT (1 << 7) |
Definition at line 157 of file date_core.c.
| #define complex_dat_p | ( | x | ) | ((x)->flags & COMPLEX_DAT) |
Definition at line 163 of file date_core.c.
| #define copy_complex_to_simple | ( | obj, | |
| x, | |||
| y | |||
| ) |
Definition at line 417 of file date_core.c.
| #define copy_simple_to_complex | ( | obj, | |
| x, | |||
| y | |||
| ) |
Definition at line 391 of file date_core.c.
| #define date_sg_t double |
Definition at line 228 of file date_core.c.
| #define DAY_IN_SECONDS 86400 |
Definition at line 176 of file date_core.c.
| #define decode_offset | ( | of, | |
| s, | |||
| h, | |||
| m | |||
| ) |
Definition at line 1930 of file date_core.c.
| #define DEFAULT_SG ITALY |
Definition at line 170 of file date_core.c.
| #define del_hash | ( | k | ) | rb_hash_delete(hash, ID2SYM(rb_intern(k))) |
Definition at line 3684 of file date_core.c.
| #define del_hash0 | ( | k | ) | rb_hash_delete(hash, k) |
Definition at line 3680 of file date_core.c.
| #define DIV | ( | n, | |
| d | |||
| ) | ((n)<0 ? NDIV((n),(d)) : (n)/(d)) |
Definition at line 150 of file date_core.c.
| #define ENGLAND 2361222 /* 1752-09-14 */ |
Definition at line 167 of file date_core.c.
| #define EX_HOUR | ( | x | ) | (((x) >> HOUR_SHIFT) & PK_MASK(HOUR_WIDTH)) |
Definition at line 209 of file date_core.c.
| #define EX_MDAY | ( | x | ) | (((x) >> MDAY_SHIFT) & PK_MASK(MDAY_WIDTH)) |
Definition at line 210 of file date_core.c.
Definition at line 208 of file date_core.c.
Definition at line 211 of file date_core.c.
Definition at line 207 of file date_core.c.
| #define f_abs | ( | x | ) | rb_funcall(x, rb_intern("abs"), 0) |
Definition at line 30 of file date_core.c.
Referenced by rb_flt_rationalize_with_prec().
| #define f_add | ( | x, | |
| y | |||
| ) | rb_funcall(x, '+', 1, y) |
Definition at line 32 of file date_core.c.
Definition at line 51 of file date_core.c.
| #define f_ajd | ( | x | ) | rb_funcall(x, rb_intern("ajd"), 0) |
Definition at line 137 of file date_core.c.
Definition at line 28 of file date_core.c.
| #define f_ceil | ( | x | ) | rb_funcall(x, rb_intern("ceil"), 0) |
Definition at line 42 of file date_core.c.
| #define f_div | ( | x, | |
| y | |||
| ) | rb_funcall(x, '/', 1, y) |
Definition at line 35 of file date_core.c.
| #define f_expt | ( | x, | |
| y | |||
| ) | rb_funcall(x, rb_intern("**"), 1, y) |
Definition at line 40 of file date_core.c.
| #define f_floor | ( | x | ) | rb_funcall(x, rb_intern("floor"), 0) |
Definition at line 41 of file date_core.c.
| #define f_hour | ( | x | ) | rb_funcall(x, rb_intern("hour"), 0) |
Definition at line 143 of file date_core.c.
| #define f_idiv | ( | x, | |
| y | |||
| ) | rb_funcall(x, rb_intern("div"), 1, y) |
Definition at line 37 of file date_core.c.
| #define f_inspect | ( | x | ) | rb_funcall(x, rb_intern("inspect"), 0) |
Definition at line 49 of file date_core.c.
| #define f_jd | ( | x | ) | rb_funcall(x, rb_intern("jd"), 0) |
Definition at line 138 of file date_core.c.
| #define f_local3 | ( | x, | |
| y, | |||
| m, | |||
| d | |||
| ) | rb_funcall(x, rb_intern("local"), 3, y, m, d) |
Definition at line 8440 of file date_core.c.
| #define f_mday | ( | x | ) | rb_funcall(x, rb_intern("mday"), 0) |
Definition at line 141 of file date_core.c.
| #define f_min | ( | x | ) | rb_funcall(x, rb_intern("min"), 0) |
Definition at line 144 of file date_core.c.
| #define f_mod | ( | x, | |
| y | |||
| ) | rb_funcall(x, '%', 1, y) |
Definition at line 38 of file date_core.c.
| #define f_mon | ( | x | ) | rb_funcall(x, rb_intern("mon"), 0) |
Definition at line 140 of file date_core.c.
| #define f_mul | ( | x, | |
| y | |||
| ) | rb_funcall(x, '*', 1, y) |
Definition at line 34 of file date_core.c.
| #define f_negate | ( | x | ) | rb_funcall(x, rb_intern("-@"), 0) |
Definition at line 31 of file date_core.c.
| #define f_nonzero_p | ( | x | ) | (!f_zero_p(x)) |
Definition at line 125 of file date_core.c.
| #define f_positive_p | ( | x | ) | (!f_negative_p(x)) |
Definition at line 135 of file date_core.c.
| #define f_public | ( | m, | |
| s | |||
| ) |
| #define f_quo | ( | x, | |
| y | |||
| ) | rb_funcall(x, rb_intern("quo"), 1, y) |
Definition at line 36 of file date_core.c.
| #define f_remainder | ( | x, | |
| y | |||
| ) | rb_funcall(x, rb_intern("remainder"), 1, y) |
Definition at line 39 of file date_core.c.
| #define f_round | ( | x | ) | rb_funcall(x, rb_intern("round"), 0) |
Definition at line 44 of file date_core.c.
| #define f_sec | ( | x | ) | rb_funcall(x, rb_intern("sec"), 0) |
Definition at line 145 of file date_core.c.
| #define f_sub | ( | x, | |
| y | |||
| ) | rb_funcall(x, '-', 1, y) |
Definition at line 33 of file date_core.c.
Definition at line 52 of file date_core.c.
| #define f_subsec | ( | x | ) | rb_funcall(x, rb_intern("subsec"), 0) |
Definition at line 8438 of file date_core.c.
| #define f_to_i | ( | x | ) | rb_funcall(x, rb_intern("to_i"), 0) |
Definition at line 46 of file date_core.c.
| #define f_to_r | ( | x | ) | rb_funcall(x, rb_intern("to_r"), 0) |
Definition at line 47 of file date_core.c.
| #define f_to_s | ( | x | ) | rb_funcall(x, rb_intern("to_s"), 0) |
Definition at line 48 of file date_core.c.
| #define f_truncate | ( | x | ) | rb_funcall(x, rb_intern("truncate"), 0) |
Definition at line 43 of file date_core.c.
| #define f_utc_offset | ( | x | ) | rb_funcall(x, rb_intern("utc_offset"), 0) |
Definition at line 8439 of file date_core.c.
| #define f_wday | ( | x | ) | rb_funcall(x, rb_intern("wday"), 0) |
Definition at line 142 of file date_core.c.
| #define f_year | ( | x | ) | rb_funcall(x, rb_intern("year"), 0) |
Definition at line 139 of file date_core.c.
| #define GC_PERIOD0 146097 /* 365.2425 * 400 */ |
Definition at line 181 of file date_core.c.
| #define get_d1 | ( | x | ) |
Definition at line 288 of file date_core.c.
| #define get_d1a | ( | x | ) |
Definition at line 292 of file date_core.c.
| #define get_d1b | ( | x | ) |
Definition at line 296 of file date_core.c.
| #define get_d2 | ( | x, | |
| y | |||
| ) |
Definition at line 300 of file date_core.c.
| #define GREGORIAN negative_inf |
Definition at line 169 of file date_core.c.
| #define HALF_DAYS_IN_SECONDS (DAY_IN_SECONDS / 2) |
Definition at line 1558 of file date_core.c.
| #define HAVE_CIVIL (1 << 2) |
Definition at line 155 of file date_core.c.
| #define have_civil_p | ( | x | ) | ((x)->flags & HAVE_CIVIL) |
Definition at line 161 of file date_core.c.
| #define HAVE_DF (1 << 1) |
Definition at line 154 of file date_core.c.
| #define have_df_p | ( | x | ) | ((x)->flags & HAVE_DF) |
Definition at line 160 of file date_core.c.
| #define HAVE_JD (1 << 0) |
Definition at line 153 of file date_core.c.
| #define have_jd_p | ( | x | ) | ((x)->flags & HAVE_JD) |
Definition at line 159 of file date_core.c.
| #define HAVE_TIME (1 << 3) |
Definition at line 156 of file date_core.c.
| #define have_time_p | ( | x | ) | ((x)->flags & HAVE_TIME) |
Definition at line 162 of file date_core.c.
| #define HOUR_IN_SECONDS 3600 |
Definition at line 175 of file date_core.c.
Definition at line 201 of file date_core.c.
| #define HOUR_WIDTH 5 |
Definition at line 195 of file date_core.c.
| #define ITALY 2299161 /* 1582-10-15 */ |
Definition at line 166 of file date_core.c.
| #define JC_PERIOD0 1461 /* 365.25 * 4 */ |
Definition at line 180 of file date_core.c.
| #define jd_trunc d_trunc |
Definition at line 3155 of file date_core.c.
| #define JULIAN positive_inf |
Definition at line 168 of file date_core.c.
| #define k_trunc d_trunc |
Definition at line 3156 of file date_core.c.
| #define MDAY_SHIFT (HOUR_WIDTH + MIN_WIDTH + SEC_WIDTH) |
Definition at line 202 of file date_core.c.
| #define MDAY_WIDTH 5 |
Definition at line 196 of file date_core.c.
| #define MILLISECOND_IN_NANOSECONDS 1000000 |
Definition at line 6615 of file date_core.c.
| #define MIN_SHIFT SEC_WIDTH |
Definition at line 200 of file date_core.c.
| #define MIN_WIDTH 6 |
Definition at line 194 of file date_core.c.
| #define MINUTE_IN_SECONDS 60 |
Definition at line 174 of file date_core.c.
| #define MOD | ( | n, | |
| d | |||
| ) | ((n)<0 ? NMOD((n),(d)) : (n)%(d)) |
Definition at line 151 of file date_core.c.
| #define MON_SHIFT (MDAY_WIDTH + HOUR_WIDTH + MIN_WIDTH + SEC_WIDTH) |
Definition at line 203 of file date_core.c.
| #define MON_WIDTH 4 |
Definition at line 197 of file date_core.c.
| #define NDEBUG |
Definition at line 14 of file date_core.c.
| #define NDIV | ( | x, | |
| y | |||
| ) | (-(-((x)+1)/(y))-1) |
Definition at line 148 of file date_core.c.
| #define NMOD | ( | x, | |
| y | |||
| ) | ((y)-(-((x)+1)%(y))-1) |
Definition at line 149 of file date_core.c.
| #define num2int_with_frac | ( | s, | |
| n | |||
| ) |
Definition at line 3219 of file date_core.c.
| #define num2num_with_frac | ( | s, | |
| n | |||
| ) |
Definition at line 3209 of file date_core.c.
| #define PACK2 | ( | m, | |
| d | |||
| ) | (((m) << MON_SHIFT) | ((d) << MDAY_SHIFT)) |
Definition at line 217 of file date_core.c.
| #define PACK5 | ( | m, | |
| d, | |||
| h, | |||
| min, | |||
| s | |||
| ) |
Definition at line 213 of file date_core.c.
| #define PK_MASK | ( | x | ) | ((1 << (x)) - 1) |
Definition at line 205 of file date_core.c.
| #define rb_intern | ( | str | ) | rb_intern_const(str) |
| #define ref_hash | ( | k | ) | rb_hash_aref(hash, ID2SYM(rb_intern(k))) |
Definition at line 3683 of file date_core.c.
| #define ref_hash0 | ( | k | ) | rb_hash_aref(hash, k) |
Definition at line 3679 of file date_core.c.
| #define REFORM_BEGIN_JD 2298874 /* ns 1582-01-01 */ |
Definition at line 189 of file date_core.c.
| #define REFORM_BEGIN_YEAR 1582 |
Definition at line 187 of file date_core.c.
| #define REFORM_END_JD 2426355 /* os 1930-12-31 */ |
Definition at line 190 of file date_core.c.
| #define REFORM_END_YEAR 1930 |
Definition at line 188 of file date_core.c.
| #define SEC_SHIFT 0 |
Definition at line 199 of file date_core.c.
| #define SEC_WIDTH 6 |
Definition at line 193 of file date_core.c.
| #define SECOND_IN_MILLISECONDS 1000 |
Definition at line 177 of file date_core.c.
| #define SECOND_IN_NANOSECONDS 1000000000 |
Definition at line 178 of file date_core.c.
| #define set_hash | ( | k, | |
| v | |||
| ) | rb_hash_aset(hash, ID2SYM(rb_intern(k)), v) |
Definition at line 3682 of file date_core.c.
| #define set_hash0 | ( | k, | |
| v | |||
| ) | rb_hash_aset(hash, k, v) |
Definition at line 3678 of file date_core.c.
| #define set_to_complex | ( | obj, | |
| x, | |||
| _nth, | |||
| _jd, | |||
| _df, | |||
| _sf, | |||
| _of, | |||
| _sg, | |||
| _year, | |||
| _mon, | |||
| _mday, | |||
| _hour, | |||
| _min, | |||
| _sec, | |||
| _flags | |||
| ) |
Definition at line 358 of file date_core.c.
| #define set_to_simple | ( | obj, | |
| x, | |||
| _nth, | |||
| _jd, | |||
| _sg, | |||
| _year, | |||
| _mon, | |||
| _mday, | |||
| _flags | |||
| ) |
Definition at line 328 of file date_core.c.
| #define simple_dat_p | ( | x | ) | (!complex_dat_p(x)) |
Definition at line 164 of file date_core.c.
| #define SMALLBUF 100 |
Definition at line 6563 of file date_core.c.
Definition at line 3721 of file date_core.c.
Referenced by rb_call_inits(), rb_check_symbol(), rb_check_symbol_cstr(), rb_f_global_variables(), rb_id_attrset(), and rb_intern3().
| #define UNIX_EPOCH_IN_CJD INT2FIX(2440588) /* 1970-01-01 */ |
Definition at line 172 of file date_core.c.
| #define USE_PACK |
Definition at line 21 of file date_core.c.
| #define val2off | ( | vof, | |
| iof | |||
| ) |
Definition at line 4693 of file date_core.c.
| #define val2sg | ( | vsg, | |
| dsg | |||
| ) |
Definition at line 3243 of file date_core.c.
| #define valid_sg | ( | sg | ) |
Definition at line 2422 of file date_core.c.
| anonymous enum |
| Enumerator | |
|---|---|
| DECIMAL_SIZE_OF_LONG | |
| JISX0301_DATE_SIZE | |
Definition at line 6997 of file date_core.c.
Definition at line 2903 of file date_parse.c.
Definition at line 2470 of file date_parse.c.
Definition at line 2977 of file date_parse.c.
Definition at line 2049 of file date_parse.c.
Definition at line 2757 of file date_parse.c.
Definition at line 2538 of file date_parse.c.
Definition at line 653 of file date_strptime.c.
Definition at line 2684 of file date_parse.c.
Definition at line 628 of file date_strftime.c.
Definition at line 353 of file date_parse.c.
| void Init_date_core | ( | void | ) |
Definition at line 9014 of file date_core.c.
References assert.
1.8.13