aboutsummaryrefslogtreecommitdiff
path: root/liolib.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Added "emergency collection" to 'io.tmpfile' and 'os.tmpname'Roberto Ierusalimschy2018-07-271-48/+6
| | | | | | | | These operations also can give errors for lack of resources, so they also will try "emergency collections" in case of resource errors. Because there are now two libraries with that kind of handling, 'resourcetryagain' was moved to the auxiliary library to be shared by the libraries.
* File operations try an "emergency collection" when failingRoberto Ierusalimschy2018-07-251-4/+64
| | | | | | | | | If a file operation fails do to lack of resources (too many open files or not enough memory), it does a full garbage collection and tries the operation again. Lack of resources are "too many open files" (process wise and system wise) and "not enough memory". The code is full of '#if's because error codes are not part of the standard ISO C.
* back to one format per argumentRoberto Ierusalimschy2018-03-021-30/+26
|
* using new 'lua_newuserdatauv' instead of 'lua_newuserdata'Roberto Ierusalimschy2018-02-211-2/+2
|
* 'io.read' accepts multiple formats in a single string argumentRoberto Ierusalimschy2017-11-161-27/+31
|
* detail ('signal' -> 'sign' in comments)Roberto Ierusalimschy2017-11-161-3/+3
|
* error when calling close method without arguments (e.g.,Roberto Ierusalimschy2017-02-091-4/+9
| | | | |io.stdin.close()|)
* Using LUAI_UAC* types more consistently on vararg callsRoberto Ierusalimschy2016-12-201-3/+5
|
* detail (macro 'l_checkmode' reimplemented as function)Roberto Ierusalimschy2016-09-011-5/+6
|
* 'io.read("n")' accepts both a dot and the locale point as itsRoberto Ierusalimschy2016-05-021-8/+11
| | | | | radix character + 'MAXRN' -> 'L_MAXLENNUM' + small detail in 'test2'
* easy the way to accept other modifiers for 'mode' in 'io.open'Roberto Ierusalimschy2015-11-231-7/+13
|
* bug: 'io.lines' does not check maximum number of optionsRoberto Ierusalimschy2015-07-151-1/+8
|
* detail (comment)Roberto Ierusalimschy2015-07-071-2/+2
|
* detailRoberto Ierusalimschy2015-06-211-2/+2
|
* more consistent use of locale radix character across LuaRoberto Ierusalimschy2015-04-031-9/+4
|
* detail (use 'lua_pushliteral' to push an empty string)Roberto Ierusalimschy2015-03-061-2/+2
|
* clearer(?) code (also avoids a warning about 'c' being usedRoberto Ierusalimschy2015-01-021-5/+3
| | | | without initialization)
* avoid memory errors while a file is locked (when reading a line)Roberto Ierusalimschy2014-11-211-7/+16
|
* comments (references to "ANSI C" changed to "ISO C", which is theRoberto Ierusalimschy2014-11-021-3/+3
| | | | international name
* added include for 'lprefix.h', for stuff that must be added beforeRoberto Ierusalimschy2014-11-021-12/+4
| | | | any other header file
* LUA_WIN -> LUA_USE_WINDOWSRoberto Ierusalimschy2014-10-311-3/+3
|
* `name' in comments changed to 'name'Roberto Ierusalimschy2014-10-251-2/+2
|
* detail (using 'sizeof' instead of 'strlen' for length of a constantv5.3-betaRoberto Ierusalimschy2014-10-221-2/+3
| | | | string)
* added 'l_' prefix for names that can be redefined externallyRoberto Ierusalimschy2014-10-221-4/+4
|
* 'lua_stringtonum' -> 'lua_stringtonumber'Roberto Ierusalimschy2014-10-171-4/+4
|
* macros 'LUA_QL'/'LUA_QL' deprecatedRoberto Ierusalimschy2014-10-171-3/+3
|
* 'lua_strtonum' -> 'lua_stringtonum'Roberto Ierusalimschy2014-10-151-3/+3
|
* details (comments)Roberto Ierusalimschy2014-10-031-2/+2
|
* detailRoberto Ierusalimschy2014-10-011-2/+2
|
* small change to avoid bug in some versions of the clang compilerRoberto Ierusalimschy2014-09-261-2/+7
|
* added some casts between integral types (to avoid warnings)Roberto Ierusalimschy2014-07-291-2/+2
|
* detail (typos in comments)Roberto Ierusalimschy2014-06-301-9/+9
|
* if numeral overflows the reading buffer, signal it as invalid inputRoberto Ierusalimschy2014-06-021-3/+5
| | | | (resulting in nil)
* no more use of 'scanf' for reading numbersRoberto Ierusalimschy2014-05-211-17/+81
|
* using a more conventional handling of stack space in 'io_readline'Roberto Ierusalimschy2014-05-151-3/+2
|
* new API function 'lua_rotate'Roberto Ierusalimschy2014-05-131-4/+2
|
* old POSIX systems need '<sys/types.h>' for 'off_t'Roberto Ierusalimschy2014-05-111-1/+3
|
* initial '*' in 'io.read' formats is deprecatedRoberto Ierusalimschy2014-04-151-4/+4
|
* with 64-bit integers, file offsets do not need to be floatsRoberto Ierusalimschy2014-03-191-4/+4
|
* changing prefix of configurable macros from "lua_" to "l_"Roberto Ierusalimschy2014-03-131-26/+26
|
* simpler code to read a line from a file (using 'getc' or, if present,Roberto Ierusalimschy2014-03-061-17/+24
| | | | 'getc_unlocked')
* more uniformity for defining system-dependent featuresRoberto Ierusalimschy2014-02-261-20/+21
|
* 'read_all' does not need to grow buffer, as 'luaL_prepbuffsize'Roberto Ierusalimschy2014-02-211-11/+6
| | | | already does that
* commentRoberto Ierusalimschy2014-01-271-2/+2
|
* 'io.write' writes integers directly (and correctly)Roberto Ierusalimschy2013-06-071-3/+5
|
* new read format "*i" for reading integersRoberto Ierusalimschy2013-05-141-1/+17
|
* _FILE_OFFSET_BITS usually also needs _LARGEFILE_SOURCE + easier toRoberto Ierusalimschy2013-04-111-11/+12
| | | | use default definition for 'l_fseek' in ansi systems
* logic for checking mode for 'fopen' moved to macro 'lua_checkmode'v5.2.2Roberto Ierusalimschy2013-03-211-10/+11
|
* detail (error message)Roberto Ierusalimschy2013-03-201-3/+2
|
* macro 'lua_checkmode' + typos in commentsRoberto Ierusalimschy2013-03-161-2/+10
|