diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-16 16:25:59 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-16 16:25:59 -0300 |
commit | 0c4ed2b3dc0570cd8d45fa548b4aa29581ea222f (patch) | |
tree | aae4e9750ec8a0b655bd912850926551fe4968a8 /lua.h | |
parent | b945fae40e270c8085ccdd8485bb01121f0a8406 (diff) | |
download | lua-0c4ed2b3dc0570cd8d45fa548b4aa29581ea222f.tar.gz lua-0c4ed2b3dc0570cd8d45fa548b4aa29581ea222f.tar.bz2 lua-0c4ed2b3dc0570cd8d45fa548b4aa29581ea222f.zip |
main header file
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 42 |
1 files changed, 37 insertions, 5 deletions
@@ -1,15 +1,47 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: $ | ||
2 | ** LUA - An Extensible Extension Language | 3 | ** LUA - An Extensible Extension Language |
3 | ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil | 4 | ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil |
4 | ** e-mail: lua@tecgraf.puc-rio.br | 5 | ** e-mail: lua@tecgraf.puc-rio.br |
5 | ** $Id: lua.h,v 4.10 1997/06/19 18:03:04 roberto Exp roberto $ | ||
6 | */ | 6 | */ |
7 | 7 | ||
8 | /********************************************************************* | ||
9 | * Copyright © 1994-1996 TeCGraf, PUC-Rio. Written by Waldemar Ce | ||
10 | * les Filho, Roberto Ierusalimschy and Luiz Henrique de Figueiredo. | ||
11 | * All rights reserved. | ||
12 | * | ||
13 | * Permission is hereby granted, without written agreement and with | ||
14 | * out license or royalty fees, to use, copy, modify, and distribute | ||
15 | * this software and its documentation for any purpose, subject to | ||
16 | * the following conditions: | ||
17 | * | ||
18 | * The above copyright notice and this permission notice shall ap | ||
19 | * pear in all copies or substantial portions of this software. | ||
20 | * | ||
21 | * The name "Lua" cannot be used for any modified form of this soft | ||
22 | * ware that does not originate from the authors. Nevertheless, the | ||
23 | * name "Lua" may and should be used to designate the language im | ||
24 | * plemented and described in this package, even if embedded in any | ||
25 | * other system, as long as its syntax and semantics remain un | ||
26 | * changed. | ||
27 | * | ||
28 | * The authors specifically disclaim any warranties, including, but | ||
29 | * not limited to, the implied warranties of merchantability and | ||
30 | * fitness for a particular purpose. The software provided hereunder | ||
31 | * is on an "as is" basis, and the authors have no obligation to | ||
32 | * provide maintenance, support, updates, enhancements, or modifica | ||
33 | * tions. In no event shall TeCGraf, PUC-Rio, or the authors be li | ||
34 | * able to any party for direct, indirect, special, incidental, or | ||
35 | * consequential damages arising out of the use of this software and | ||
36 | * its documentation. | ||
37 | *********************************************************************/ | ||
38 | |||
39 | |||
8 | 40 | ||
9 | #ifndef lua_h | 41 | #ifndef lua_h |
10 | #define lua_h | 42 | #define lua_h |
11 | 43 | ||
12 | #define LUA_VERSION "Lua 3.0" | 44 | #define LUA_VERSION "Lua 3.1" |
13 | #define LUA_COPYRIGHT "Copyright (C) 1994-1997 TeCGraf" | 45 | #define LUA_COPYRIGHT "Copyright (C) 1994-1997 TeCGraf" |
14 | #define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo" | 46 | #define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo" |
15 | 47 | ||
@@ -21,9 +53,9 @@ | |||
21 | typedef void (*lua_CFunction) (void); | 53 | typedef void (*lua_CFunction) (void); |
22 | typedef unsigned int lua_Object; | 54 | typedef unsigned int lua_Object; |
23 | 55 | ||
24 | lua_Object lua_settagmethod (int tag, char *event); /* In: new method */ | 56 | lua_Object lua_settagmethod (int tag, char *event); /* In: luaM_new method */ |
25 | lua_Object lua_gettagmethod (int tag, char *event); | 57 | lua_Object lua_gettagmethod (int tag, char *event); |
26 | lua_Object lua_seterrormethod (void); /* In: new method */ | 58 | lua_Object lua_seterrormethod (void); /* In: luaM_new method */ |
27 | 59 | ||
28 | int lua_newtag (void); | 60 | int lua_newtag (void); |
29 | void lua_settag (int tag); /* In: object */ | 61 | void lua_settag (int tag); /* In: object */ |
@@ -102,7 +134,7 @@ long lua_collectgarbage (long limit); | |||
102 | 134 | ||
103 | 135 | ||
104 | 136 | ||
105 | /* ========================================================================== | 137 | /* ========================================================================== |
106 | ** for compatibility with old versions. Avoid using these macros/functions | 138 | ** for compatibility with old versions. Avoid using these macros/functions |
107 | ** If your program does not use any of these, define LUA_COMPAT2_5 to 0 | 139 | ** If your program does not use any of these, define LUA_COMPAT2_5 to 0 |
108 | */ | 140 | */ |