• Paul Eggert's avatar
    CHECK_IMPURE and PURE_P speedup · bb7c182f
    Paul Eggert authored
    * src/intervals.c (create_root_interval):
    Do CHECK_IMPURE only for strings; not needed for buffers.
    Prefer ! STRINGP to BUFFERP, for a tad more speed.
    * src/puresize.h (CHECK_IMPURE, PURE_P):
    Now inline functions instead of macros.
    (PURE_P): Don’t use XPNTR; that is now the caller’s responsibility.
    All callers changed.
    (CHECK_IMPURE): New argument PTR, to save us the work of running XPNTR.
    All callers changed.
keymap.c 110 KB