type 'L_Umaxalign' replaced by macro 'LUAI_MAXALIGN', which is also added

to the auxlib buffer
This commit is contained in:
Roberto Ierusalimschy
2017-04-24 15:06:12 -03:00
parent f399e6705f
commit 2caecf1b3e
6 changed files with 21 additions and 27 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: llimits.h,v 1.140 2015/10/21 18:40:47 roberto Exp roberto $
** $Id: llimits.h,v 1.141 2015/11/19 19:16:22 roberto Exp roberto $
** Limits, basic types, and some other 'installation-dependent' definitions
** See Copyright Notice in lua.h
*/
@@ -60,21 +60,6 @@ typedef unsigned char lu_byte;
/* type to ensure maximum alignment */
#if defined(LUAI_USER_ALIGNMENT_T)
typedef LUAI_USER_ALIGNMENT_T L_Umaxalign;
#else
typedef union {
lua_Number n;
double u;
void *s;
lua_Integer i;
long l;
} L_Umaxalign;
#endif
/* types of 'usual argument conversions' for lua_Number and lua_Integer */
typedef LUAI_UACNUMBER l_uacNumber;
typedef LUAI_UACINT l_uacInt;