diff options
| author | Stefan Monnier | 2010-08-11 07:42:48 +0200 |
|---|---|---|
| committer | Stefan Monnier | 2010-08-11 07:42:48 +0200 |
| commit | c566235d981eba73c88bbff00b6a1d88360b6e9f (patch) | |
| tree | f8d653add3570fe750a83d1123ed35022e0bf4ef /src/alloc.c | |
| parent | 0bfdb86f425a88fe43ebc88851c6f9a6418e1862 (diff) | |
| parent | 490b89acab3e759426ede25c31c94268df55e925 (diff) | |
| download | emacs-c566235d981eba73c88bbff00b6a1d88360b6e9f.tar.gz emacs-c566235d981eba73c88bbff00b6a1d88360b6e9f.zip | |
Merge from trunk
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/src/alloc.c b/src/alloc.c index 7c8081f03df..23debbdf2e8 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -448,7 +448,6 @@ static void *min_heap_address, *max_heap_address; | |||
| 448 | static struct mem_node mem_z; | 448 | static struct mem_node mem_z; |
| 449 | #define MEM_NIL &mem_z | 449 | #define MEM_NIL &mem_z |
| 450 | 450 | ||
| 451 | static POINTER_TYPE *lisp_malloc (size_t, enum mem_type); | ||
| 452 | static struct Lisp_Vector *allocate_vectorlike (EMACS_INT); | 451 | static struct Lisp_Vector *allocate_vectorlike (EMACS_INT); |
| 453 | static void lisp_free (POINTER_TYPE *); | 452 | static void lisp_free (POINTER_TYPE *); |
| 454 | static void mark_stack (void); | 453 | static void mark_stack (void); |
| @@ -1509,8 +1508,7 @@ mark_interval_tree (register INTERVAL tree) | |||
| 1509 | can't create number objects in macros. */ | 1508 | can't create number objects in macros. */ |
| 1510 | #ifndef make_number | 1509 | #ifndef make_number |
| 1511 | Lisp_Object | 1510 | Lisp_Object |
| 1512 | make_number (n) | 1511 | make_number (EMACS_INT n) |
| 1513 | EMACS_INT n; | ||
| 1514 | { | 1512 | { |
| 1515 | Lisp_Object obj; | 1513 | Lisp_Object obj; |
| 1516 | obj.s.val = n; | 1514 | obj.s.val = n; |
| @@ -2538,16 +2536,6 @@ init_float (void) | |||
| 2538 | } | 2536 | } |
| 2539 | 2537 | ||
| 2540 | 2538 | ||
| 2541 | /* Explicitly free a float cell by putting it on the free-list. */ | ||
| 2542 | |||
| 2543 | static void | ||
| 2544 | free_float (struct Lisp_Float *ptr) | ||
| 2545 | { | ||
| 2546 | ptr->u.chain = float_free_list; | ||
| 2547 | float_free_list = ptr; | ||
| 2548 | } | ||
| 2549 | |||
| 2550 | |||
| 2551 | /* Return a new float object with value FLOAT_VALUE. */ | 2539 | /* Return a new float object with value FLOAT_VALUE. */ |
| 2552 | 2540 | ||
| 2553 | Lisp_Object | 2541 | Lisp_Object |
| @@ -2992,10 +2980,8 @@ See also the function `vector'. */) | |||
| 2992 | See the function `funvec' for more detail. */ | 2980 | See the function `funvec' for more detail. */ |
| 2993 | 2981 | ||
| 2994 | Lisp_Object | 2982 | Lisp_Object |
| 2995 | make_funvec (kind, num_nil_slots, num_params, params) | 2983 | make_funvec (Lisp_Object kind, int num_nil_slots, int num_params, |
| 2996 | Lisp_Object kind; | 2984 | Lisp_Object *params) |
| 2997 | int num_nil_slots, num_params; | ||
| 2998 | Lisp_Object *params; | ||
| 2999 | { | 2985 | { |
| 3000 | int param_index; | 2986 | int param_index; |
| 3001 | Lisp_Object funvec; | 2987 | Lisp_Object funvec; |
| @@ -3048,9 +3034,7 @@ implemented values of KIND, and their meaning, are: | |||
| 3048 | time of the call; see the `curry' function. | 3034 | time of the call; see the `curry' function. |
| 3049 | 3035 | ||
| 3050 | usage: (funvec KIND &rest PARAMS) */) | 3036 | usage: (funvec KIND &rest PARAMS) */) |
| 3051 | (nargs, args) | 3037 | (int nargs, Lisp_Object *args) |
| 3052 | register int nargs; | ||
| 3053 | Lisp_Object *args; | ||
| 3054 | { | 3038 | { |
| 3055 | return make_funvec (args[0], 0, nargs - 1, args + 1); | 3039 | return make_funvec (args[0], 0, nargs - 1, args + 1); |
| 3056 | } | 3040 | } |