Roberto Ierusalimschy
|
8c1fb91802
|
macro 'incr_top' replaced by function 'luaD_inctop'. (It is not used
in critical time pathes, can save a few bytes without the macro)
|
9 years ago |
Roberto Ierusalimschy
|
ee5edb6b68
|
macros 'getaddrstr' and 'getstr' unified (they do the same thing)
|
9 years ago |
Roberto Ierusalimschy
|
41964648ee
|
long strings are created directly in final position when possible
(instead of using an auxiliar buffer to first create the string
and then allocate the final string and copy result there)
|
9 years ago |
Roberto Ierusalimschy
|
28fdbcf393
|
added include for 'lprefix.h', for stuff that must be added before
any other header file
|
10 years ago |
Roberto Ierusalimschy
|
89b56e7d84
|
more precision between closure types ('LClosure' x 'CClosure')
|
11 years ago |
Roberto Ierusalimschy
|
7021cc9bc8
|
allows different 'source' for each prototype, but inherits it from
parent when they are equal (only possible case for chunks created
by the parser)
|
11 years ago |
Roberto Ierusalimschy
|
94266dfdbd
|
source for all prototypes must be equal in a chunk; no need to store
each one separated
|
11 years ago |
Roberto Ierusalimschy
|
ffa43df3cd
|
'setnvalue' -> 'setfltvalue' (for consitency with 'fltvalue')
|
11 years ago |
Roberto Ierusalimschy
|
607be77ec8
|
some details to avoid warnings
|
11 years ago |
Roberto Ierusalimschy
|
420cc62fac
|
missplelling in comments/function names (endianess -> endianness)
|
11 years ago |
Roberto Ierusalimschy
|
80fe8504f5
|
make all dumps/loads go trhough Load/DumpVector (so it is easier
to adapt the code to correct endianess, if needed)
|
11 years ago |
Roberto Ierusalimschy
|
e976384213
|
keep chunk's headers compatible at least up to LUAC_VERSION (to be
able to detect correctly version mismatches)
|
11 years ago |
Roberto Ierusalimschy
|
901da539e5
|
no need to avoid negative ints in 'LoadInt'
|
11 years ago |
Roberto Ierusalimschy
|
197e249433
|
"indent -kr -i2 -br -brf -nut" plus a few manual formating
|
11 years ago |
Roberto Ierusalimschy
|
f69e0ade19
|
no need to store a full 'size_t' fo the size of (frequent) small strings
|
11 years ago |
Roberto Ierusalimschy
|
99a1c06ea3
|
more regularity with vectors + sizeof computed by the macros themselves
|
11 years ago |
Roberto Ierusalimschy
|
93e28031de
|
all chars used in binary dumps are unsigned ('lu_byte')
|
11 years ago |
Roberto Ierusalimschy
|
de84b3fecb
|
store number of upvalues of main function in front of the dump,
so that undump can create initial closure before reading its prototype
|
11 years ago |
Roberto Ierusalimschy
|
054179c2ff
|
more explicit handling of headers for binary chunks
|
11 years ago |
Roberto Ierusalimschy
|
733c58595b
|
no more local collection
|
11 years ago |
Roberto Ierusalimschy
|
439d74e29f
|
added 'local' bit (true => object is only refered by local variables)
|
11 years ago |
Roberto Ierusalimschy
|
eee51492e2
|
dumping and undumping integers
|
12 years ago |
Roberto Ierusalimschy
|
3cadc37f47
|
no more 'Proto' objects on the stack. Protos are anchored on outer
Protos or on a Closure, which must be created before the Proto.
|
13 years ago |
Roberto Ierusalimschy
|
99bd1a000f
|
error function can be 'l_noret'
|
13 years ago |
Roberto Ierusalimschy
|
f88806a1fb
|
"default: lua_assert(0)" in switches helps debugging + uses
non-variant types in binary files
|
13 years ago |
Roberto Ierusalimschy
|
f0d143f30f
|
avoid a few warnings (casts)
|
13 years ago |
Roberto Ierusalimschy
|
6e899850b9
|
details
|
13 years ago |
Roberto Ierusalimschy
|
6c8a32217a
|
changes by lhf (better control of chars x bytes)
|
14 years ago |
Roberto Ierusalimschy
|
7482e8f914
|
no need of lookahead in Zio
|
14 years ago |
Roberto Ierusalimschy
|
e7a9c45a48
|
trying to avoid assumption that sizeof(char)==1
|
14 years ago |
Roberto Ierusalimschy
|
1475cb59bf
|
version from lhf
|
14 years ago |
Roberto Ierusalimschy
|
25c557ec63
|
first version of _ENV; no more global variables
|
15 years ago |
Roberto Ierusalimschy
|
0ac3d07ea6
|
first implementation of lexical environments
|
15 years ago |
Roberto Ierusalimschy
|
5938212748
|
information about upvalues (where they come from) kept in Proto structure,
instead of sequence of pseudo-opcodes after OP_CLOSURE
|
15 years ago |
Roberto Ierusalimschy
|
d7bc346d7a
|
no more code checking
|
16 years ago |
Roberto Ierusalimschy
|
facb0519a0
|
two bugs: invalid boolean values in constant table + too deep recursion
when reading nested functions
|
17 years ago |
Roberto Ierusalimschy
|
a7c9e45c64
|
avoid trailing white spaces
|
18 years ago |
Roberto Ierusalimschy
|
69ea087dff
|
small change to strip file names when stripping debug information
|
19 years ago |
Roberto Ierusalimschy
|
2753134a38
|
new versions by lhf
|
19 years ago |
Roberto Ierusalimschy
|
90de38bf1f
|
warnings in VS .Net
|
20 years ago |
Roberto Ierusalimschy
|
1ab2b93462
|
debug information for last line of a function definition
|
20 years ago |
Roberto Ierusalimschy
|
5d834bdf57
|
function constants may include boolean values
|
20 years ago |
Roberto Ierusalimschy
|
b4cd38ba6c
|
new scheme for configuration through `luaconf.h'
|
21 years ago |
Roberto Ierusalimschy
|
47fc57a252
|
`TObject' renamed to `TValue' + other name changes and better assertions
for incremental garbage collection
|
21 years ago |
Roberto Ierusalimschy
|
8332d5c8a5
|
parser fully reentrant(!)
|
22 years ago |
Roberto Ierusalimschy
|
9fcc485176
|
zio does not keep "source" name (nobody uses it)
|
22 years ago |
Roberto Ierusalimschy
|
433cb1d13a
|
no more checks for non-default compilation options + luaU_dump has
new option to strip debug info
|
22 years ago |
Roberto Ierusalimschy
|
762c737037
|
last changes by lhf
|
22 years ago |
Roberto Ierusalimschy
|
7a40cdbda0
|
different variables for number of upvalues and size of upvalue array
(makes code clearer)
|
22 years ago |
Roberto Ierusalimschy
|
0175f8d5d1
|
dump/undump of upvalue names
|
22 years ago |