diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-22 14:15:18 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-22 14:15:18 -0300 |
commit | 52ee91dd73199e068d31d3ac138d933ddd4fb9b1 (patch) | |
tree | 9f9f1fdc16c8a3464fef14b9946482df688c2ea8 /lua.h | |
parent | 191fd35f0a6cd47ea03417a663395acf5d0e9bf5 (diff) | |
download | lua-52ee91dd73199e068d31d3ac138d933ddd4fb9b1.tar.gz lua-52ee91dd73199e068d31d3ac138d933ddd4fb9b1.tar.bz2 lua-52ee91dd73199e068d31d3ac138d933ddd4fb9b1.zip |
better encapsulation of some types
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.86 2001/02/09 19:53:16 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.87 2001/02/20 18:15:33 roberto Exp roberto $ |
3 | ** Lua - An Extensible Extension Language | 3 | ** Lua - An Extensible Extension Language |
4 | ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil | 4 | ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil |
5 | ** e-mail: lua@tecgraf.puc-rio.br | 5 | ** e-mail: lua@tecgraf.puc-rio.br |
@@ -39,10 +39,6 @@ | |||
39 | #define LUA_MULTRET (-1) | 39 | #define LUA_MULTRET (-1) |
40 | 40 | ||
41 | 41 | ||
42 | /* minimum stack available for a C function */ | ||
43 | #define LUA_MINSTACK 20 | ||
44 | |||
45 | |||
46 | /* error codes for lua_do* */ | 42 | /* error codes for lua_do* */ |
47 | #define LUA_ERRRUN 1 | 43 | #define LUA_ERRRUN 1 |
48 | #define LUA_ERRFILE 2 | 44 | #define LUA_ERRFILE 2 |
@@ -50,10 +46,6 @@ | |||
50 | #define LUA_ERRMEM 4 | 46 | #define LUA_ERRMEM 4 |
51 | #define LUA_ERRERR 5 | 47 | #define LUA_ERRERR 5 |
52 | 48 | ||
53 | |||
54 | /* Lua numerical type */ | ||
55 | typedef double lua_Number; | ||
56 | |||
57 | typedef struct lua_State lua_State; | 49 | typedef struct lua_State lua_State; |
58 | 50 | ||
59 | typedef int (*lua_CFunction) (lua_State *L); | 51 | typedef int (*lua_CFunction) (lua_State *L); |
@@ -71,6 +63,7 @@ typedef int (*lua_CFunction) (lua_State *L); | |||
71 | #define LUA_TFUNCTION 5 | 63 | #define LUA_TFUNCTION 5 |
72 | 64 | ||
73 | 65 | ||
66 | |||
74 | /* | 67 | /* |
75 | ** generic extra include file | 68 | ** generic extra include file |
76 | */ | 69 | */ |
@@ -79,6 +72,14 @@ typedef int (*lua_CFunction) (lua_State *L); | |||
79 | #endif | 72 | #endif |
80 | 73 | ||
81 | 74 | ||
75 | /* minimum stack available for a C function */ | ||
76 | #define LUA_MINSTACK 20 | ||
77 | |||
78 | |||
79 | /* Lua numerical type */ | ||
80 | typedef double lua_Number; | ||
81 | |||
82 | |||
82 | 83 | ||
83 | /* mark for all API functions */ | 84 | /* mark for all API functions */ |
84 | #ifndef LUA_API | 85 | #ifndef LUA_API |