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/eval.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/eval.c')
| -rw-r--r-- | src/eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c index 64f384f2ca9..5eb144eb0b2 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -2301,7 +2301,7 @@ usage: (apply FUNCTION &rest ARGUMENTS) */) | |||
| 2301 | gcpro1.nvars = 1 + numargs; | 2301 | gcpro1.nvars = 1 + numargs; |
| 2302 | } | 2302 | } |
| 2303 | 2303 | ||
| 2304 | memcpy (funcall_args, args, nargs * sizeof (Lisp_Object)); | 2304 | memcpy (funcall_args, args, nargs * word_size); |
| 2305 | /* Spread the last arg we got. Its first element goes in | 2305 | /* Spread the last arg we got. Its first element goes in |
| 2306 | the slot that it used to occupy, hence this value of I. */ | 2306 | the slot that it used to occupy, hence this value of I. */ |
| 2307 | i = nargs - 1; | 2307 | i = nargs - 1; |
| @@ -2794,7 +2794,7 @@ usage: (funcall FUNCTION &rest ARGUMENTS) */) | |||
| 2794 | { | 2794 | { |
| 2795 | internal_args = alloca (XSUBR (fun)->max_args | 2795 | internal_args = alloca (XSUBR (fun)->max_args |
| 2796 | * sizeof *internal_args); | 2796 | * sizeof *internal_args); |
| 2797 | memcpy (internal_args, args + 1, numargs * sizeof (Lisp_Object)); | 2797 | memcpy (internal_args, args + 1, numargs * word_size); |
| 2798 | for (i = numargs; i < XSUBR (fun)->max_args; i++) | 2798 | for (i = numargs; i < XSUBR (fun)->max_args; i++) |
| 2799 | internal_args[i] = Qnil; | 2799 | internal_args[i] = Qnil; |
| 2800 | } | 2800 | } |