summaryrefslogtreecommitdiff
path: root/lualib.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-04-30 18:13:55 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-04-30 18:13:55 -0300
commit3ec9ee0d0f81fd0aabaef1303f971b2f7ee12315 (patch)
tree07c3b5bdd856340429a3567212fc86fe80fdd005 /lualib.h
parent21c9ebf4a9891786d5683537868cc348340ca89d (diff)
downloadlua-github-3ec9ee0d0f81fd0aabaef1303f971b2f7ee12315.tar.gz
new function "luaI_openlib" to help open libs.
Diffstat (limited to 'lualib.h')
-rw-r--r--lualib.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/lualib.h b/lualib.h
index d7403b5f..567b0269 100644
--- a/lualib.h
+++ b/lualib.h
@@ -2,18 +2,27 @@
** Libraries to be used in LUA programs
** Grupo de Tecnologia em Computacao Grafica
** TeCGraf - PUC-Rio
-** $Id: lualib.h,v 1.6 1996/02/09 19:00:23 roberto Exp roberto $
+** $Id: lualib.h,v 1.7 1996/03/14 15:53:09 roberto Exp roberto $
*/
#ifndef lualib_h
#define lualib_h
+#include "lua.h"
+
void iolib_open (void);
void strlib_open (void);
void mathlib_open (void);
/* auxiliar functions (private) */
+
+struct lua_reg {
+ char *name;
+ lua_CFunction func;
+};
+
+void luaI_openlib (struct lua_reg *l, int n);
void lua_arg_error(char *funcname);
char *lua_check_string (int numArg, char *funcname);
double lua_check_number (int numArg, char *funcname);