63b8a6fd20
"getobjname" checks first fallbacks (so, if a function is global and a fallback, it is reported as a fallback).
Roberto Ierusalimschy1995-11-03 13:30:50 -02:00
15d48576ea
functions now may be declared with any "var" as a name; therefore they do not have a "baptism" name. Changes in debug API to acomodate that.
Roberto Ierusalimschy1995-10-26 12:21:56 -02:00
39b071f7b1
new syntax for function declarations: "function a.x () ... " new semantics for function declarations: function f () is valid only at run-time.
Roberto Ierusalimschy1995-10-25 12:33:25 -02:00
9efc257d9d
new method to keep debug line information: current line is stored on the Lua stack, just below (new) base, with tag LUA_T_LINE. SETLINE opcodes are generated by lex.
Roberto Ierusalimschy1995-10-25 11:05:51 -02:00
2cffb08a5c
new style for debug information about functions: no more SETFUNCTION opcodes. When a function is called, its entry in the stack is marked with LUA_T_(C)MARK, so function 'luaD_stackedfunction' can find it if needed. Functions now have their file names in the headers, so there is no need of 'addfile' and the like.
Roberto Ierusalimschy1995-10-17 09:58:41 -02:00
15f40fddca
'nextvar' now traverses the symbol array, instead of the constant tree.
Roberto Ierusalimschy1995-10-17 09:53:53 -02:00
3c75b75516
new module "func", for GC of functions, and new "defines" for configuration setup.
Roberto Ierusalimschy1995-10-09 15:51:49 -03:00
36a7fda014
bug: stack overflow error must leave space on the stack for error function.
Roberto Ierusalimschy1995-10-09 15:45:59 -03:00
1bb3fb73cc
fallback table now has number of parameters and results of each fallback. This information is used by opcode.c, when calling a fallback.
Roberto Ierusalimschy1995-10-09 10:14:29 -03:00
7e01348658
"docall" now assumes that called function is always on the stack, just below "base". That gives more regularity for the stack shape, and prevents fallbacks of being garbage collected if they are redefined during execution.
Roberto Ierusalimschy1995-10-09 10:10:20 -03:00
28b3017baf
lua function "type" now returns the string "function" both for lua functions and c functions.
Roberto Ierusalimschy1995-10-09 10:06:20 -03:00
ae808860ae
new functions: "ascii" and "int2str", small "re-engineering" on parameter checking.
Roberto Ierusalimschy1995-10-09 09:49:21 -03:00
a47e8c7dd0
small "re-engineering" on parameter checking. correction of function "atan2".
Roberto Ierusalimschy1995-10-09 09:48:38 -03:00
79ce619876
new command line options: -v to print Copyright message, and - to read stdin.
Roberto Ierusalimschy1995-10-06 11:11:40 -03:00
bcf46ee83b
new syntax for strings: [[ ... ]]. Still in tests, since the code does not check buffer overflow.
Roberto Ierusalimschy1995-07-06 14:47:08 -03:00
ec79f25286
new lua function "getstack"; new interface to function luaI_reportbug.
Roberto Ierusalimschy1995-05-16 14:23:58 -03:00
18ea2eff80
calls to "lua_reportbug" changed to "lua_error", since "lua_reportbug" is only an internal function to build debug information
Roberto Ierusalimschy1995-05-02 15:43:03 -03:00
8156604823
run-time stack now is controled at run time, instead of compilation time.
Waldemar Celes1995-04-11 14:56:30 -03:00
36b6fdda83
function "type" now returns a second result: the tag of the type, so lua can discriminate different kinds of user data.
Roberto Ierusalimschy1995-03-17 17:42:20 -03:00
6198626138
libs should not use Lua internal functions (like mem.h). a null lua_Object is LUA_NOOBJECT, not NULL.
Roberto Ierusalimschy1995-02-02 16:54:58 -02:00
8795aab83e
new API function lua_pushlocked & lua_checkstack is a macro
Waldemar Celes1995-01-27 15:19:06 -02:00
8faf4d1de2
control of garbage collection is done with Longs, as there can be more than WORD objects to collect.
Roberto Ierusalimschy1995-01-12 12:19:04 -02:00
53c0a0f43c
function 'strfind' now has two optional parameters, to specify where to start and stop the search.
Roberto Ierusalimschy1995-01-06 18:31:10 -02:00
068d1cd1ee
new constant LUA_NOOBJECT. 'lua_createtable' does not have parameters. 'lua_copystring' now is a macro
Roberto Ierusalimschy1994-12-16 13:56:45 -02:00