diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 43 |
1 files changed, 15 insertions, 28 deletions
diff --git a/src/alloc.c b/src/alloc.c index 62b6e449831..2a15fd0d63d 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -2250,8 +2250,7 @@ DEFUN ("make-string", Fmake_string, Smake_string, 2, 2, 0, | |||
| 2250 | doc: /* Return a newly created string of length LENGTH, with INIT in each element. | 2250 | doc: /* Return a newly created string of length LENGTH, with INIT in each element. |
| 2251 | LENGTH must be an integer. | 2251 | LENGTH must be an integer. |
| 2252 | INIT must be an integer that represents a character. */) | 2252 | INIT must be an integer that represents a character. */) |
| 2253 | (length, init) | 2253 | (Lisp_Object length, Lisp_Object init) |
| 2254 | Lisp_Object length, init; | ||
| 2255 | { | 2254 | { |
| 2256 | register Lisp_Object val; | 2255 | register Lisp_Object val; |
| 2257 | register unsigned char *p, *end; | 2256 | register unsigned char *p, *end; |
| @@ -2294,8 +2293,7 @@ INIT must be an integer that represents a character. */) | |||
| 2294 | DEFUN ("make-bool-vector", Fmake_bool_vector, Smake_bool_vector, 2, 2, 0, | 2293 | DEFUN ("make-bool-vector", Fmake_bool_vector, Smake_bool_vector, 2, 2, 0, |
| 2295 | doc: /* Return a new bool-vector of length LENGTH, using INIT for each element. | 2294 | doc: /* Return a new bool-vector of length LENGTH, using INIT for each element. |
| 2296 | LENGTH must be a number. INIT matters only in whether it is t or nil. */) | 2295 | LENGTH must be a number. INIT matters only in whether it is t or nil. */) |
| 2297 | (length, init) | 2296 | (Lisp_Object length, Lisp_Object init) |
| 2298 | Lisp_Object length, init; | ||
| 2299 | { | 2297 | { |
| 2300 | register Lisp_Object val; | 2298 | register Lisp_Object val; |
| 2301 | struct Lisp_Bool_Vector *p; | 2299 | struct Lisp_Bool_Vector *p; |
| @@ -2687,8 +2685,7 @@ free_cons (struct Lisp_Cons *ptr) | |||
| 2687 | 2685 | ||
| 2688 | DEFUN ("cons", Fcons, Scons, 2, 2, 0, | 2686 | DEFUN ("cons", Fcons, Scons, 2, 2, 0, |
| 2689 | doc: /* Create a new cons, give it CAR and CDR as components, and return it. */) | 2687 | doc: /* Create a new cons, give it CAR and CDR as components, and return it. */) |
| 2690 | (car, cdr) | 2688 | (Lisp_Object car, Lisp_Object cdr) |
| 2691 | Lisp_Object car, cdr; | ||
| 2692 | { | 2689 | { |
| 2693 | register Lisp_Object val; | 2690 | register Lisp_Object val; |
| 2694 | 2691 | ||
| @@ -2783,9 +2780,7 @@ DEFUN ("list", Flist, Slist, 0, MANY, 0, | |||
| 2783 | doc: /* Return a newly created list with specified arguments as elements. | 2780 | doc: /* Return a newly created list with specified arguments as elements. |
| 2784 | Any number of arguments, even zero arguments, are allowed. | 2781 | Any number of arguments, even zero arguments, are allowed. |
| 2785 | usage: (list &rest OBJECTS) */) | 2782 | usage: (list &rest OBJECTS) */) |
| 2786 | (nargs, args) | 2783 | (int nargs, register Lisp_Object *args) |
| 2787 | int nargs; | ||
| 2788 | register Lisp_Object *args; | ||
| 2789 | { | 2784 | { |
| 2790 | register Lisp_Object val; | 2785 | register Lisp_Object val; |
| 2791 | val = Qnil; | 2786 | val = Qnil; |
| @@ -2801,8 +2796,7 @@ usage: (list &rest OBJECTS) */) | |||
| 2801 | 2796 | ||
| 2802 | DEFUN ("make-list", Fmake_list, Smake_list, 2, 2, 0, | 2797 | DEFUN ("make-list", Fmake_list, Smake_list, 2, 2, 0, |
| 2803 | doc: /* Return a newly created list of length LENGTH, with each element being INIT. */) | 2798 | doc: /* Return a newly created list of length LENGTH, with each element being INIT. */) |
| 2804 | (length, init) | 2799 | (register Lisp_Object length, Lisp_Object init) |
| 2805 | register Lisp_Object length, init; | ||
| 2806 | { | 2800 | { |
| 2807 | register Lisp_Object val; | 2801 | register Lisp_Object val; |
| 2808 | register int size; | 2802 | register int size; |
| @@ -2979,8 +2973,7 @@ allocate_process (void) | |||
| 2979 | DEFUN ("make-vector", Fmake_vector, Smake_vector, 2, 2, 0, | 2973 | DEFUN ("make-vector", Fmake_vector, Smake_vector, 2, 2, 0, |
| 2980 | doc: /* Return a newly created vector of length LENGTH, with each element being INIT. | 2974 | doc: /* Return a newly created vector of length LENGTH, with each element being INIT. |
| 2981 | See also the function `vector'. */) | 2975 | See also the function `vector'. */) |
| 2982 | (length, init) | 2976 | (register Lisp_Object length, Lisp_Object init) |
| 2983 | register Lisp_Object length, init; | ||
| 2984 | { | 2977 | { |
| 2985 | Lisp_Object vector; | 2978 | Lisp_Object vector; |
| 2986 | register EMACS_INT sizei; | 2979 | register EMACS_INT sizei; |
| @@ -3003,9 +2996,7 @@ DEFUN ("vector", Fvector, Svector, 0, MANY, 0, | |||
| 3003 | doc: /* Return a newly created vector with specified arguments as elements. | 2996 | doc: /* Return a newly created vector with specified arguments as elements. |
| 3004 | Any number of arguments, even zero arguments, are allowed. | 2997 | Any number of arguments, even zero arguments, are allowed. |
| 3005 | usage: (vector &rest OBJECTS) */) | 2998 | usage: (vector &rest OBJECTS) */) |
| 3006 | (nargs, args) | 2999 | (register int nargs, Lisp_Object *args) |
| 3007 | register int nargs; | ||
| 3008 | Lisp_Object *args; | ||
| 3009 | { | 3000 | { |
| 3010 | register Lisp_Object len, val; | 3001 | register Lisp_Object len, val; |
| 3011 | register int index; | 3002 | register int index; |
| @@ -3027,9 +3018,7 @@ stack size, (optional) doc string, and (optional) interactive spec. | |||
| 3027 | The first four arguments are required; at most six have any | 3018 | The first four arguments are required; at most six have any |
| 3028 | significance. | 3019 | significance. |
| 3029 | usage: (make-byte-code ARGLIST BYTE-CODE CONSTANTS DEPTH &optional DOCSTRING INTERACTIVE-SPEC &rest ELEMENTS) */) | 3020 | usage: (make-byte-code ARGLIST BYTE-CODE CONSTANTS DEPTH &optional DOCSTRING INTERACTIVE-SPEC &rest ELEMENTS) */) |
| 3030 | (nargs, args) | 3021 | (register int nargs, Lisp_Object *args) |
| 3031 | register int nargs; | ||
| 3032 | Lisp_Object *args; | ||
| 3033 | { | 3022 | { |
| 3034 | register Lisp_Object len, val; | 3023 | register Lisp_Object len, val; |
| 3035 | register int index; | 3024 | register int index; |
| @@ -3111,8 +3100,7 @@ init_symbol (void) | |||
| 3111 | DEFUN ("make-symbol", Fmake_symbol, Smake_symbol, 1, 1, 0, | 3100 | DEFUN ("make-symbol", Fmake_symbol, Smake_symbol, 1, 1, 0, |
| 3112 | doc: /* Return a newly allocated uninterned symbol whose name is NAME. | 3101 | doc: /* Return a newly allocated uninterned symbol whose name is NAME. |
| 3113 | Its value and function definition are void, and its property list is nil. */) | 3102 | Its value and function definition are void, and its property list is nil. */) |
| 3114 | (name) | 3103 | (Lisp_Object name) |
| 3115 | Lisp_Object name; | ||
| 3116 | { | 3104 | { |
| 3117 | register Lisp_Object val; | 3105 | register Lisp_Object val; |
| 3118 | register struct Lisp_Symbol *p; | 3106 | register struct Lisp_Symbol *p; |
| @@ -3273,7 +3261,7 @@ make_save_value (void *pointer, int integer) | |||
| 3273 | 3261 | ||
| 3274 | DEFUN ("make-marker", Fmake_marker, Smake_marker, 0, 0, 0, | 3262 | DEFUN ("make-marker", Fmake_marker, Smake_marker, 0, 0, 0, |
| 3275 | doc: /* Return a newly allocated marker which does not point at any place. */) | 3263 | doc: /* Return a newly allocated marker which does not point at any place. */) |
| 3276 | () | 3264 | (void) |
| 3277 | { | 3265 | { |
| 3278 | register Lisp_Object val; | 3266 | register Lisp_Object val; |
| 3279 | register struct Lisp_Marker *p; | 3267 | register struct Lisp_Marker *p; |
| @@ -4002,7 +3990,7 @@ static double avg_live; | |||
| 4002 | 3990 | ||
| 4003 | DEFUN ("gc-status", Fgc_status, Sgc_status, 0, 0, "", | 3991 | DEFUN ("gc-status", Fgc_status, Sgc_status, 0, 0, "", |
| 4004 | doc: /* Show information about live and zombie objects. */) | 3992 | doc: /* Show information about live and zombie objects. */) |
| 4005 | () | 3993 | (void) |
| 4006 | { | 3994 | { |
| 4007 | Lisp_Object args[8], zombie_list = Qnil; | 3995 | Lisp_Object args[8], zombie_list = Qnil; |
| 4008 | int i; | 3996 | int i; |
| @@ -4796,8 +4784,7 @@ DEFUN ("purecopy", Fpurecopy, Spurecopy, 1, 1, 0, | |||
| 4796 | doc: /* Make a copy of object OBJ in pure storage. | 4784 | doc: /* Make a copy of object OBJ in pure storage. |
| 4797 | Recursively copies contents of vectors and cons cells. | 4785 | Recursively copies contents of vectors and cons cells. |
| 4798 | Does not copy symbols. Copies strings without text properties. */) | 4786 | Does not copy symbols. Copies strings without text properties. */) |
| 4799 | (obj) | 4787 | (register Lisp_Object obj) |
| 4800 | register Lisp_Object obj; | ||
| 4801 | { | 4788 | { |
| 4802 | if (NILP (Vpurify_flag)) | 4789 | if (NILP (Vpurify_flag)) |
| 4803 | return obj; | 4790 | return obj; |
| @@ -4898,7 +4885,7 @@ Garbage collection happens automatically if you cons more than | |||
| 4898 | (USED-STRINGS . FREE-STRINGS)) | 4885 | (USED-STRINGS . FREE-STRINGS)) |
| 4899 | However, if there was overflow in pure space, `garbage-collect' | 4886 | However, if there was overflow in pure space, `garbage-collect' |
| 4900 | returns nil, because real GC can't be done. */) | 4887 | returns nil, because real GC can't be done. */) |
| 4901 | () | 4888 | (void) |
| 4902 | { | 4889 | { |
| 4903 | register struct specbinding *bind; | 4890 | register struct specbinding *bind; |
| 4904 | struct catchtag *catch; | 4891 | struct catchtag *catch; |
| @@ -6115,7 +6102,7 @@ DEFUN ("memory-limit", Fmemory_limit, Smemory_limit, 0, 0, 0, | |||
| 6115 | doc: /* Return the address of the last byte Emacs has allocated, divided by 1024. | 6102 | doc: /* Return the address of the last byte Emacs has allocated, divided by 1024. |
| 6116 | This may be helpful in debugging Emacs's memory usage. | 6103 | This may be helpful in debugging Emacs's memory usage. |
| 6117 | We divide the value by 1024 to make sure it fits in a Lisp integer. */) | 6104 | We divide the value by 1024 to make sure it fits in a Lisp integer. */) |
| 6118 | () | 6105 | (void) |
| 6119 | { | 6106 | { |
| 6120 | Lisp_Object end; | 6107 | Lisp_Object end; |
| 6121 | 6108 | ||
| @@ -6137,7 +6124,7 @@ objects consed. | |||
| 6137 | MISCS include overlays, markers, and some internal types. | 6124 | MISCS include overlays, markers, and some internal types. |
| 6138 | Frames, windows, buffers, and subprocesses count as vectors | 6125 | Frames, windows, buffers, and subprocesses count as vectors |
| 6139 | (but the contents of a buffer's text do not count here). */) | 6126 | (but the contents of a buffer's text do not count here). */) |
| 6140 | () | 6127 | (void) |
| 6141 | { | 6128 | { |
| 6142 | Lisp_Object consed[8]; | 6129 | Lisp_Object consed[8]; |
| 6143 | 6130 | ||