aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c43
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.
2251LENGTH must be an integer. 2251LENGTH must be an integer.
2252INIT must be an integer that represents a character. */) 2252INIT 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. */)
2294DEFUN ("make-bool-vector", Fmake_bool_vector, Smake_bool_vector, 2, 2, 0, 2293DEFUN ("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.
2296LENGTH must be a number. INIT matters only in whether it is t or nil. */) 2295LENGTH 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
2688DEFUN ("cons", Fcons, Scons, 2, 2, 0, 2686DEFUN ("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.
2784Any number of arguments, even zero arguments, are allowed. 2781Any number of arguments, even zero arguments, are allowed.
2785usage: (list &rest OBJECTS) */) 2782usage: (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
2802DEFUN ("make-list", Fmake_list, Smake_list, 2, 2, 0, 2797DEFUN ("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)
2979DEFUN ("make-vector", Fmake_vector, Smake_vector, 2, 2, 0, 2973DEFUN ("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.
2981See also the function `vector'. */) 2975See 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.
3004Any number of arguments, even zero arguments, are allowed. 2997Any number of arguments, even zero arguments, are allowed.
3005usage: (vector &rest OBJECTS) */) 2998usage: (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.
3027The first four arguments are required; at most six have any 3018The first four arguments are required; at most six have any
3028significance. 3019significance.
3029usage: (make-byte-code ARGLIST BYTE-CODE CONSTANTS DEPTH &optional DOCSTRING INTERACTIVE-SPEC &rest ELEMENTS) */) 3020usage: (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)
3111DEFUN ("make-symbol", Fmake_symbol, Smake_symbol, 1, 1, 0, 3100DEFUN ("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.
3113Its value and function definition are void, and its property list is nil. */) 3102Its 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
3274DEFUN ("make-marker", Fmake_marker, Smake_marker, 0, 0, 0, 3262DEFUN ("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
4003DEFUN ("gc-status", Fgc_status, Sgc_status, 0, 0, "", 3991DEFUN ("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.
4797Recursively copies contents of vectors and cons cells. 4785Recursively copies contents of vectors and cons cells.
4798Does not copy symbols. Copies strings without text properties. */) 4786Does 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))
4899However, if there was overflow in pure space, `garbage-collect' 4886However, if there was overflow in pure space, `garbage-collect'
4900returns nil, because real GC can't be done. */) 4887returns 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.
6116This may be helpful in debugging Emacs's memory usage. 6103This may be helpful in debugging Emacs's memory usage.
6117We divide the value by 1024 to make sure it fits in a Lisp integer. */) 6104We 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.
6137MISCS include overlays, markers, and some internal types. 6124MISCS include overlays, markers, and some internal types.
6138Frames, windows, buffers, and subprocesses count as vectors 6125Frames, 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