diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-26 10:47:05 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-26 10:47:05 -0200 |
commit | b892f0a8774f573d7ec9b02617428871b8d3a2b3 (patch) | |
tree | 4aab88443264d84d314ca663cf3c30b48c7e9107 /lmem.c | |
parent | aadc35449ec2752c298a7a8fa6359a3a12c538ee (diff) | |
download | lua-b892f0a8774f573d7ec9b02617428871b8d3a2b3.tar.gz lua-b892f0a8774f573d7ec9b02617428871b8d3a2b3.tar.bz2 lua-b892f0a8774f573d7ec9b02617428871b8d3a2b3.zip |
new API function `createuserdata'
Diffstat (limited to 'lmem.c')
-rw-r--r-- | lmem.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lmem.c,v 1.36 2000/08/09 19:16:57 roberto Exp roberto $ | 2 | ** $Id: lmem.c,v 1.37 2000/10/11 16:47:50 roberto Exp roberto $ |
3 | ** Interface to Memory Manager | 3 | ** Interface to Memory Manager |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -35,8 +35,7 @@ | |||
35 | 35 | ||
36 | 36 | ||
37 | /* ensures maximum alignment for HEADER */ | 37 | /* ensures maximum alignment for HEADER */ |
38 | union L_U { double d; char *s; long l; }; | 38 | #define HEADER (sizeof(union L_Umaxalign)) |
39 | #define HEADER (sizeof(union L_U)) | ||
40 | 39 | ||
41 | #define MARKSIZE 16 | 40 | #define MARKSIZE 16 |
42 | #define MARK 0x55 /* 01010101 (a nice pattern) */ | 41 | #define MARK 0x55 /* 01010101 (a nice pattern) */ |