Skip to content
Myr

Re-generate src/parser.[ch]

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Nicolas Williams · committed by Nicolas Williams · parent 4d4c17c · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:src/parser.c+3 added-3 removed
500 unmodified lines
501 if (nb == 0.0) return gen_noop();502 res = jv_number(na / nb);503 break;504 case '%':505#define is_unsafe_double(n) (isnan(n) || (n) < INTMAX_MIN || -(n) < INTMAX_MIN)506 if (is_unsafe_double(na) || is_unsafe_double(nb) || (intmax_t)nb == 0) return gen_noop();507#undef is_unsafe_double505#define is_unsafe_to_int_cast(n) (isnan(n) || (n) < INTMAX_MIN || -(n) < INTMAX_MIN)506 if (is_unsafe_to_int_cast(na) || is_unsafe_to_int_cast(nb) || (intmax_t)nb == 0) return gen_noop();507#undef is_unsafe_to_int_cast508 res = jv_number((intmax_t)na % (intmax_t)nb);509 break;510 case EQ: res = (cmp == 0 ? jv_true() : jv_false()); break;511 case NEQ: res = (cmp != 0 ? jv_true() : jv_false()); break;
3884 unmodified lines