diff options
| author | Dmitry Antipov | 2012-08-05 19:47:28 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-08-05 19:47:28 +0400 |
| commit | 663e2b3f88f9be61399e06dfc0b76700f90c6ca6 (patch) | |
| tree | 71e48dfc0079f80f2089b5bdebe991a200d594ed /src/font.c | |
| parent | 777fe95e05ab77e77e4ecee45382ec64d381c776 (diff) | |
| download | emacs-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/font.c')
| -rw-r--r-- | src/font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/font.c b/src/font.c index c70c2abdc23..ca0ccc171eb 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -2138,7 +2138,7 @@ static Lisp_Object | |||
| 2138 | font_vconcat_entity_vectors (Lisp_Object list) | 2138 | font_vconcat_entity_vectors (Lisp_Object list) |
| 2139 | { | 2139 | { |
| 2140 | int nargs = XINT (Flength (list)); | 2140 | int nargs = XINT (Flength (list)); |
| 2141 | Lisp_Object *args = alloca (sizeof (Lisp_Object) * nargs); | 2141 | Lisp_Object *args = alloca (word_size * nargs); |
| 2142 | int i; | 2142 | int i; |
| 2143 | 2143 | ||
| 2144 | for (i = 0; i < nargs; i++, list = XCDR (list)) | 2144 | for (i = 0; i < nargs; i++, list = XCDR (list)) |