f86c1367db
new functions "rename" and "tmpname". new option 'q' for function "format". new example, about vararg.
Roberto Ierusalimschy1996-03-14 14:45:01 -03:00
5eff5d3eac
moved some includes from undump.h LoadString now uses luaI_buffer added LoadNewString needs tf->marked=0 luaI_undump now returns int and aborts if luaI_dorun fails
Luiz Henrique de Figueiredo1996-03-11 19:01:46 -03:00
3cab7cd025
undump.c is now a module panic is now lua_error included swap.c tries float permutation earlier new functions: luaI_undump1 and luaI_undump
Luiz Henrique de Figueiredo1996-03-08 18:44:12 -03:00
d1608c597e
reserved words are stored in main string table; "marked" field is used to indicate its type. Table initializations centralized by "tree.c".
Roberto Ierusalimschy1996-02-14 10:35:51 -03:00
f1a1eda7c5
old trick in "strsub" does not work with new hash table for strings.
Roberto Ierusalimschy1996-02-12 15:34:44 -03:00
41259bff31
BIG CHANGE: new data structure for constants, strings and globals, using an array of hash tables for all them.
Roberto Ierusalimschy1996-02-12 15:32:40 -03:00
5a3a1fe458
debug interface functions to manipulated local variables: "lua_getlocal" and "lua_setlocal".
Roberto Ierusalimschy1996-02-07 16:10:27 -02:00
15057aa0a4
new examples showing data structures and object-oriented programming. generic improvements and corrections.
Roberto Ierusalimschy1996-02-05 12:52:47 -02:00
0d50b87aa4
lua_table now has references to global variable names (TreeNode's).
Roberto Ierusalimschy1996-01-26 16:03:19 -02:00
19290a8e92
"dofile" issues an error when called with non string arguments, and runs stdin when called without arguments.
Roberto Ierusalimschy1996-01-26 14:52:47 -02:00
d845963349
"setglobal" and "getglobal" moved to inout.c, as it concentrates pre-defined library. new function "assert".
Roberto Ierusalimschy1996-01-26 12:05:28 -02:00
8dae4657a1
"setglobal" and "getglobal" moved to inout.c, as it concentrates pre-defined library.
Roberto Ierusalimschy1996-01-26 12:04:32 -02:00
ca7be1cfeb
elimination of function "int2str", as it can be replaced by "format('%c', .)"
Roberto Ierusalimschy1996-01-26 10:11:28 -02:00
445872a6e2
"dofile" does not issue a warning when unable to open the file, but only returns an error code.
Roberto Ierusalimschy1996-01-23 16:43:07 -02:00
2998049f51
local variable stack needs only the name of the variable (TreeNode); this way is simpler and faster than old way.
Roberto Ierusalimschy1996-01-23 15:50:29 -02:00
e74b250d71
memory overflow tries a garbage collection; if it fails then exit the program.
Roberto Ierusalimschy1996-01-22 12:15:13 -02:00
cd54c95ee1
bug: "read" with format MUST read given number of chars (if file ends before that reports an error, returning nil). "readuntil" can be called with nil or no parameters to read until EOF.
Roberto Ierusalimschy1996-01-12 15:00:30 -02:00
27ae8432b6
names generated by yacc (starting with "yy") are changed to start with "luaY_", to avoid name clashes with hosts using yacc.
Roberto Ierusalimschy1995-12-21 14:14:04 -02:00
415ee250b5
bug: luaI_findconstantbyname may change the value of lua_constant.
Roberto Ierusalimschy1995-12-18 14:47:29 -02:00