Roberto Ierusalimschy
ef900f224c
strutcture for file handles exported in 'lauxlib.h'
2011-11-11 17:59:17 -02:00
Roberto Ierusalimschy
ea382b0be1
small bug: error message in 'io.lines' is not the error number
2011-11-09 12:10:43 -02:00
Roberto Ierusalimschy
5ea8f108e1
using 'long' versions of 'fseek'/'ftell' when available
2011-09-13 18:09:04 -03:00
Roberto Ierusalimschy
ae14adc272
better error message when trying to open files
2011-08-02 15:00:01 -03:00
Roberto Ierusalimschy
ff98f17d27
detail: factoring in common code for opening files and checking for
...
errors
2011-07-28 15:41:15 -03:00
Roberto Ierusalimschy
594220c624
use standard "underscore + uppercases" for reserved keys in the registry
2011-06-27 16:42:31 -03:00
Roberto Ierusalimschy
801f43f09a
change in the representation of file handles
2011-06-21 10:43:48 -03:00
Roberto Ierusalimschy
d806710ab5
returns for file-related functions and process-related functions
...
unified in 'auxlib'
2011-03-03 13:34:46 -03:00
Roberto Ierusalimschy
03b769053a
correct interpretation of return value from pclose
2011-02-21 16:12:54 -03:00
Roberto Ierusalimschy
7b968bb514
p-close returns "correct" status plus type of termination
2011-02-10 13:35:50 -02:00
Roberto Ierusalimschy
c4ea0c3b29
detail (cleaning trailing spaces)
2011-01-26 14:30:02 -02:00
Roberto Ierusalimschy
c97aa9485c
new function 'luaL_setmetatable'
2010-11-10 16:05:36 -02:00
Roberto Ierusalimschy
fa1f724378
when reading blocks with given size, try to read whole block
...
at once
2010-11-09 14:57:49 -02:00
Roberto Ierusalimschy
700b003fb5
when reading large files, double buffer size at each iteration
2010-11-08 15:27:22 -02:00
Roberto Ierusalimschy
4590a89b32
corrected warnings from different compilers (mostly casts and small
...
details)
2010-10-25 17:01:37 -02:00
Roberto Ierusalimschy
d447945685
'module'/'luaL_register' and associates are deprecated
2010-07-28 12:51:59 -03:00
Roberto Ierusalimschy
8b7cf8c62d
'lua_[gs]etenv' -> 'lua_[gs]etuservalue'
2010-07-25 12:18:19 -03:00
Roberto Ierusalimschy
7192afafee
new module policy: C modules do not create globals and do not register
...
themselves with 'require' (let 'require' do its work); new auxiliary
functions luaL_newlib/luaL_newlibtable/luaL_setfuncs/luaL_requiref.
Old luaL_register will be deprecated.
2010-07-02 08:38:13 -03:00
Roberto Ierusalimschy
064e406f67
no more fenvs!
2010-03-26 17:58:11 -03:00
Roberto Ierusalimschy
1514e49d43
avoid using function environments in C libraries (as it probably will
...
be deprecated)
2010-03-17 18:37:37 -03:00
Roberto Ierusalimschy
ae0a5e2142
new option '*L' for io.read + options for io.lines
2010-03-03 15:48:57 -03:00
Roberto Ierusalimschy
c3a6f3fa1c
'lua_objlen' replaced by 'lua_rawlen', 'lua_len', and 'luaL_len'
2009-12-17 14:20:01 -02:00
Roberto Ierusalimschy
b3b8dfaaea
yet more options moved from luaconf.h into internal files
2009-12-17 11:08:51 -02:00
Roberto Ierusalimschy
a6f465f558
new mark LUAMOD_API for all luaopen_* functions
2009-11-24 10:05:44 -02:00
Roberto Ierusalimschy
d9fbbe1f23
"file:write" returns "file" in case of success
2009-09-01 16:10:48 -03:00
Roberto Ierusalimschy
5b6be84106
ensures that argument 'mode' to 'io.open' matches "[rwa]%+?b?", to
...
avoid passing invalid modes to 'fopen'.
2009-08-28 10:51:57 -03:00
Roberto Ierusalimschy
e39e758a73
closing a "popen" file returns the process exit status
2009-02-20 10:50:27 -03:00
Roberto Ierusalimschy
f86f4116c8
micro-optimization: avoid one API call in 'read_chars'
2008-02-12 15:05:36 -02:00
Roberto Ierusalimschy
7f69f0efb0
remove of useless test in 'read_chars' (if n == 0 then the resulting
...
string cannot be empty).
2008-02-12 14:51:03 -02:00
Roberto Ierusalimschy
dae850e0ee
details
2007-12-08 09:54:32 -02:00
Roberto Ierusalimschy
79cb336d74
does not allow standard files to be closed
2007-04-19 17:22:32 -03:00
Roberto Ierusalimschy
d22526ec30
'lua_strlen' is for compatibility only
2006-09-18 11:03:18 -03:00
Roberto Ierusalimschy
ee41bc03ab
details
2006-06-22 13:12:59 -03:00
Roberto Ierusalimschy
55e323190e
files should not be operated after fclose, even when fclose fails
2006-05-08 17:14:16 -03:00
Roberto Ierusalimschy
64205e91a3
empty string may cause out-of-bound access
2006-01-28 10:59:13 -02:00
Roberto Ierusalimschy
baffc37f5c
detail
2006-01-18 09:49:12 -02:00
Roberto Ierusalimschy
bfdcbbcd76
small optimizations (lua_newtable -> lua_createtable)
2005-12-29 14:23:32 -02:00
Roberto Ierusalimschy
ed7039024d
avoid some warnings
2005-10-19 11:05:11 -02:00
Roberto Ierusalimschy
ebf646efb5
detail
2005-10-14 13:24:11 -03:00
Roberto Ierusalimschy
3390f9a35a
detail
2005-08-26 14:36:32 -03:00
Roberto Ierusalimschy
2f2b4a42a9
luaL_checkudata raises an error if value is not correct
...
(like other luaL_check functions)
2005-08-17 16:05:04 -03:00
Roberto Ierusalimschy
5e8a9e324c
luaL_openlib -> luaL_register, luaL_putchar -> luaL_addchar
2005-08-15 11:12:32 -03:00
Roberto Ierusalimschy
80ac5e83fd
details (alphabetical order for list of functions)
2005-07-12 11:32:08 -03:00
Roberto Ierusalimschy
3ad03b331d
optional size for 'setvbuf'
2005-06-06 15:42:21 -03:00
Roberto Ierusalimschy
86add535d8
'popen' is back
2005-06-06 10:30:52 -03:00
Roberto Ierusalimschy
e8a7ecb982
luaL_findstring -> luaL_checkoption
2005-05-25 10:21:26 -03:00
Roberto Ierusalimschy
c2bb9abcec
better quotes for strings in error messages
2005-05-16 18:19:00 -03:00
Roberto Ierusalimschy
086d6b09ce
avoid name colision with `close' function
2005-03-18 15:01:14 -03:00
Roberto Ierusalimschy
7d45a5f48f
C functions and userdata also have environments
2005-02-18 10:40:02 -02:00
Roberto Ierusalimschy
2d8b099274
better checking for read errors (with `ferror´)
2004-08-13 16:52:13 -03:00