Roberto Ierusalimschy
cc2b66c856
Removed type 'varint_t'
size_t should be big enough to count the number of strings in a dump.
(And, by definition, it is big enough to count the length of each
string.)
8 months ago
Roberto Ierusalimschy
c8121ce34b
Revising code for Varint encoding in dumps
- Usign lua_Unsigned to count strings.
- Varint uses a type large enough both for size_t and lua_Unsigned.
- Most-Significant Bit 0 means last byte, to conform to common usage.
- (unrelated) Change in macro 'getaddr' so that multiplication is
by constants.
9 months ago
Roberto Ierusalimschy
4eda1acafa
Cleaner protocol between 'lua_dump' and writer function
'lua_dump' signals to the writer function the end of a dump, so that
is has more freedom when using the stack.
11 months ago
Roberto Ierusalimschy
14e416355f
Added suport for Fixed Buffers
A fixed buffer keeps a binary chunk "forever", so that the program
does not need to copy some of its parts when loading it.
1 year ago
Roberto Ierusalimschy
cbae016202
Details
1 year ago
Roberto Ierusalimschy
d70a0c91ad
Dump/undump reuse strings
A repeated string in a dump is represented as an index to its first
occurence, instead of another copy of the string.
2 years ago
Roberto Ierusalimschy
0be57b9b6d
Details in comments
5 years ago
Roberto Ierusalimschy
61a4e64a66
Back to old encoding of versions in binary files
(Undoing part of commit f53eabeed8.) It is better to keep this encoding
stable, so that all Lua versions can read at least the version of a
binary file.
5 years ago
Roberto Ierusalimschy
f53eabeed8
Small changes in the header of binary files
- LUAC_VERSION is equal to LUA_VERSION_NUM, and it is stored
as an int.
- 'sizeof(int)' and 'sizeof(size_t)' removed from the header, as
the binary format does not depend on these sizes. (It uses its
own serialization for unsigned integer values.)
6 years ago
Roberto Ierusalimschy
f99509581e
Removed extra information from RCS keyword strings
Version numbers and dates (mostly wrong) from RCS keyword strings
removed from all source files; only the file name are kept.
6 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
89b56e7d84
more precision between closure types ('LClosure' x 'CClosure')
11 years ago
Roberto Ierusalimschy
8f961da3db
macros cast_integer/cast_unsigned replaced by cast_u2s/cast_s2u, that
should be used only between lua_Integer and lua_Unsigned
11 years ago
Roberto Ierusalimschy
68f4ccdd00
make sure that LUAC_INT is a lua_Integer and that LUAC_NUM is
a lua_Number
11 years ago
Roberto Ierusalimschy
342a936599
detail (breaking too long lines)
11 years ago
Roberto Ierusalimschy
054179c2ff
more explicit handling of headers for binary chunks
11 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
6c8a32217a
changes by lhf (better control of chars x bytes)
14 years ago
Roberto Ierusalimschy
2753134a38
new versions by lhf
19 years ago
Roberto Ierusalimschy
67578ec51f
several small details
20 years ago
Roberto Ierusalimschy
8718fda9b2
added LUAI_FUNC to functions not in the API
20 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
859c7f7ce0
LUA_SIGNATURE is public
22 years ago
Roberto Ierusalimschy
762c737037
last changes by lhf
22 years ago
Roberto Ierusalimschy
0175f8d5d1
dump/undump of upvalue names
22 years ago
Roberto Ierusalimschy
1713b64065
Writer type must be public (so, in lua.h)
22 years ago
Roberto Ierusalimschy
46b063ef59
`undump' also uses private buffer
22 years ago
Roberto Ierusalimschy
b6791f5fa5
details
23 years ago
Roberto Ierusalimschy
711b936849
new versions from lhf
23 years ago
Roberto Ierusalimschy
0079e0f57c
core tests whether file is binary
23 years ago
Roberto Ierusalimschy
35a22ed1ab
lua_load* replaced by a simple lua_load
23 years ago
Roberto Ierusalimschy
9f25df02d5
new definition for headers of binary files
24 years ago
Roberto Ierusalimschy
dc4e0ecdaf
new versions by lhf
24 years ago
Roberto Ierusalimschy
dd3a63c205
new way to handle `profiles'
24 years ago
Roberto Ierusalimschy
39b7978329
first (big) step to support wide chars
24 years ago
Roberto Ierusalimschy
523c5d8e1c
last changes by lhf.
24 years ago
Roberto Ierusalimschy
64eecc0b82
new macro LUA_API
24 years ago
Roberto Ierusalimschy
aab4fde468
changes by lhf
24 years ago
Roberto Ierusalimschy
eebc9729e4
new versions by lhf
25 years ago
Roberto Ierusalimschy
0e8855e171
final version (by lhf)
25 years ago
Roberto Ierusalimschy
73aa465a8e
some name changes
25 years ago
Roberto Ierusalimschy
3c9d999424
many details (most by lhf).
25 years ago
Roberto Ierusalimschy
72afb6debb
modifications by lhf
25 years ago
Roberto Ierusalimschy
29ede6aa13
first implementation of multiple states (reentrant code).
25 years ago
Roberto Ierusalimschy
c787dccd9b
"const" !!!
26 years ago
Roberto Ierusalimschy
16024861bd
new format for numbers in precompiled code (as strings)
26 years ago
Roberto Ierusalimschy
b4ad600b93
numbers are stored in ascii format for better portability and simplicity
26 years ago
Roberto Ierusalimschy
0133610315
format for function prototypes.
26 years ago
Roberto Ierusalimschy
7c9aee64c2
new version by lhf.
26 years ago