Prefer 'ARRAYELTS (x)' to 'sizeof x / sizeof *x'.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Apr 2014 19:30:36 +0000 (12:30 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Apr 2014 19:30:36 +0000 (12:30 -0700)
commitfaa521749378dbfd97f49a0e5c48f6da2ce1ddba
treed470dbfa3328aaeffe5cba065103e237238a13be
parent1b058e42524353c9ff133ea330876ed2d39b6515
Prefer 'ARRAYELTS (x)' to 'sizeof x / sizeof *x'.

* alloc.c (memory_full):
* charset.c (syms_of_charset):
* doc.c (Fsnarf_documentation):
* emacs.c (main):
* font.c (BUILD_STYLE_TABLE):
* keyboard.c (make_lispy_event):
* profiler.c (setup_cpu_timer):
* xgselect.c (xg_select):
* xterm.c (record_event, STORE_KEYSYM_FOR_DEBUG):
Use ARRAYELTS.
* font.c (FONT_PROPERTY_TABLE_SIZE): Remove.
Replace the only use with ARRAYELTS (font_property_table).
* xfaces.c (DIM): Remove.  All uses replaced by ARRAYELTS.
23 files changed:
src/ChangeLog
src/alloc.c
src/charset.c
src/coding.c
src/coding.h
src/doc.c
src/emacs.c
src/font.c
src/gnutls.c
src/keyboard.c
src/keymap.c
src/keymap.h
src/lisp.h
src/process.c
src/profiler.c
src/sysdep.c
src/unexcoff.c
src/xdisp.c
src/xfaces.c
src/xgselect.c
src/xsmfns.c
src/xterm.c
src/xterm.h