summaryrefslogtreecommitdiff
path: root/lundump.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fixed bug of long strings in binary chunksv5.3.6v5.3Roberto Ierusalimschy2020-08-181-3/+7
| | | | | | | When "undumping" a long string, the function 'LoadVector' can call the reader function, which can run the garbage collector, which can collect the string being read. So, the string must be anchored during the call to 'LoadVector'. (This commit also fixes the identation in 'l_alloc'.)
* Fixed missing GC barriers in compiler and undumpRoberto Ierusalimschy2020-06-181-8/+12
| | | | | While building a new prototype, the GC needs barriers for every object (strings and nested prototypes) that is attached to the new prototype.
* Lua 5.3.5 ported to gitv5.3.5Roberto Ierusalimschy2018-12-171-1/+1
| | | | | | | This is the first commit for the branch Lua 5.3. All source files were copied from the official distribution of 5.3.5 in the Lua site. The test files are the same of 5.3.4. The manual came from the previous RCS repository, revision 1.167.1.2.
* macro 'incr_top' replaced by function 'luaD_inctop'. (It is not usedRoberto Ierusalimschy2015-11-021-2/+2
| | | | in critical time pathes, can save a few bytes without the macro)
* macros 'getaddrstr' and 'getstr' unified (they do the same thing)Roberto Ierusalimschy2015-09-171-2/+2
|
* long strings are created directly in final position when possibleRoberto Ierusalimschy2015-09-081-9/+11
| | | | | (instead of using an auxiliar buffer to first create the string and then allocate the final string and copy result there)
* added include for 'lprefix.h', for stuff that must be added beforeRoberto Ierusalimschy2014-11-021-3/+6
| | | | any other header file
* more precision between closure types ('LClosure' x 'CClosure')Roberto Ierusalimschy2014-06-191-8/+8
|
* allows different 'source' for each prototype, but inherits it fromRoberto Ierusalimschy2014-06-181-11/+17
| | | | | parent when they are equal (only possible case for chunks created by the parser)
* source for all prototypes must be equal in a chunk; no need to storeRoberto Ierusalimschy2014-06-181-2/+4
| | | | each one separated
* 'setnvalue' -> 'setfltvalue' (for consitency with 'fltvalue')Roberto Ierusalimschy2014-04-291-2/+2
|
* some details to avoid warningsRoberto Ierusalimschy2014-04-011-2/+2
|
* missplelling in comments/function names (endianess -> endianness)Roberto Ierusalimschy2014-03-271-3/+3
|
* make all dumps/loads go trhough Load/DumpVector (so it is easierRoberto Ierusalimschy2014-03-111-4/+10
| | | | to adapt the code to correct endianess, if needed)
* keep chunk's headers compatible at least up to LUAC_VERSION (to beRoberto Ierusalimschy2014-03-111-7/+8
| | | | able to detect correctly version mismatches)
* no need to avoid negative ints in 'LoadInt'Roberto Ierusalimschy2014-03-101-3/+1
|
* "indent -kr -i2 -br -brf -nut" plus a few manual formatingRoberto Ierusalimschy2014-03-101-207/+222
|
* no need to store a full 'size_t' fo the size of (frequent) small stringsRoberto Ierusalimschy2014-03-011-5/+5
|
* more regularity with vectors + sizeof computed by the macros themselvesRoberto Ierusalimschy2014-02-281-8/+7
|
* all chars used in binary dumps are unsigned ('lu_byte')Roberto Ierusalimschy2014-02-281-6/+5
|
* store number of upvalues of main function in front of the dump,Roberto Ierusalimschy2014-02-271-9/+3
| | | | so that undump can create initial closure before reading its prototype
* more explicit handling of headers for binary chunksRoberto Ierusalimschy2014-02-271-45/+29
|
* no more local collectionRoberto Ierusalimschy2014-02-131-2/+1
|
* added 'local' bit (true => object is only refered by local variables)Roberto Ierusalimschy2013-08-161-2/+5
|
* dumping and undumping integersRoberto Ierusalimschy2013-04-261-3/+13
|
* no more 'Proto' objects on the stack. Protos are anchored on outerRoberto Ierusalimschy2012-05-081-11/+24
| | | | Protos or on a Closure, which must be created before the Proto.
* error function can be 'l_noret'Roberto Ierusalimschy2012-03-191-2/+2
|
* "default: lua_assert(0)" in switches helps debugging + usesRoberto Ierusalimschy2012-01-231-1/+2
| | | | non-variant types in binary files
* avoid a few warnings (casts)Roberto Ierusalimschy2011-12-071-3/+3
|
* detailsRoberto Ierusalimschy2011-11-241-2/+2
|
* changes by lhf (better control of chars x bytes)Roberto Ierusalimschy2011-05-171-21/+41
|
* no need of lookahead in ZioRoberto Ierusalimschy2011-02-231-3/+3
|
* trying to avoid assumption that sizeof(char)==1Roberto Ierusalimschy2011-02-071-3/+3
|
* version from lhfRoberto Ierusalimschy2010-10-251-26/+14
|
* first version of _ENV; no more global variablesRoberto Ierusalimschy2010-03-121-2/+1
|
* first implementation of lexical environmentsRoberto Ierusalimschy2009-09-301-1/+2
|
* information about upvalues (where they come from) kept in Proto structure,Roberto Ierusalimschy2009-09-281-6/+17
| | | | instead of sequence of pseudo-opcodes after OP_CLOSURE
* no more code checkingRoberto Ierusalimschy2009-04-301-2/+1
|
* two bugs: invalid boolean values in constant table + too deep recursionRoberto Ierusalimschy2008-04-071-3/+6
| | | | when reading nested functions
* avoid trailing white spacesRoberto Ierusalimschy2006-09-111-3/+3
|
* small change to strip file names when stripping debug informationv5.1Roberto Ierusalimschy2006-02-171-2/+2
|
* new versions by lhfRoberto Ierusalimschy2005-11-161-180/+107
|
* warnings in VS .NetRoberto Ierusalimschy2005-05-311-5/+5
|
* debug information for last line of a function definitionRoberto Ierusalimschy2005-05-051-2/+3
|
* function constants may include boolean valuesRoberto Ierusalimschy2004-10-041-1/+4
|
* new scheme for configuration through `luaconf.h'Roberto Ierusalimschy2004-04-301-1/+2
|
* `TObject' renamed to `TValue' + other name changes and better assertionsRoberto Ierusalimschy2003-12-101-11/+13
| | | | for incremental garbage collection
* parser fully reentrant(!)Roberto Ierusalimschy2003-08-271-1/+9
|
* zio does not keep "source" name (nobody uses it)Roberto Ierusalimschy2003-08-251-3/+2
|
* no more checks for non-default compilation options + luaU_dump hasRoberto Ierusalimschy2003-08-151-5/+1
| | | | new option to strip debug info