diff options
| author | Paul Eggert | 2014-04-05 12:30:36 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-04-05 12:30:36 -0700 |
| commit | faa521749378dbfd97f49a0e5c48f6da2ce1ddba (patch) | |
| tree | d470dbfa3328aaeffe5cba065103e237238a13be /src/profiler.c | |
| parent | 1b058e42524353c9ff133ea330876ed2d39b6515 (diff) | |
| download | emacs-faa521749378dbfd97f49a0e5c48f6da2ce1ddba.tar.gz emacs-faa521749378dbfd97f49a0e5c48f6da2ce1ddba.zip | |
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.
Diffstat (limited to 'src/profiler.c')
| -rw-r--r-- | src/profiler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/profiler.c b/src/profiler.c index 8b092dcc818..ff97fe88b7b 100644 --- a/src/profiler.c +++ b/src/profiler.c | |||
| @@ -294,7 +294,7 @@ setup_cpu_timer (Lisp_Object sampling_interval) | |||
| 294 | sigev.sigev_signo = SIGPROF; | 294 | sigev.sigev_signo = SIGPROF; |
| 295 | sigev.sigev_notify = SIGEV_SIGNAL; | 295 | sigev.sigev_notify = SIGEV_SIGNAL; |
| 296 | 296 | ||
| 297 | for (i = 0; i < sizeof system_clock / sizeof *system_clock; i++) | 297 | for (i = 0; i < ARRAYELTS (system_clock); i++) |
| 298 | if (timer_create (system_clock[i], &sigev, &profiler_timer) == 0) | 298 | if (timer_create (system_clock[i], &sigev, &profiler_timer) == 0) |
| 299 | { | 299 | { |
| 300 | profiler_timer_ok = 1; | 300 | profiler_timer_ok = 1; |