Imported from ../lua-2.5.tar.gz.
[lua.git] / include / lualib.h
blob4fb0ed2d691556d3d2cf281516b0d2361563cc7c
1 /*
2 ** Libraries to be used in LUA programs
3 ** Grupo de Tecnologia em Computacao Grafica
4 ** TeCGraf - PUC-Rio
5 ** $Id: lualib.h,v 1.10 1996/08/05 20:55:24 roberto Exp $
6 */
8 #ifndef lualib_h
9 #define lualib_h
11 #include "lua.h"
13 void iolib_open (void);
14 void strlib_open (void);
15 void mathlib_open (void);
18 /* auxiliar functions (private) */
20 struct lua_reg {
21 char *name;
22 lua_CFunction func;
25 void luaI_openlib (struct lua_reg *l, int n);
26 void lua_arg_check(int cond, char *funcname);
27 char *lua_check_string (int numArg, char *funcname);
28 char *lua_opt_string (int numArg, char *def, char *funcname);
29 double lua_check_number (int numArg, char *funcname);
30 long lua_opt_number (int numArg, long def, char *funcname);
31 char *luaI_addchar (int c);
32 void luaI_addquoted (char *s);
34 char *item_end (char *p);
35 int singlematch (int c, char *p);
37 #endif