5f664a4516
error functions are shared by all libraries
Roberto Ierusalimschy
1995-11-10 15:54:31 -02:00
87fe07c0d4
little improvement
Roberto Ierusalimschy
1995-11-10 12:12:02 -02:00
f9a9bd77e4
print_stack now gets a parameter (file to print); small changes.
Roberto Ierusalimschy
1995-11-03 13:43:50 -02:00
63b8a6fd20
"getobjname" checks first fallbacks (so, if a function is global and a fallback, it is reported as a fallback).
Roberto Ierusalimschy
1995-11-03 13:30:50 -02:00
024f2374ab
"AUTHORS" separated from COPYRIGHT.
Roberto Ierusalimschy
1995-10-31 15:05:35 -02:00
9d9f9c48ff
local variables may appear inside blocks in main code.
Roberto Ierusalimschy
1995-10-26 15:02: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 Ierusalimschy
1995-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 Ierusalimschy
1995-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 Ierusalimschy
1995-10-25 11:05:51 -02:00
fa71304e54
"dofile" now accepts NULL as parameter, to run stdin.
Roberto Ierusalimschy
1995-10-23 11:54:11 -02:00
b5745d11cd
uses "isatty" to check if executes stdin line by line or as a file.
Roberto Ierusalimschy
1995-10-23 11:54:11 -02:00
ebcf546a55
small changes in the format of debug information.
Roberto Ierusalimschy
1995-10-23 11:53:48 -02:00
2b45f8967c
small bug
Roberto Ierusalimschy
1995-10-17 16:16:58 -02:00
a66404aca6
function "setfallback" now gives an error if called with wrong parameters.
Roberto Ierusalimschy
1995-10-17 12:30:05 -02:00
d80659759b
new module luadebug.h.
Roberto Ierusalimschy
1995-10-17 12:12:45 -02:00
d24253d92f
module to declare API for debuging.
Roberto Ierusalimschy
1995-10-17 12:12:45 -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 Ierusalimschy
1995-10-17 09:58:41 -02:00
15f40fddca
'nextvar' now traverses the symbol array, instead of the constant tree.
Roberto Ierusalimschy
1995-10-17 09:53:53 -02:00
970995c3f2
'luaI_travfallbacks' now can look for a fallback.
Roberto Ierusalimschy
1995-10-17 09:52:38 -02:00
b17c76817d
new function "luaI_findconstantbyname".
Roberto Ierusalimschy
1995-10-13 12:16:25 -03:00
3c75b75516
new module "func", for GC of functions, and new "defines" for configuration setup.
Roberto Ierusalimschy
1995-10-09 15:51:49 -03:00
36a7fda014
bug: stack overflow error must leave space on the stack for error function.
Roberto Ierusalimschy
1995-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 Ierusalimschy
1995-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 Ierusalimschy
1995-10-09 10:10:20 -03:00
28b3017baf
lua function "type" now returns the string "function" both for lua functions and c functions.
Roberto Ierusalimschy
1995-10-09 10:06:20 -03:00
ae808860ae
new functions: "ascii" and "int2str", small "re-engineering" on parameter checking.
Roberto Ierusalimschy
1995-10-09 09:49:21 -03:00
a47e8c7dd0
small "re-engineering" on parameter checking. correction of function "atan2".
Roberto Ierusalimschy
1995-10-09 09:48:38 -03:00
79ce619876
new command line options: -v to print Copyright message, and - to read stdin.
Roberto Ierusalimschy
1995-10-06 11:11:40 -03:00
233f0b0cc7
definitions for Copyright and version notices
Roberto Ierusalimschy
1995-10-06 11:11:10 -03:00
025589f772
nova forma de comentarios: de '#' ate' fim de linha (para uso de lua como shell)
Roberto Ierusalimschy
1995-10-06 10:10:53 -03:00
68f337dfa6
Garbage collection of functions + header structure for functions
Roberto Ierusalimschy
1995-10-04 14:13:02 -03:00
f132ac03bc
Module to manipulate function headers.
Roberto Ierusalimschy
1995-10-04 11:20:26 -03:00
ec785a1d65
new option for "writeto" and "readfrom", to allow piped I/O on machines that support it.
Roberto Ierusalimschy
1995-10-04 10:53:10 -03:00
e0621e6115
new function "atan2".
Roberto Ierusalimschy
1995-10-04 10:52:09 -03:00
38411aa102
small correction to avoid problems with DOS/Windows
Roberto Ierusalimschy
1995-10-03 15:06:10 -03:00
3ec4f4eb86
small corrections to avoid warnings.
Roberto Ierusalimschy
1995-10-02 14:03:33 -03:00
367139c6d9
buffer for literals now grows dynamically, allowing big programs between [[ and ]].
Roberto Ierusalimschy
1995-09-15 17:48:26 -03:00
457bac94ce
small corrections to avoid uninitialized global variables.
Roberto Ierusalimschy
1995-09-15 17:47:53 -03:00
bcf46ee83b
new syntax for strings: [[ ... ]]. Still in tests, since the code does not check buffer overflow.
Roberto Ierusalimschy
1995-07-06 14:47:08 -03:00
97b2fd1ba1
syntax for {...;...} is more flexible now.
Roberto Ierusalimschy
1995-06-08 16:47:28 -03:00
ec79f25286
new lua function "getstack"; new interface to function luaI_reportbug.
Roberto Ierusalimschy
1995-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 Ierusalimschy
1995-05-02 15:43:03 -03:00
8156604823
run-time stack now is controled at run time, instead of compilation time.
Waldemar Celes
1995-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 Ierusalimschy
1995-03-17 17:42:20 -03:00
2043a0ca30
adjust checks if stack has enough space
Roberto Ierusalimschy
1995-02-10 10:51:29 -02:00
0761c4c036
included string.h
Luiz Henrique de Figueiredo
1995-02-07 14:04:15 -02:00
2d053126e6
new function for copy strings (strdup is not ANSI)
Roberto Ierusalimschy
1995-02-06 17:37:51 -02:00
3203460c9e
better approximation for PI
Roberto Ierusalimschy
1995-02-06 17:36:43 -02:00
bb00cd66a7
function "stat" needs "sys/types.h"
Roberto Ierusalimschy
1995-02-06 17:36:13 -02:00
7c342c488e
header "stdlib.h" was missing (gcc does not warn that)
Roberto Ierusalimschy
1995-02-06 17:35:09 -02:00
b36cd823b1
header "string.h" was missing (gcc does not warn that)
Roberto Ierusalimschy
1995-02-06 17:34:03 -02:00
cda444d7f4
type names changed to avoid clashes
Roberto Ierusalimschy
1995-02-06 17:32:43 -02:00
dd28b830e9
a null lua_Object is LUA_NOOBJECT, not NULL.
Roberto Ierusalimschy
1995-02-02 18:05:37 -02:00
572ee14b52
use yacc++ instead of yacc.
Roberto Ierusalimschy
1995-02-02 17:04:16 -02:00
6198626138
libs should not use Lua internal functions (like mem.h). a null lua_Object is LUA_NOOBJECT, not NULL.
Roberto Ierusalimschy
1995-02-02 16:54:58 -02:00
8795aab83e
new API function lua_pushlocked & lua_checkstack is a macro
Waldemar Celes
1995-01-27 15:19:06 -02:00
f83db16cab
new API function lua_pushlocked
Waldemar Celes
1995-01-27 15:19:06 -02:00
6e0e9935ec
trocar a funcao para garbage colector adaptativo.
Waldemar Celes
1995-01-18 18:15:54 -02:00
97053335fb
Trocar 'pushstring' por 'pushliteral' na macro 'getfield'.
Waldemar Celes
1995-01-18 18:15:05 -02:00
f4591397da
strdup is done via mem.c to control its memory allocation
Roberto Ierusalimschy
1995-01-14 13:40:26 -02:00
8faf4d1de2
control of garbage collection is done with Longs, as there can be more than WORD objects to collect.
Roberto Ierusalimschy
1995-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 Ierusalimschy
1995-01-06 18:31:10 -02:00
ad97e9ccbc
small bug in fallback for power operator
Roberto Ierusalimschy
1995-01-04 16:49:54 -02:00
e4c69cf917
correcao de bug na construcao do formato.
Waldemar Celes
1995-01-03 11:14:13 -02:00
5b8ced84b4
stack is indexed by integers, not Words, to allow bigger stack on 32 bit machines
Roberto Ierusalimschy
1994-12-30 15:45:11 -02:00
df3a81ec88
functions that no more return error codes now have return type void
Roberto Ierusalimschy
1994-12-28 10:55:47 -02:00
b8e76d9b5c
'lua_getsubscript' and 'lua_storesubscript' now run unprotected (to improve efficiency)
Waldemar Celes
1994-12-27 18:53:15 -02:00
dc97a07e19
better names for 'y.tab.c' and 'y.tab.h' (now they are moved to 'parser.c' and 'parser.h')
Waldemar Celes
1994-12-27 18:50:38 -02:00
4dce79f7e3
uses 'limits.h' for MAX_WORD and MAX_INT
Waldemar Celes
1994-12-27 18:41:47 -02:00
a8220feed2
bytecodes are indexed by integers, not Words, to allow bigger code on 32 bit machines
Waldemar Celes
1994-12-27 18:41:11 -02:00
8bc4b0d741
routines are defined before rules, to allow correct compilation with bison
Waldemar Celes
1994-12-27 18:04:29 -02:00
96b2b90c50
new file 'types.h'
Roberto Ierusalimschy
1994-12-23 18:47:59 -02:00
8cb8594a3b
better control of integer types and their limits
Roberto Ierusalimschy
1994-12-20 19:20:36 -02:00
fe8338335d
a field with value 'nil' must call the fallback 'index'
Roberto Ierusalimschy
1994-12-16 14:08:34 -02:00
068d1cd1ee
new constant LUA_NOOBJECT. 'lua_createtable' does not have parameters. 'lua_copystring' now is a macro
Roberto Ierusalimschy
1994-12-16 13:56:45 -02:00
3365a35243
new constant LUA_NOOBJECT
Roberto Ierusalimschy
1994-12-16 13:55:04 -02:00
fad57bfa00
new constant LUA_NOOBJECT. 'lua_error' never returns
Roberto Ierusalimschy
1994-12-16 13:53:57 -02:00
891cab8a31
Passar os argv apos '--' para Lua. Captura-se cada argv com a funcao argv(i), onde i = 1, 2, ...
Waldemar Celes
1994-12-14 17:58:20 -02:00
2486d677c9
no special treatment for C++ (this should be done in the C++ code)
Roberto Ierusalimschy
1994-12-13 13:59:16 -02:00