aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-12-04 16:33:40 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-12-04 16:33:40 -0200
commit4894c2796277b47b0ffc8983e8231d2cc95ee09b (patch)
treedc702c79716a42f22301bc5b9b5798a28173f7c2 /lua.h
parent10ac68c648e0e1d23fe5485bc711df8fc71b6ae3 (diff)
downloadlua-4894c2796277b47b0ffc8983e8231d2cc95ee09b.tar.gz
lua-4894c2796277b47b0ffc8983e8231d2cc95ee09b.tar.bz2
lua-4894c2796277b47b0ffc8983e8231d2cc95ee09b.zip
lua_Number defined in lua.h (1st version)
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/lua.h b/lua.h
index 6fc3c2db..5f3b9af9 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.78 2000/10/30 12:38:50 roberto Exp roberto $ 2** $Id: lua.h,v 1.79 2000/10/31 12:44:07 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
@@ -57,6 +57,9 @@
57#define LUA_ERRERR 5 57#define LUA_ERRERR 5
58 58
59 59
60/* Lua numerical type */
61typedef double lua_Number;
62
60typedef struct lua_State lua_State; 63typedef struct lua_State lua_State;
61 64
62typedef int (*lua_CFunction) (lua_State *L); 65typedef int (*lua_CFunction) (lua_State *L);
@@ -107,7 +110,7 @@ LUA_API int lua_tag (lua_State *L, int index);
107LUA_API int lua_equal (lua_State *L, int index1, int index2); 110LUA_API int lua_equal (lua_State *L, int index1, int index2);
108LUA_API int lua_lessthan (lua_State *L, int index1, int index2); 111LUA_API int lua_lessthan (lua_State *L, int index1, int index2);
109 112
110LUA_API double lua_tonumber (lua_State *L, int index); 113LUA_API lua_Number lua_tonumber (lua_State *L, int index);
111LUA_API const char *lua_tostring (lua_State *L, int index); 114LUA_API const char *lua_tostring (lua_State *L, int index);
112LUA_API size_t lua_strlen (lua_State *L, int index); 115LUA_API size_t lua_strlen (lua_State *L, int index);
113LUA_API lua_CFunction lua_tocfunction (lua_State *L, int index); 116LUA_API lua_CFunction lua_tocfunction (lua_State *L, int index);
@@ -119,7 +122,7 @@ LUA_API const void *lua_topointer (lua_State *L, int index);
119** push functions (C -> stack) 122** push functions (C -> stack)
120*/ 123*/
121LUA_API void lua_pushnil (lua_State *L); 124LUA_API void lua_pushnil (lua_State *L);
122LUA_API void lua_pushnumber (lua_State *L, double n); 125LUA_API void lua_pushnumber (lua_State *L, lua_Number n);
123LUA_API void lua_pushlstring (lua_State *L, const char *s, size_t len); 126LUA_API void lua_pushlstring (lua_State *L, const char *s, size_t len);
124LUA_API void lua_pushstring (lua_State *L, const char *s); 127LUA_API void lua_pushstring (lua_State *L, const char *s);
125LUA_API void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n); 128LUA_API void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n);