From 84e0b1bc9789148092797fecf303547fef35a875 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 22 Oct 2002 14:18:28 -0300 Subject: small changes in type configuration facilities --- llimits.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'llimits.h') diff --git a/llimits.h b/llimits.h index 9acea06d..ae24db35 100644 --- a/llimits.h +++ b/llimits.h @@ -1,5 +1,5 @@ /* -** $Id: llimits.h,v 1.45 2002/07/08 20:22:08 roberto Exp roberto $ +** $Id: llimits.h,v 1.46 2002/10/08 18:46:08 roberto Exp roberto $ ** Limits, basic types, and some other `installation-dependent' definitions ** See Copyright Notice in lua.h */ @@ -77,9 +77,18 @@ typedef unsigned char lu_byte; /* type to ensure maximum alignment */ #ifndef LUSER_ALIGNMENT_T -#define LUSER_ALIGNMENT_T double +typedef union { double u; void *s; long l; } L_Umaxalign; +#else +typedef LUSER_ALIGNMENT_T L_Umaxalign; +#endif + + +/* result of `usual argument convertion' over lua_Number */ +#ifndef LUA_UACNUMBER +typedef double l_uacNumber; +#else +typedef LUA_UACNUMBER l_uacNumber; #endif -union L_Umaxalign { LUSER_ALIGNMENT_T u; void *s; long l; }; #ifndef lua_assert -- cgit v1.2.3-55-g6feb