306 Commits (04e19712a5d48b84869f9942836ff8314fb0be8e)

Author SHA1 Message Date
Roberto Ierusalimschy 5a5a834975 new API function 'lua_rotate' 11 years ago
Roberto Ierusalimschy 626124d2d8 old POSIX systems need '<sys/types.h>' for 'off_t' 11 years ago
Roberto Ierusalimschy 2f02d264e9 initial '*' in 'io.read' formats is deprecated 11 years ago
Roberto Ierusalimschy 16f8e44924 with 64-bit integers, file offsets do not need to be floats 11 years ago
Roberto Ierusalimschy a39489194e changing prefix of configurable macros from "lua_" to "l_" 11 years ago
Roberto Ierusalimschy c5bb3643ab simpler code to read a line from a file (using 'getc' or, if present, 11 years ago
Roberto Ierusalimschy c6c41e85b2 more uniformity for defining system-dependent features 11 years ago
Roberto Ierusalimschy 5715de344f 'read_all' does not need to grow buffer, as 'luaL_prepbuffsize' 11 years ago
Roberto Ierusalimschy 67c5de9283 comment 11 years ago
Roberto Ierusalimschy 48adb6984c 'io.write' writes integers directly (and correctly) 12 years ago
Roberto Ierusalimschy 27f09415e3 new read format "*i" for reading integers 12 years ago
Roberto Ierusalimschy 49c1607157 _FILE_OFFSET_BITS usually also needs _LARGEFILE_SOURCE + easier to 12 years ago
Roberto Ierusalimschy c8e96d6e91 logic for checking mode for 'fopen' moved to macro 'lua_checkmode' 12 years ago
Roberto Ierusalimschy 3f6f78ea0b detail (error message) 12 years ago
Roberto Ierusalimschy 76492b4bb2 macro 'lua_checkmode' + typos in comments 12 years ago
Roberto Ierusalimschy b0cbe77816 '_fseeki64' and family not available in all Windows platforms 13 years ago
Roberto Ierusalimschy eb70f58279 'luaIO_Stream' -> 'luaL_Stream' 13 years ago
Roberto Ierusalimschy ef900f224c strutcture for file handles exported in 'lauxlib.h' 13 years ago
Roberto Ierusalimschy ea382b0be1 small bug: error message in 'io.lines' is not the error number 13 years ago
Roberto Ierusalimschy 5ea8f108e1 using 'long' versions of 'fseek'/'ftell' when available 13 years ago
Roberto Ierusalimschy ae14adc272 better error message when trying to open files 13 years ago
Roberto Ierusalimschy ff98f17d27 detail: factoring in common code for opening files and checking for 13 years ago
Roberto Ierusalimschy 594220c624 use standard "underscore + uppercases" for reserved keys in the registry 14 years ago
Roberto Ierusalimschy 801f43f09a change in the representation of file handles 14 years ago
Roberto Ierusalimschy d806710ab5 returns for file-related functions and process-related functions 14 years ago
Roberto Ierusalimschy 03b769053a correct interpretation of return value from pclose 14 years ago
Roberto Ierusalimschy 7b968bb514 p-close returns "correct" status plus type of termination 14 years ago
Roberto Ierusalimschy c4ea0c3b29 detail (cleaning trailing spaces) 14 years ago
Roberto Ierusalimschy c97aa9485c new function 'luaL_setmetatable' 14 years ago
Roberto Ierusalimschy fa1f724378 when reading blocks with given size, try to read whole block 14 years ago
Roberto Ierusalimschy 700b003fb5 when reading large files, double buffer size at each iteration 14 years ago
Roberto Ierusalimschy 4590a89b32 corrected warnings from different compilers (mostly casts and small 14 years ago
Roberto Ierusalimschy d447945685 'module'/'luaL_register' and associates are deprecated 14 years ago
Roberto Ierusalimschy 8b7cf8c62d 'lua_[gs]etenv' -> 'lua_[gs]etuservalue' 14 years ago
Roberto Ierusalimschy 7192afafee new module policy: C modules do not create globals and do not register 15 years ago
Roberto Ierusalimschy 064e406f67 no more fenvs! 15 years ago
Roberto Ierusalimschy 1514e49d43 avoid using function environments in C libraries (as it probably will 15 years ago
Roberto Ierusalimschy ae0a5e2142 new option '*L' for io.read + options for io.lines 15 years ago
Roberto Ierusalimschy c3a6f3fa1c 'lua_objlen' replaced by 'lua_rawlen', 'lua_len', and 'luaL_len' 15 years ago
Roberto Ierusalimschy b3b8dfaaea yet more options moved from luaconf.h into internal files 15 years ago
Roberto Ierusalimschy a6f465f558 new mark LUAMOD_API for all luaopen_* functions 15 years ago
Roberto Ierusalimschy d9fbbe1f23 "file:write" returns "file" in case of success 15 years ago
Roberto Ierusalimschy 5b6be84106 ensures that argument 'mode' to 'io.open' matches "[rwa]%+?b?", to 15 years ago
Roberto Ierusalimschy e39e758a73 closing a "popen" file returns the process exit status 16 years ago
Roberto Ierusalimschy f86f4116c8 micro-optimization: avoid one API call in 'read_chars' 17 years ago
Roberto Ierusalimschy 7f69f0efb0 remove of useless test in 'read_chars' (if n == 0 then the resulting 17 years ago
Roberto Ierusalimschy dae850e0ee details 17 years ago
Roberto Ierusalimschy 79cb336d74 does not allow standard files to be closed 18 years ago
Roberto Ierusalimschy d22526ec30 'lua_strlen' is for compatibility only 18 years ago
Roberto Ierusalimschy ee41bc03ab details 19 years ago