diff options
| author | Juanma Barranquero | 2008-11-21 12:14:07 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2008-11-21 12:14:07 +0000 |
| commit | f96f2c5bbf52eab0424c7e8f0267980e509fcc17 (patch) | |
| tree | b0c0c3a27d32a53d1c9995a05b5ae199666ff0ba /src/ralloc.c | |
| parent | 0f219a97ca8cb0b8e2c85324e90c001f34c57359 (diff) | |
| download | emacs-f96f2c5bbf52eab0424c7e8f0267980e509fcc17.tar.gz emacs-f96f2c5bbf52eab0424c7e8f0267980e509fcc17.zip | |
Fix typos in comments.
Diffstat (limited to 'src/ralloc.c')
| -rw-r--r-- | src/ralloc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ralloc.c b/src/ralloc.c index 1c988283dbc..30ed888697f 100644 --- a/src/ralloc.c +++ b/src/ralloc.c | |||
| @@ -177,9 +177,9 @@ static heap_ptr first_heap, last_heap; | |||
| 177 | b->data + b->size == b->next->data. | 177 | b->data + b->size == b->next->data. |
| 178 | 178 | ||
| 179 | An element with variable==NIL denotes a freed block, which has not yet | 179 | An element with variable==NIL denotes a freed block, which has not yet |
| 180 | been collected. They may only appear while r_alloc_freeze > 0, and will be | 180 | been collected. They may only appear while r_alloc_freeze_level > 0, |
| 181 | freed when the arena is thawed. Currently, these blocs are not reusable, | 181 | and will be freed when the arena is thawed. Currently, these blocs are |
| 182 | while the arena is frozen. Very inefficient. */ | 182 | not reusable, while the arena is frozen. Very inefficient. */ |
| 183 | 183 | ||
| 184 | typedef struct bp | 184 | typedef struct bp |
| 185 | { | 185 | { |
| @@ -939,8 +939,8 @@ r_alloc_sbrk (size) | |||
| 939 | which will use the data area. | 939 | which will use the data area. |
| 940 | 940 | ||
| 941 | The allocation of 0 bytes is valid. | 941 | The allocation of 0 bytes is valid. |
| 942 | In case r_alloc_freeze is set, a best fit of unused blocs could be done | 942 | In case r_alloc_freeze_level is set, a best fit of unused blocs could be |
| 943 | before allocating a new area. Not yet done. | 943 | done before allocating a new area. Not yet done. |
| 944 | 944 | ||
| 945 | If we can't allocate the necessary memory, set *PTR to zero, and | 945 | If we can't allocate the necessary memory, set *PTR to zero, and |
| 946 | return zero. */ | 946 | return zero. */ |
| @@ -996,7 +996,7 @@ r_alloc_free (ptr) | |||
| 996 | SIZE is less than or equal to the current bloc size, in which case | 996 | SIZE is less than or equal to the current bloc size, in which case |
| 997 | do nothing. | 997 | do nothing. |
| 998 | 998 | ||
| 999 | In case r_alloc_freeze is set, a new bloc is allocated, and the | 999 | In case r_alloc_freeze_level is set, a new bloc is allocated, and the |
| 1000 | memory copied to it. Not very efficient. We could traverse the | 1000 | memory copied to it. Not very efficient. We could traverse the |
| 1001 | bloc_list for a best fit of free blocs first. | 1001 | bloc_list for a best fit of free blocs first. |
| 1002 | 1002 | ||