projects
/
tedtools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7282b0c
)
use offset instead of manually calculated header size
author
teodor
<teodor>
Thu, 21 Jan 2010 14:09:19 +0000
(14:09 +0000)
committer
teodor
<teodor>
Thu, 21 Jan 2010 14:09:19 +0000
(14:09 +0000)
tmalloc.h
patch
|
blob
|
history
diff --git
a/tmalloc.h
b/tmalloc.h
index
4cb0a0b
..
cc10c33
100644
(file)
--- a/
tmalloc.h
+++ b/
tmalloc.h
@@
-72,7
+72,7
@@
typedef struct {
char data[1];
} MCAllocatedSpace;
-#define MCASHDRSZ
( sizeof(size_t) + sizeof(MemoryContext*)
)
+#define MCASHDRSZ
offsetof(MCAllocatedSpace, data
)
#define MCMAGICKNUMBER (0xFE0FBEEF)
MemoryContext *allocMemoryContext(MemoryContext* parent, int flags);