diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-24 10:54:49 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-24 10:54:49 -0300 |
| commit | ef62b340e0a6b7b18931000dcbb19c4703bfe0e8 (patch) | |
| tree | d9d995116a8a686b798d1b625b06ead26f28ba58 /lua.h | |
| parent | 5c2dd7a9e0a5b871a71ba66c4683cd88fe4f5aa4 (diff) | |
| download | lua-ef62b340e0a6b7b18931000dcbb19c4703bfe0e8.tar.gz lua-ef62b340e0a6b7b18931000dcbb19c4703bfe0e8.tar.bz2 lua-ef62b340e0a6b7b18931000dcbb19c4703bfe0e8.zip | |
code cleaner for 16 bits.
Diffstat (limited to 'lua.h')
| -rw-r--r-- | lua.h | 15 |
1 files changed, 10 insertions, 5 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lua.h,v 1.51 2000/05/09 14:50:16 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.52 2000/05/10 16:35:18 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 |
| @@ -11,6 +11,11 @@ | |||
| 11 | #ifndef lua_h | 11 | #ifndef lua_h |
| 12 | #define lua_h | 12 | #define lua_h |
| 13 | 13 | ||
| 14 | |||
| 15 | /* definition of `size_t' */ | ||
| 16 | #include <stddef.h> | ||
| 17 | |||
| 18 | |||
| 14 | #define LUA_VERSION "Lua 4.0 (alpha)" | 19 | #define LUA_VERSION "Lua 4.0 (alpha)" |
| 15 | #define LUA_COPYRIGHT "Copyright (C) 1994-2000 TeCGraf, PUC-Rio" | 20 | #define LUA_COPYRIGHT "Copyright (C) 1994-2000 TeCGraf, PUC-Rio" |
| 16 | #define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo" | 21 | #define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo" |
| @@ -50,8 +55,8 @@ int lua_dofile (lua_State *L, const char *filename); | |||
| 50 | /* Out: returns */ | 55 | /* Out: returns */ |
| 51 | int lua_dostring (lua_State *L, const char *str); | 56 | int lua_dostring (lua_State *L, const char *str); |
| 52 | /* Out: returns */ | 57 | /* Out: returns */ |
| 53 | int lua_dobuffer (lua_State *L, const char *buff, int size, | 58 | int lua_dobuffer (lua_State *L, const char *buff, size_t size, |
| 54 | const char *name); /* Out: returns */ | 59 | const char *name); /* Out: returns */ |
| 55 | int lua_callfunction (lua_State *L, lua_Object f); | 60 | int lua_callfunction (lua_State *L, lua_Object f); |
| 56 | /* In: parameters; Out: returns */ | 61 | /* In: parameters; Out: returns */ |
| 57 | 62 | ||
| @@ -79,14 +84,14 @@ int lua_equal (lua_State *L, lua_Object o1, lua_Object o2); | |||
| 79 | 84 | ||
| 80 | double lua_getnumber (lua_State *L, lua_Object obj); | 85 | double lua_getnumber (lua_State *L, lua_Object obj); |
| 81 | const char *lua_getstring (lua_State *L, lua_Object obj); | 86 | const char *lua_getstring (lua_State *L, lua_Object obj); |
| 82 | long lua_strlen (lua_State *L, lua_Object obj); | 87 | size_t lua_strlen (lua_State *L, lua_Object obj); |
| 83 | lua_CFunction lua_getcfunction (lua_State *L, lua_Object obj); | 88 | lua_CFunction lua_getcfunction (lua_State *L, lua_Object obj); |
| 84 | void *lua_getuserdata (lua_State *L, lua_Object obj); | 89 | void *lua_getuserdata (lua_State *L, lua_Object obj); |
| 85 | 90 | ||
| 86 | 91 | ||
| 87 | void lua_pushnil (lua_State *L); | 92 | void lua_pushnil (lua_State *L); |
| 88 | void lua_pushnumber (lua_State *L, double n); | 93 | void lua_pushnumber (lua_State *L, double n); |
| 89 | void lua_pushlstring (lua_State *L, const char *s, long len); | 94 | void lua_pushlstring (lua_State *L, const char *s, size_t len); |
| 90 | void lua_pushstring (lua_State *L, const char *s); | 95 | void lua_pushstring (lua_State *L, const char *s); |
| 91 | void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n); | 96 | void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n); |
| 92 | void lua_pushusertag (lua_State *L, void *u, int tag); | 97 | void lua_pushusertag (lua_State *L, void *u, int tag); |
