summaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-05-24 10:54:49 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-05-24 10:54:49 -0300
commitef62b340e0a6b7b18931000dcbb19c4703bfe0e8 (patch)
treed9d995116a8a686b798d1b625b06ead26f28ba58 /lua.h
parent5c2dd7a9e0a5b871a71ba66c4683cd88fe4f5aa4 (diff)
downloadlua-ef62b340e0a6b7b18931000dcbb19c4703bfe0e8.tar.gz
lua-ef62b340e0a6b7b18931000dcbb19c4703bfe0e8.tar.bz2
lua-ef62b340e0a6b7b18931000dcbb19c4703bfe0e8.zip
code cleaner for 16 bits.
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/lua.h b/lua.h
index 4cf3bf6d..f2c19465 100644
--- a/lua.h
+++ b/lua.h
@@ -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 */
51int lua_dostring (lua_State *L, const char *str); 56int lua_dostring (lua_State *L, const char *str);
52 /* Out: returns */ 57 /* Out: returns */
53int lua_dobuffer (lua_State *L, const char *buff, int size, 58int lua_dobuffer (lua_State *L, const char *buff, size_t size,
54 const char *name); /* Out: returns */ 59 const char *name); /* Out: returns */
55int lua_callfunction (lua_State *L, lua_Object f); 60int 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
80double lua_getnumber (lua_State *L, lua_Object obj); 85double lua_getnumber (lua_State *L, lua_Object obj);
81const char *lua_getstring (lua_State *L, lua_Object obj); 86const char *lua_getstring (lua_State *L, lua_Object obj);
82long lua_strlen (lua_State *L, lua_Object obj); 87size_t lua_strlen (lua_State *L, lua_Object obj);
83lua_CFunction lua_getcfunction (lua_State *L, lua_Object obj); 88lua_CFunction lua_getcfunction (lua_State *L, lua_Object obj);
84void *lua_getuserdata (lua_State *L, lua_Object obj); 89void *lua_getuserdata (lua_State *L, lua_Object obj);
85 90
86 91
87void lua_pushnil (lua_State *L); 92void lua_pushnil (lua_State *L);
88void lua_pushnumber (lua_State *L, double n); 93void lua_pushnumber (lua_State *L, double n);
89void lua_pushlstring (lua_State *L, const char *s, long len); 94void lua_pushlstring (lua_State *L, const char *s, size_t len);
90void lua_pushstring (lua_State *L, const char *s); 95void lua_pushstring (lua_State *L, const char *s);
91void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n); 96void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n);
92void lua_pushusertag (lua_State *L, void *u, int tag); 97void lua_pushusertag (lua_State *L, void *u, int tag);