aboutsummaryrefslogtreecommitdiff
path: root/lundump.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Bug: 'lua_load' does not preserve the stackRoberto I2026-04-231-2/+2
| | | | | | | 'lua_load' does not preserve the stack through the calls to the reader function, as it should. Immediately after the first call (to detect whether chunk is binary) it adds stuff, and it also adds a new table when starting the compilation of each new function.
* Checks for type 'int' added to binary headerRoberto Ierusalimschy2025-03-101-2/+3
| | | | | The structure 'AbsLineInfo' is hard-dumped into binary chunks, and it comprises two 'int' fields.
* Removed type 'varint_t'Roberto Ierusalimschy2024-03-131-12/+0
| | | | | | 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.)
* Revising code for Varint encoding in dumpsRoberto Ierusalimschy2024-02-121-0/+15
| | | | | | | | - 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.
* Cleaner protocol between 'lua_dump' and writer functionRoberto Ierusalimschy2023-12-141-1/+1
| | | | | 'lua_dump' signals to the writer function the end of a dump, so that is has more freedom when using the stack.
* Added suport for Fixed BuffersRoberto Ierusalimschy2023-09-051-1/+2
| | | | | A fixed buffer keeps a binary chunk "forever", so that the program does not need to copy some of its parts when loading it.
* Merge branch 'master' into nextversionRoberto Ierusalimschy2023-08-231-2/+1
|\
| * DetailsRoberto Ierusalimschy2023-07-031-2/+1
| |
* | Dump/undump reuse stringsRoberto Ierusalimschy2022-12-151-1/+1
|/ | | | | A repeated string in a dump is represented as an index to its first occurence, instead of another copy of the string.
* Details in commentsRoberto Ierusalimschy2020-05-071-1/+1
|
* Back to old encoding of versions in binary filesRoberto Ierusalimschy2020-05-061-1/+6
| | | | | | (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.
* Small changes in the header of binary filesRoberto Ierusalimschy2019-03-191-2/+1
| | | | | | | | | - 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.)
* Removed extra information from RCS keyword stringsRoberto Ierusalimschy2018-08-231-1/+1
| | | | | Version numbers and dates (mostly wrong) from RCS keyword strings removed from all source files; only the file name are kept.
* long strings are created directly in final position when possibleRoberto Ierusalimschy2015-09-081-3/+2
| | | | | (instead of using an auxiliar buffer to first create the string and then allocate the final string and copy result there)
* more precision between closure types ('LClosure' x 'CClosure')Roberto Ierusalimschy2014-06-191-3/+3
|
* macros cast_integer/cast_unsigned replaced by cast_u2s/cast_s2u, thatRoberto Ierusalimschy2014-04-151-2/+2
| | | | should be used only between lua_Integer and lua_Unsigned
* make sure that LUAC_INT is a lua_Integer and that LUAC_NUM isRoberto Ierusalimschy2014-03-111-3/+4
| | | | a lua_Number
* detail (breaking too long lines)Roberto Ierusalimschy2014-03-101-3/+5
|
* more explicit handling of headers for binary chunksRoberto Ierusalimschy2014-02-271-10/+12
|
* no more 'Proto' objects on the stack. Protos are anchored on outerRoberto Ierusalimschy2012-05-081-2/+2
| | | | Protos or on a Closure, which must be created before the Proto.
* changes by lhf (better control of chars x bytes)Roberto Ierusalimschy2011-05-171-14/+6
|
* new versions by lhfRoberto Ierusalimschy2005-11-161-15/+16
|
* several small detailsRoberto Ierusalimschy2005-05-171-2/+2
|
* added LUAI_FUNC to functions not in the APIRoberto Ierusalimschy2005-04-251-5/+7
|
* zio does not keep "source" name (nobody uses it)Roberto Ierusalimschy2003-08-251-2/+2
|
* no more checks for non-default compilation options + luaU_dump hasRoberto Ierusalimschy2003-08-151-2/+2
| | | | new option to strip debug info
* LUA_SIGNATURE is publicRoberto Ierusalimschy2003-05-151-2/+1
|
* last changes by lhfv5.0Roberto Ierusalimschy2003-04-101-4/+4
|
* dump/undump of upvalue namesRoberto Ierusalimschy2003-01-271-4/+4
|
* Writer type must be public (so, in lua.h)Roberto Ierusalimschy2002-10-251-4/+2
|
* `undump' also uses private bufferRoberto Ierusalimschy2002-10-091-2/+2
|
* detailsRoberto Ierusalimschy2002-08-121-2/+2
|
* new versions from lhfRoberto Ierusalimschy2002-06-051-8/+14
|
* core tests whether file is binaryRoberto Ierusalimschy2002-06-031-1/+4
|
* lua_load* replaced by a simple lua_loadRoberto Ierusalimschy2002-06-031-2/+1
|
* new definition for headers of binary filesRoberto Ierusalimschy2001-07-121-3/+2
|
* new versions by lhfRoberto Ierusalimschy2001-07-051-8/+4
|
* new way to handle `profiles'Roberto Ierusalimschy2001-03-261-4/+2
|
* first (big) step to support wide charsRoberto Ierusalimschy2001-02-231-4/+4
|
* last changes by lhf.v4.0Roberto Ierusalimschy2000-11-071-5/+5
|
* new macro LUA_APIRoberto Ierusalimschy2000-10-201-7/+1
|
* changes by lhfRoberto Ierusalimschy2000-09-181-1/+1
|
* new versions by lhfRoberto Ierusalimschy2000-09-041-6/+4
|
* final version (by lhf)Roberto Ierusalimschy2000-04-251-7/+6
|
* some name changesRoberto Ierusalimschy2000-03-101-3/+3
|
* many details (most by lhf).Roberto Ierusalimschy2000-03-031-1/+2
|
* modifications by lhfRoberto Ierusalimschy1999-12-021-9/+13
|
* first implementation of multiple states (reentrant code).Roberto Ierusalimschy1999-11-221-4/+4
|
* "const" !!!Roberto Ierusalimschy1999-08-161-3/+3
|
* new format for numbers in precompiled code (as strings)v3.2Roberto Ierusalimschy1999-07-081-13/+4
|