This website requires JavaScript.
88a2023c32
support for strings with '\0'
Roberto Ierusalimschy
1998-03-06 13:54:42 -03:00
5ef1989c4b
"settag" returns its first argument.
Roberto Ierusalimschy
1998-02-12 17:27:10 -02:00
f380d627f8
usefull macros also available as functions
Roberto Ierusalimschy
1998-02-12 17:23:32 -02:00
aafa106d10
implementation of numerical escape sequences in strings ("\12"); better error messages for wrong tokens
Roberto Ierusalimschy
1998-02-11 18:56:46 -02:00
29b7b8e52c
better error messages for wrong tokens
Roberto Ierusalimschy
1998-02-11 18:56:46 -02:00
a9dd2c6717
interrupts lua loops with "^C" (via signals)
Roberto Ierusalimschy
1998-02-11 18:56:05 -02:00
aee3f97acb
put back quotes (") when string in dostring ends with a \n
Roberto Ierusalimschy
1998-01-29 13:59:35 -02:00
46968b8ffa
"volatile is the only reliable way to ensure that a local variable retains the value it had at the time of the call to longjmp"
Roberto Ierusalimschy
1998-01-28 15:47:05 -02:00
6cdf0d8768
tables can become full of "emptys" slots, and keep growing without limits.
Roberto Ierusalimschy
1998-01-28 14:50:33 -02:00
07ff251a17
details in "dostring" identification
Roberto Ierusalimschy
1998-01-27 19:21:27 -02:00
b3b7cf7335
BUG: "lua_getstring" may create a new string, so should check GC
Roberto Ierusalimschy
1998-01-27 17:13:45 -02:00
8622dc18bf
bug: format size limits with little problems
Roberto Ierusalimschy
1998-01-27 17:11:36 -02:00
d22e2644dd
wrong line number (+1) in error report when file starts with "#..."
Roberto Ierusalimschy
1998-01-19 18:18:02 -02:00
f529a22ca5
BUG: wrong line number (+1) in error report when file starts with "#..."
Roberto Ierusalimschy
1998-01-19 18:18:02 -02:00
783ba75129
needs "stdlib.h" (calls "exit")
Roberto Ierusalimschy
1998-01-19 17:49:49 -02:00
d49e4dd752
MAX_WORD should not be bigger than MAX_INT
Roberto Ierusalimschy
1998-01-19 17:49:22 -02:00
981fddea02
module to load bytecodes from files.
Roberto Ierusalimschy
1998-01-14 13:49:01 -02:00
81b953f27e
details
Roberto Ierusalimschy
1998-01-14 11:49:44 -02:00
b9acf4b4af
"strcoll" may not exist in ond ansi machines
Roberto Ierusalimschy
1998-01-14 11:49:15 -02:00
44ace0aefd
we don't need a type "Word".
Roberto Ierusalimschy
1998-01-14 11:48:28 -02:00
5981161360
small optimizations (?)
Roberto Ierusalimschy
1998-01-13 16:06:27 -02:00
763c64be9b
details
Roberto Ierusalimschy
1998-01-13 13:42:43 -02:00
f0dffaa209
new way to hanlde arg information
Roberto Ierusalimschy
1998-01-12 11:35:37 -02:00
77a6836fef
we don't need a type "Word".
Roberto Ierusalimschy
1998-01-12 11:00:51 -02:00
9f043e8017
luaL_arg_check now is inlined
Roberto Ierusalimschy
1998-01-09 13:09:53 -02:00
6ac047afc4
details
Roberto Ierusalimschy
1998-01-09 12:57:43 -02:00
0e1058cfdd
small optimizations in switch order
Roberto Ierusalimschy
1998-01-09 12:44:55 -02:00
26679b1a48
back to upavalues as extra arguments for C closures; this way it's trivial to make currying.
Roberto Ierusalimschy
1998-01-07 14:26:48 -02:00
e04c2b9aa8
details
Roberto Ierusalimschy
1998-01-06 17:17:31 -02:00
0c031dcc8b
details
Roberto Ierusalimschy
1998-01-05 15:12:54 -02:00
c332c4e927
reference manual of the Lua language
Roberto Ierusalimschy
1998-01-02 16:34:00 -02:00
964c503a63
LUA_COMPAT2.5 may use #ifdef instead of #if
Roberto Ierusalimschy
1998-01-02 15:46:32 -02:00
90d87e3a78
details
Roberto Ierusalimschy
1997-12-30 17:15:52 -02:00
f76bca23ef
variants for "ARGS".
Roberto Ierusalimschy
1997-12-30 17:08:23 -02:00
a5fd7d722c
opctional "base" in "tonumber" convertion.
Roberto Ierusalimschy
1997-12-30 15:57:45 -02:00
4e0bf95622
variant opcodes for PUSHSELF
Roberto Ierusalimschy
1997-12-29 15:35:46 -02:00
498a934abf
new syntax possibilities: f(x).x, etc; on the other hand, "function ... (x)" now is more restricted.
Roberto Ierusalimschy
1997-12-29 15:28:45 -02:00
ce53872684
new syntax: f´s´ for f(´s´).
Roberto Ierusalimschy
1997-12-28 20:48:15 -02:00
da96eb2cce
some details related to OLD_ANSI
Roberto Ierusalimschy
1997-12-26 16:38:16 -02:00
fada8efd01
"rand()", in SunOS, may return values bigger than "RAND_MAX"...
Roberto Ierusalimschy
1997-12-26 16:36:31 -02:00
d916487d7c
auxlib split in two parts (lauxlib and lbuffer)
Roberto Ierusalimschy
1997-12-23 17:24:36 -02:00
1bf762ba38
Generic buffer facilities for Lua (and libraries)
Roberto Ierusalimschy
1997-12-23 17:24:36 -02:00
541e722360
details
Roberto Ierusalimschy
1997-12-23 17:24:19 -02:00
807ba6301c
error method *always* gets a string (otherwise it is not called at all)
Roberto Ierusalimschy
1997-12-23 10:50:49 -02:00
03f3f9e707
"zio" now keeps its "name".
Roberto Ierusalimschy
1997-12-22 18:57:18 -02:00
a78eecee48
details (aborts with invalid arguments)
Roberto Ierusalimschy
1997-12-22 18:03:50 -02:00
43461d267f
help message
Roberto Ierusalimschy
1997-12-22 16:05:23 -02:00
fae0b52825
small bugs in error report
Roberto Ierusalimschy
1997-12-22 15:52:20 -02:00
22439a7511
new syntax for constructors (a={n=3;1,2,3}).
Roberto Ierusalimschy
1997-12-22 15:24:11 -02:00
7ecc3ce827
new command line options
Roberto Ierusalimschy
1997-12-19 16:34:23 -02:00
4e91384e14
sorting the includes...
Roberto Ierusalimschy
1997-12-18 17:11:43 -02:00
de79e7fc58
back to "lua_upvalue"... (seems better choice)
Roberto Ierusalimschy
1997-12-18 16:32:39 -02:00
8b5b42563c
"lua_dobuffer" (is not official, but its there...)
Roberto Ierusalimschy
1997-12-17 18:57:20 -02:00
502343b402
new scheme for buffers, centralized in auxlib.
Roberto Ierusalimschy
1997-12-17 18:48:58 -02:00
82d09fbf0d
new structure for closures, without static variables.
Roberto Ierusalimschy
1997-12-15 15:58:49 -02:00
9be85d1648
new year
Roberto Ierusalimschy
1997-12-15 15:47:55 -02:00
45e533599f
optimization: closures without upvalues don't need to be closures
Roberto Ierusalimschy
1997-12-15 14:17:20 -02:00
94144a7821
otimization: closures without upvalues don't need to be closures
Roberto Ierusalimschy
1997-12-15 14:17:20 -02:00
4daae2165d
new API function and built-in "lua_copytagmethods"
Roberto Ierusalimschy
1997-12-11 15:21:11 -02:00
cdd261f332
new option "-q" (quiet), and multi-line commands (ending with '\')
Roberto Ierusalimschy
1997-12-11 15:00:21 -02:00
034f16892e
better treatment of MARKs and DEBUG cases.
Roberto Ierusalimschy
1997-12-11 12:48:46 -02:00
c759520bc8
safer way to put #defines in error messages...
Roberto Ierusalimschy
1997-12-09 14:01:08 -02:00
80b3d28f4a
details (mainly error messages)
Roberto Ierusalimschy
1997-12-09 11:50:08 -02:00
69d97712ec
arguments "var=value" doesn't need quotes for value
Roberto Ierusalimschy
1997-12-03 17:57:54 -02:00
5d89dad9b8
bug log
Roberto Ierusalimschy
1997-12-02 10:46:15 -02:00
525a91fed3
BUG: "lastline" was not reset on function entry, so debug information started only in the 2nd line of a function.
Roberto Ierusalimschy
1997-12-02 10:43:54 -02:00
868d16dee0
comments
Roberto Ierusalimschy
1997-12-02 10:43:44 -02:00
3393fd7f25
first version of "lua_close"
Roberto Ierusalimschy
1997-12-01 18:31:25 -02:00
00c122cc29
other distribution of memory debug information.
Roberto Ierusalimschy
1997-12-01 18:30:44 -02:00
03160920cf
store "functofind" in stack top, so doesn't need this field in global state.
Roberto Ierusalimschy
1997-11-28 14:56:05 -02:00
b42cc6a4d2
no more protected global variables; using upvalues to store tags.
Roberto Ierusalimschy
1997-11-28 10:40:37 -02:00
a6ad644bf2
no more protected global variables
Roberto Ierusalimschy
1997-11-28 10:39:45 -02:00
39fd5bb9b0
details
Roberto Ierusalimschy
1997-11-28 10:39:22 -02:00
5482992dec
other access method for C upvalues (as arguments)
Roberto Ierusalimschy
1997-11-27 16:25:14 -02:00
024528e0c2
global variables starting with '.' are protected in Lua (temporarily at least...)
Roberto Ierusalimschy
1997-11-27 13:59:44 -02:00
ef37c87e93
no more 'globalbag'
Roberto Ierusalimschy
1997-11-27 13:59:25 -02:00
9e029f98b9
details
Roberto Ierusalimschy
1997-11-26 18:44:52 -02:00
e962330df9
"stacklimit" is not necessary.
Roberto Ierusalimschy
1997-11-26 18:28:22 -02:00
b291e50006
extra argument for "assert"
Roberto Ierusalimschy
1997-11-26 17:40:27 -02:00
9ae0c082a3
small details by lint.
Roberto Ierusalimschy
1997-11-26 16:53:45 -02:00
accd7bc253
small modifications (format, small optimizations, etc)
Roberto Ierusalimschy
1997-11-21 17:00:46 -02:00
6153200bc2
make sure there is no mem problems, using %.ns instead of %s for luaV_error.
Roberto Ierusalimschy
1997-11-19 16:16:33 -02:00
2e7595522d
allows '\r' at the end of pragmas, so one can mix Windows and Unix files
Roberto Ierusalimschy
1997-11-19 15:35:47 -02:00
b79ffdc4ce
global state for Lua interpreter
Roberto Ierusalimschy
1997-11-19 15:31:19 -02:00
592a3f289b
first implementation of centralized global state.
Roberto Ierusalimschy
1997-11-19 15:29:23 -02:00
9cdeb275e7
details
Roberto Ierusalimschy
1997-11-10 15:47:01 -02:00
c957b270d2
"call" now handles errors (instead of "dostring")
Roberto Ierusalimschy
1997-11-07 16:19:13 -02:00
92791b9dd6
small details
Roberto Ierusalimschy
1997-11-07 13:09:49 -02:00
45cad43c3f
"lua_open": now lua has an explicit open operation.
Roberto Ierusalimschy
1997-11-04 13:27:53 -02:00
dad5a01fb0
trigonometric mode stored in a Lua global variable.
Roberto Ierusalimschy
1997-11-03 19:11:44 -02:00
66713181c1
no need of "emergency error"...
Roberto Ierusalimschy
1997-11-03 19:00:23 -02:00
7135803cc8
"global" version of a nil object.
Roberto Ierusalimschy
1997-11-03 18:45:23 -02:00
b7567b6673
"read" & "write" may receive a file handler as first argument
Roberto Ierusalimschy
1997-10-30 18:29:09 -02:00
f8c95fa9e8
new "block" syntax (DO ... END)
Roberto Ierusalimschy
1997-10-30 16:47:19 -02:00
9c965d0ffb
more precise error messages for compiler limits.
Roberto Ierusalimschy
1997-10-28 15:26:53 -02:00
6103dca8ee
small bug.
Roberto Ierusalimschy
1997-10-27 14:14:37 -02:00
18cd7adac6
optimization to handle <a.x> (new opcode).
Roberto Ierusalimschy
1997-10-24 16:40:29 -02:00
41223a01ec
definition of "PI" and modes for angles.
Roberto Ierusalimschy
1997-10-24 15:44:22 -02:00
e78cf96c97
first version of Cclosures.
Roberto Ierusalimschy
1997-10-24 15:17:24 -02:00
0cb3843956
"foreach" and "foreachvar" more robust (to survive GCs), and with termination test.
Roberto Ierusalimschy
1997-10-23 14:28:48 -02:00