diff options
Diffstat (limited to '')
| -rw-r--r-- | llimits.h | 22 |
1 files changed, 16 insertions, 6 deletions
| @@ -1,6 +1,6 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: llimits.h,v 1.23 2001/02/20 18:15:33 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.24 2001/02/22 17:15:18 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 | */ |
| 6 | 6 | ||
| @@ -33,7 +33,7 @@ | |||
| 33 | 33 | ||
| 34 | /* function to convert a lua_Number to a string */ | 34 | /* function to convert a lua_Number to a string */ |
| 35 | #ifndef NUMBER_FMT | 35 | #ifndef NUMBER_FMT |
| 36 | #define NUMBER_FMT "%.16g" /* LUA_NUMBER */ | 36 | #define NUMBER_FMT l_s("%.16g") /* LUA_NUMBER */ |
| 37 | #endif | 37 | #endif |
| 38 | #ifndef lua_number2str | 38 | #ifndef lua_number2str |
| 39 | #define lua_number2str(s,n) sprintf((s), NUMBER_FMT, (n)) | 39 | #define lua_number2str(s,n) sprintf((s), NUMBER_FMT, (n)) |
| @@ -45,11 +45,21 @@ | |||
| 45 | #endif | 45 | #endif |
| 46 | 46 | ||
| 47 | 47 | ||
| 48 | /* macro to control type of literal strings */ | ||
| 49 | #ifndef l_s | ||
| 50 | #define l_s(x) x | ||
| 51 | #endif | ||
| 52 | |||
| 53 | /* macro to control type of literal chars */ | ||
| 54 | #ifndef l_c | ||
| 55 | #define l_c(x) x | ||
| 56 | #endif | ||
| 57 | |||
| 48 | 58 | ||
| 49 | /* | 59 | /* |
| 50 | ** the following types define integer types for values that may not | 60 | ** the following types define integer types for values that may not |
| 51 | ** fit in a "small int" (16 bits), but may waste space in a | 61 | ** fit in a `small int' (16 bits), but may waste space in a |
| 52 | ** "large long" (64 bits). The current definitions should work in | 62 | ** `large long' (64 bits). The current definitions should work in |
| 53 | ** any machine, but may not be optimal. | 63 | ** any machine, but may not be optimal. |
| 54 | */ | 64 | */ |
| 55 | 65 | ||
| @@ -88,7 +98,7 @@ typedef unsigned char lu_byte; | |||
| 88 | 98 | ||
| 89 | 99 | ||
| 90 | 100 | ||
| 91 | #define MINPOWER2 4 /* minimum size for "growing" vectors */ | 101 | #define MINPOWER2 4 /* minimum size for `growing' vectors */ |
| 92 | 102 | ||
| 93 | 103 | ||
| 94 | 104 | ||
