aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorJason Rumney2003-07-06 14:55:00 +0000
committerJason Rumney2003-07-06 14:55:00 +0000
commitebb8d410538fd1704ecc15c18fa27f610042eed2 (patch)
tree3382b30e7e626bc68f524618a100dffafe96727e /src/alloc.c
parent1d660ecaf751fdff0181dce64ac287497d994dbe (diff)
downloademacs-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.c4
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. */