• Paul Eggert's avatar
    Improve integer overflow handling a bit · b3e1b382
    Paul Eggert authored
    * src/charset.c (read_hex): Use INT_LEFT_SHIFT_OVERFLOW for clarity.
    The machine code is the same on my platform.
    * src/doprnt.c (doprnt):
    * src/emacs-module.c (module_funcall):
    * src/font.c (font_intern_prop):
    * src/keyboard.c (Frecursion_depth):
    * src/lread.c (read1):
    Use WRAPV macros instead of checking overflow by hand.
    * src/editfns.c (hi_time, time_arith, decode_time_components):
    * src/emacs-module.c (Fmodule_load):
    Simplify by using FIXNUM_OVERFLOW_P.
    * src/emacs-module.c: Include intprops.h.
    * src/xdisp.c (percent99): New function.
    (decode_mode_spec): Use it to simplify overflow avoidance and
    formatting of %p and %P.
    b3e1b382
lread.c 140 KB