better encapsulation of some types

This commit is contained in:
Roberto Ierusalimschy
2001-02-22 14:15:18 -03:00
parent 191fd35f0a
commit 52ee91dd73
10 changed files with 83 additions and 64 deletions

19
lua.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: lua.h,v 1.86 2001/02/09 19:53:16 roberto Exp roberto $
** $Id: lua.h,v 1.87 2001/02/20 18:15:33 roberto Exp roberto $
** Lua - An Extensible Extension Language
** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil
** e-mail: lua@tecgraf.puc-rio.br
@@ -39,10 +39,6 @@
#define LUA_MULTRET (-1)
/* minimum stack available for a C function */
#define LUA_MINSTACK 20
/* error codes for lua_do* */
#define LUA_ERRRUN 1
#define LUA_ERRFILE 2
@@ -50,10 +46,6 @@
#define LUA_ERRMEM 4
#define LUA_ERRERR 5
/* Lua numerical type */
typedef double lua_Number;
typedef struct lua_State lua_State;
typedef int (*lua_CFunction) (lua_State *L);
@@ -71,6 +63,7 @@ typedef int (*lua_CFunction) (lua_State *L);
#define LUA_TFUNCTION 5
/*
** generic extra include file
*/
@@ -79,6 +72,14 @@ typedef int (*lua_CFunction) (lua_State *L);
#endif
/* minimum stack available for a C function */
#define LUA_MINSTACK 20
/* Lua numerical type */
typedef double lua_Number;
/* mark for all API functions */
#ifndef LUA_API