diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-04-30 17:13:38 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-04-30 17:13:38 -0300 |
commit | b4cd38ba6c148cf7db5deae6208b660c3417cac9 (patch) | |
tree | 8818b5e364c8ad5489a9755d3fc24110bccfdfe2 /lua.h | |
parent | 079facab40542ff2e6be9ecc254fd148772b47c9 (diff) | |
download | lua-b4cd38ba6c148cf7db5deae6208b660c3417cac9.tar.gz lua-b4cd38ba6c148cf7db5deae6208b660c3417cac9.tar.bz2 lua-b4cd38ba6c148cf7db5deae6208b660c3417cac9.zip |
new scheme for configuration through `luaconf.h'
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 34 |
1 files changed, 4 insertions, 30 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.187 2004/03/09 17:34:35 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.188 2004/03/24 13:55:46 roberto Exp roberto $ |
3 | ** Lua - An Extensible Extension Language | 3 | ** Lua - An Extensible Extension Language |
4 | ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil | 4 | ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil |
5 | ** http://www.lua.org mailto:info@lua.org | 5 | ** http://www.lua.org mailto:info@lua.org |
@@ -14,6 +14,9 @@ | |||
14 | #include <stddef.h> | 14 | #include <stddef.h> |
15 | 15 | ||
16 | 16 | ||
17 | #include "luaconf.h" | ||
18 | |||
19 | |||
17 | #define LUA_VERSION "Lua 5.1 (work)" | 20 | #define LUA_VERSION "Lua 5.1 (work)" |
18 | #define LUA_COPYRIGHT "Copyright (C) 1994-2004 Tecgraf, PUC-Rio" | 21 | #define LUA_COPYRIGHT "Copyright (C) 1994-2004 Tecgraf, PUC-Rio" |
19 | #define LUA_AUTHORS "R. Ierusalimschy, L. H. de Figueiredo & W. Celes" | 22 | #define LUA_AUTHORS "R. Ierusalimschy, L. H. de Figueiredo & W. Celes" |
@@ -91,26 +94,13 @@ typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); | |||
91 | 94 | ||
92 | 95 | ||
93 | /* type of numbers in Lua */ | 96 | /* type of numbers in Lua */ |
94 | #ifndef LUA_NUMBER | ||
95 | typedef double lua_Number; | ||
96 | #else | ||
97 | typedef LUA_NUMBER lua_Number; | 97 | typedef LUA_NUMBER lua_Number; |
98 | #endif | ||
99 | 98 | ||
100 | 99 | ||
101 | /* type for integer functions */ | 100 | /* type for integer functions */ |
102 | #ifndef LUA_INTEGER | ||
103 | typedef long lua_Integer; | ||
104 | #else | ||
105 | typedef LUA_INTEGER lua_Integer; | 101 | typedef LUA_INTEGER lua_Integer; |
106 | #endif | ||
107 | 102 | ||
108 | 103 | ||
109 | /* mark for all API functions */ | ||
110 | #ifndef LUA_API | ||
111 | #define LUA_API extern | ||
112 | #endif | ||
113 | |||
114 | 104 | ||
115 | /* | 105 | /* |
116 | ** state manipulation | 106 | ** state manipulation |
@@ -310,22 +300,6 @@ LUA_API lua_Alloc lua_getallocf (lua_State *L, void **ud); | |||
310 | 300 | ||
311 | 301 | ||
312 | 302 | ||
313 | /* | ||
314 | ** {====================================================================== | ||
315 | ** useful definitions for Lua kernel and libraries | ||
316 | ** ======================================================================= | ||
317 | */ | ||
318 | |||
319 | /* formats for Lua numbers */ | ||
320 | #ifndef LUA_NUMBER_SCAN | ||
321 | #define LUA_NUMBER_SCAN "%lf" | ||
322 | #endif | ||
323 | |||
324 | #ifndef LUA_NUMBER_FMT | ||
325 | #define LUA_NUMBER_FMT "%.14g" | ||
326 | #endif | ||
327 | |||
328 | /* }====================================================================== */ | ||
329 | 303 | ||
330 | 304 | ||
331 | /* | 305 | /* |