aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfont.c
diff options
context:
space:
mode:
authorDmitry Antipov2012-08-05 19:47:28 +0400
committerDmitry Antipov2012-08-05 19:47:28 +0400
commit663e2b3f88f9be61399e06dfc0b76700f90c6ca6 (patch)
tree71e48dfc0079f80f2089b5bdebe991a200d594ed /src/xfont.c
parent777fe95e05ab77e77e4ecee45382ec64d381c776 (diff)
downloademacs-663e2b3f88f9be61399e06dfc0b76700f90c6ca6.tar.gz
emacs-663e2b3f88f9be61399e06dfc0b76700f90c6ca6.zip
Generalize common compile-time constants.
* lisp.h (header_size, bool_header_size, word_size): Now here. (struct Lisp_Vector): Add comment. (struct Lisp_Bool_Vector): Move up to define handy constants. (VECSIZE, PSEUDOVECSIZE): Simplify. (SAFE_ALLOCA_LISP): Use new constant. Adjust indentation. * buffer.c, buffer.h, bytecode.c, callint.c, eval.c, fns.c: * font.c, fontset.c, keyboard.c, keymap.c, macros.c, menu.c: * msdos.c, w32menu.c, w32term.h, window.c, xdisp.c, xfaces.c: * xfont.c, xmenu.c: Use word_size where appropriate.
Diffstat (limited to 'src/xfont.c')
-rw-r--r--src/xfont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xfont.c b/src/xfont.c
index 1ebac6100f2..e3e2eb18c29 100644
--- a/src/xfont.c
+++ b/src/xfont.c
@@ -464,11 +464,11 @@ xfont_list_pattern (Display *display, const char *pattern,
464 continue; 464 continue;
465 } 465 }
466 if (memcmp (props, aref_addr (entity, FONT_FOUNDRY_INDEX), 466 if (memcmp (props, aref_addr (entity, FONT_FOUNDRY_INDEX),
467 sizeof (Lisp_Object) * 7) 467 word_size * 7)
468 || ! EQ (AREF (entity, FONT_SPACING_INDEX), props[7])) 468 || ! EQ (AREF (entity, FONT_SPACING_INDEX), props[7]))
469 { 469 {
470 memcpy (props, aref_addr (entity, FONT_FOUNDRY_INDEX), 470 memcpy (props, aref_addr (entity, FONT_FOUNDRY_INDEX),
471 sizeof (Lisp_Object) * 7); 471 word_size * 7);
472 props[7] = AREF (entity, FONT_SPACING_INDEX); 472 props[7] = AREF (entity, FONT_SPACING_INDEX);
473 scripts = xfont_supported_scripts (display, indices[i], 473 scripts = xfont_supported_scripts (display, indices[i],
474 xfont_scratch_props, encoding); 474 xfont_scratch_props, encoding);