aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-10-22 14:18:28 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-10-22 14:18:28 -0300
commit84e0b1bc9789148092797fecf303547fef35a875 (patch)
tree68f96f805a188fc2cbde2bac7b10da33c8c4c77f /llimits.h
parent6823a2f57f5dfb4365e7cb0c9281fe0d00b0a1e4 (diff)
downloadlua-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.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/llimits.h b/llimits.h
index 9acea06d..ae24db35 100644
--- a/llimits.h
+++ b/llimits.h
@@ -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 80typedef union { double u; void *s; long l; } L_Umaxalign;
81#else
82typedef LUSER_ALIGNMENT_T L_Umaxalign;
83#endif
84
85
86/* result of `usual argument convertion' over lua_Number */
87#ifndef LUA_UACNUMBER
88typedef double l_uacNumber;
89#else
90typedef LUA_UACNUMBER l_uacNumber;
81#endif 91#endif
82union L_Umaxalign { LUSER_ALIGNMENT_T u; void *s; long l; };
83 92
84 93
85#ifndef lua_assert 94#ifndef lua_assert