• Paul Eggert's avatar
    Replace TRACE with redisplay_trace, etc. · 52d0d4fe
    Paul Eggert authored
    This simplifies callers and catches trace printf format errors
    even with typical (non-debugging) compiles.
    * src/dispextern.h (TRACE) [GLYPH_DEBUG]:
    Move definitions to xdisp.c if it’s used only there.
    * src/xdisp.c (redisplay_trace): New function, replacing TRACE macro.
    (move_trace): New function, replacing TRACE_MOVE macro.
    All uses changed.
    (dump_glyph): When tracing, don’t use %d to format ptrdiff_t,
    or %x to format a pointer.
    (expose_frame): Redo trace printfs to avoid interleaved output
    on GNU/Linux.
xdisp.c 1.03 MB