diff options
| author | Jason Rumney | 2003-07-06 14:55:00 +0000 |
|---|---|---|
| committer | Jason Rumney | 2003-07-06 14:55:00 +0000 |
| commit | ebb8d410538fd1704ecc15c18fa27f610042eed2 (patch) | |
| tree | 3382b30e7e626bc68f524618a100dffafe96727e /src/alloc.c | |
| parent | 1d660ecaf751fdff0181dce64ac287497d994dbe (diff) | |
| download | emacs-ebb8d410538fd1704ecc15c18fa27f610042eed2.tar.gz emacs-ebb8d410538fd1704ecc15c18fa27f610042eed2.zip | |
(struct ablock): Only include padding when there is some.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index 4ec3a1c3863..2232b7b82d2 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -645,7 +645,7 @@ lisp_free (block) | |||
| 645 | /* BLOCK_ALIGN has to be a power of 2. */ | 645 | /* BLOCK_ALIGN has to be a power of 2. */ |
| 646 | #define BLOCK_ALIGN (1 << 10) | 646 | #define BLOCK_ALIGN (1 << 10) |
| 647 | #define BLOCK_BYTES \ | 647 | #define BLOCK_BYTES \ |
| 648 | (BLOCK_ALIGN - sizeof (struct aligned_block *) - ABLOCKS_PADDING) | 648 | (BLOCK_ALIGN - sizeof (struct alinged_block *) - ABLOCKS_PADDING) |
| 649 | 649 | ||
| 650 | /* Internal data structures and constants. */ | 650 | /* Internal data structures and constants. */ |
| 651 | 651 | ||
| @@ -676,7 +676,9 @@ struct ablock | |||
| 676 | struct ablocks *abase; | 676 | struct ablocks *abase; |
| 677 | /* The padding of all but the last ablock is unused. The padding of | 677 | /* The padding of all but the last ablock is unused. The padding of |
| 678 | the last ablock in an ablocks is not allocated. */ | 678 | the last ablock in an ablocks is not allocated. */ |
| 679 | #if ABLOCKS_PADDING | ||
| 679 | char padding[ABLOCKS_PADDING]; | 680 | char padding[ABLOCKS_PADDING]; |
| 681 | #endif | ||
| 680 | }; | 682 | }; |
| 681 | 683 | ||
| 682 | /* A bunch of consecutive aligned blocks. */ | 684 | /* A bunch of consecutive aligned blocks. */ |