diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-18 15:18:45 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-18 15:18:45 -0300 |
| commit | 54ac25334325d4d7c35005a0126ee8168ca1ae49 (patch) | |
| tree | d811bcba5e25cc8a82062d449f3735ad145adeee | |
| parent | bb129031205acc64eb6b41c98d8a08c1fccce308 (diff) | |
| download | lua-54ac25334325d4d7c35005a0126ee8168ca1ae49.tar.gz lua-54ac25334325d4d7c35005a0126ee8168ca1ae49.tar.bz2 lua-54ac25334325d4d7c35005a0126ee8168ca1ae49.zip | |
detail (no need to define LUAI_USER_ALIGNMENT_T when it is not
defined; simpler to define 'L_Umaxalign' directly)
| -rw-r--r-- | llimits.h | 9 |
1 files changed, 5 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: llimits.h,v 1.117 2014/06/26 16:17:35 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.118 2014/07/15 21:26:50 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 | */ |
| @@ -53,11 +53,12 @@ typedef unsigned char lu_byte; | |||
| 53 | 53 | ||
| 54 | 54 | ||
| 55 | /* type to ensure maximum alignment */ | 55 | /* type to ensure maximum alignment */ |
| 56 | #if !defined(LUAI_USER_ALIGNMENT_T) | 56 | #if defined(LUAI_USER_ALIGNMENT_T) |
| 57 | #define LUAI_USER_ALIGNMENT_T union { double u; void *s; long l; } | 57 | typedef LUAI_USER_ALIGNMENT_T L_Umaxalign; |
| 58 | #else | ||
| 59 | typedef union { double u; void *s; lua_Integer i; long l; } L_Umaxalign; | ||
| 58 | #endif | 60 | #endif |
| 59 | 61 | ||
| 60 | typedef LUAI_USER_ALIGNMENT_T L_Umaxalign; | ||
| 61 | 62 | ||
| 62 | 63 | ||
| 63 | /* types of 'usual argument conversions' for lua_Number and lua_Integer */ | 64 | /* types of 'usual argument conversions' for lua_Number and lua_Integer */ |
