diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-10-22 14:18:28 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-10-22 14:18:28 -0300 |
commit | 84e0b1bc9789148092797fecf303547fef35a875 (patch) | |
tree | 68f96f805a188fc2cbde2bac7b10da33c8c4c77f /llimits.h | |
parent | 6823a2f57f5dfb4365e7cb0c9281fe0d00b0a1e4 (diff) | |
download | lua-84e0b1bc9789148092797fecf303547fef35a875.tar.gz lua-84e0b1bc9789148092797fecf303547fef35a875.tar.bz2 lua-84e0b1bc9789148092797fecf303547fef35a875.zip |
small changes in type configuration facilities
Diffstat (limited to 'llimits.h')
-rw-r--r-- | llimits.h | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llimits.h,v 1.45 2002/07/08 20:22:08 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.46 2002/10/08 18:46:08 roberto Exp roberto $ |
3 | ** Limits, basic types, and some other `installation-dependent' definitions | 3 | ** Limits, basic types, and some other `installation-dependent' definitions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -77,9 +77,18 @@ typedef unsigned char lu_byte; | |||
77 | 77 | ||
78 | /* type to ensure maximum alignment */ | 78 | /* type to ensure maximum alignment */ |
79 | #ifndef LUSER_ALIGNMENT_T | 79 | #ifndef LUSER_ALIGNMENT_T |
80 | #define LUSER_ALIGNMENT_T double | 80 | typedef union { double u; void *s; long l; } L_Umaxalign; |
81 | #else | ||
82 | typedef LUSER_ALIGNMENT_T L_Umaxalign; | ||
83 | #endif | ||
84 | |||
85 | |||
86 | /* result of `usual argument convertion' over lua_Number */ | ||
87 | #ifndef LUA_UACNUMBER | ||
88 | typedef double l_uacNumber; | ||
89 | #else | ||
90 | typedef LUA_UACNUMBER l_uacNumber; | ||
81 | #endif | 91 | #endif |
82 | union L_Umaxalign { LUSER_ALIGNMENT_T u; void *s; long l; }; | ||
83 | 92 | ||
84 | 93 | ||
85 | #ifndef lua_assert | 94 | #ifndef lua_assert |