Roberto Ierusalimschy
|
23f0ff9517
|
lots of janitor work (including comments) + 'arg' table created
before running any script + changes in the parameters and return
of 'collectargs'
|
2014-06-05 17:42:06 -03:00 |
|
Roberto Ierusalimschy
|
c6c41e85b2
|
more uniformity for defining system-dependent features
|
2014-02-26 12:27:56 -03:00 |
|
Roberto Ierusalimschy
|
1721d09ac8
|
still accepts initial '=' for expressions, for compatibility with old
versions (and old habits...)
|
2014-02-05 12:22:55 -02:00 |
|
Roberto Ierusalimschy
|
1a19893d6f
|
new "calculator mode"; no need to add '=' to print expressions
|
2013-12-16 12:27:17 -02:00 |
|
Roberto Ierusalimschy
|
c5fcba1a17
|
detail (changing some names of macros)
|
2013-10-07 11:20:31 -03:00 |
|
Roberto Ierusalimschy
|
ab7086e209
|
pops the string from 'get_prompt' only after using it
|
2012-09-29 17:07:06 -03:00 |
|
Roberto Ierusalimschy
|
054c20cd5b
|
spaces -> tabs in #defines
|
2012-05-23 12:37:09 -03:00 |
|
Roberto Ierusalimschy
|
4cca1a436d
|
details (using lua_setglobal/lua_getglobal instead of explicit
use of the global table)
|
2012-04-20 14:05:17 -03:00 |
|
Roberto Ierusalimschy
|
e2fc2ce8df
|
new way to handle -E option (write a mark in the registry to avoid
reading environment variables)
|
2011-12-12 14:34:03 -02:00 |
|
Roberto Ierusalimschy
|
166dd0261a
|
new option '-E' to avoid environment variables
|
2011-08-17 17:19:52 -03:00 |
|
Roberto Ierusalimschy
|
6a5d89b39f
|
detail (using array instead of several variables to keep track of
enabled command-line options)
|
2011-08-04 15:16:16 -03:00 |
|
Roberto Ierusalimschy
|
beab626061
|
correct length for LUA_COPYRIGHT (without trailing '\0')
|
2011-06-16 11:30:58 -03:00 |
|
Roberto Ierusalimschy
|
ee7d0c2649
|
new macro 'luai_writeline' to print newlines (and flush 'stdout')
|
2011-05-26 13:09:40 -03:00 |
|
Roberto Ierusalimschy
|
ad2531a0ee
|
more complete (and hopefuly more correct) handling of 'sizeof(char)'
|
2011-05-03 13:01:57 -03:00 |
|
Roberto Ierusalimschy
|
682cce3813
|
macro 'mark' renamed 'EOFMARK' ('mark' is too easy to confict, e.g.
in alllua.c)
|
2011-03-14 12:39:42 -03:00 |
|
Roberto Ierusalimschy
|
094a7d0290
|
detail in 'print_usage'
|
2011-02-07 10:27:13 -02:00 |
|
Roberto Ierusalimschy
|
ac3afc7cd4
|
'printf' replaced by 'luai_writestring'
|
2010-12-03 15:20:50 -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
|
a122688091
|
better error message for 'lua -e -i'
|
2010-10-18 14:06:33 -02:00 |
|
Roberto Ierusalimschy
|
73b0a3451d
|
environment variables consulted by Lua may be version-specific
|
2010-07-25 12:03:37 -03:00 |
|
Roberto Ierusalimschy
|
7631c29b2f
|
comand-line option '-l' creates global with given name after
requiring module
|
2010-07-02 14:36:32 -03:00 |
|
Roberto Ierusalimschy
|
afdb19ac82
|
no more 'ccall' nor 'cpcall' functions. (With light C functions they
are obsolete.)
|
2010-04-14 12:14:21 -03:00 |
|
Roberto Ierusalimschy
|
489253d753
|
better definitions for lua_[gs]etglobal + less uses of ENVIRONINDEX
|
2010-03-13 00:57:46 -03:00 |
|
Roberto Ierusalimschy
|
622e448710
|
removed useless test (argv[i] cannot be NULL when i<argc)
|
2010-02-27 18:15:36 -03:00 |
|
Roberto Ierusalimschy
|
4274738e81
|
new macro 'luai_writestringerror'
|
2010-02-18 17:18:41 -02:00 |
|
Roberto Ierusalimschy
|
0d7d559dcc
|
no need to flush either stderr or \n-terminated outputs
|
2010-02-11 15:12:27 -02:00 |
|
Roberto Ierusalimschy
|
a838b3b496
|
better usage messages, showing entire offending argument
|
2010-02-09 09:58:57 -02:00 |
|
Roberto Ierusalimschy
|
4f5f2fe367
|
new function 'luaL_cpcall'
|
2010-01-21 14:49:21 -02:00 |
|
Roberto Ierusalimschy
|
c8ab34ab7a
|
better messages for invalid options
|
2010-01-21 14:31:06 -02:00 |
|
Roberto Ierusalimschy
|
cc1cbd19a0
|
'lua_cpcall' is deprecated + other small changes in 'pmain' (comments
and reordering to check arguments before running any Lua code)
|
2009-12-22 14:47:12 -02:00 |
|
Roberto Ierusalimschy
|
f84b575cfa
|
no more pseudoindex LUA_GLOBALSINDEX; global table now accessible
through registry
|
2009-12-22 13:32:50 -02: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
|
adc6a4865b
|
macro name change: LUA_INIT->LUA_INIT_VAR
|
2009-12-17 11:07:41 -02:00 |
|
Roberto Ierusalimschy
|
de6fc75d63
|
several configuration options that do not change often moved out of
luaconf.h and into more internal files
|
2009-12-17 10:26:09 -02:00 |
|
Roberto Ierusalimschy
|
2e51792596
|
avoid using deprecated macros lua_[gs]etglobal
|
2009-12-11 11:40:44 -02:00 |
|
Roberto Ierusalimschy
|
2b25489b47
|
'notail' -> 'noextrachars' ('notail' may confuse with tail calls)
|
2009-11-24 16:05:12 -02:00 |
|
Roberto Ierusalimschy
|
bc439e21cd
|
avoid an unprotected call to 'lua_tostring' which theoretically may
cause a panicked exit
|
2009-08-10 13:23:19 -03:00 |
|
Roberto Ierusalimschy
|
5bff2aaf47
|
calls with LUA_MULTRET may leave no free slots in the stack
|
2009-07-15 14:35:20 -03:00 |
|
Roberto Ierusalimschy
|
4a818f068a
|
'checkversion' implemented in the auxiliary library
|
2009-06-18 15:59:58 -03:00 |
|
Roberto Ierusalimschy
|
f36e319658
|
'fputs' changed to 'luai_writestring' + use of 'lua_checkversion'
|
2009-02-19 14:15:35 -03:00 |
|
Roberto Ierusalimschy
|
f9dec5fc84
|
do not use compatibility macros in Lua
|
2008-07-11 14:51:01 -03:00 |
|
Roberto Ierusalimschy
|
9e7de9473c
|
message from -v option goes to stdout, as it is not an error message
|
2008-06-26 16:47:51 -03:00 |
|
Roberto Ierusalimschy
|
1527d8f00d
|
GC called after errors now are called after showing error message (to
avoid problems when there are other errors during GC itself)
|
2008-06-26 16:40:12 -03:00 |
|
Roberto Ierusalimschy
|
c676f13e1a
|
stand-alone error-message details
|
2007-09-05 14:17:39 -03:00 |
|
Roberto Ierusalimschy
|
72c2f75648
|
detail (LUA_COPYRIGHT includes release number)
|
2007-08-07 13:53:40 -03:00 |
|
Roberto Ierusalimschy
|
3f78748ef3
|
traceback function moved to auxlib
|
2007-06-22 12:33:54 -03:00 |
|
Roberto Ierusalimschy
|
4eb49163c6
|
error handler in 'lua.c' tries '__tostring' metamethod if error
message is not a string
|
2007-04-26 17:39:38 -03:00 |
|
Roberto Ierusalimschy
|
afa0d0ac0d
|
new constant LUA_OK
|
2006-10-10 14:40:17 -03:00 |
|
Roberto Ierusalimschy
|
d22526ec30
|
'lua_strlen' is for compatibility only
|
2006-09-18 11:03:18 -03:00 |
|
Roberto Ierusalimschy
|
a7c9e45c64
|
avoid trailing white spaces
|
2006-09-11 11:07:24 -03:00 |
|
Roberto Ierusalimschy
|
74832b2a10
|
detail
|
2006-06-23 13:09:15 -03:00 |
|
Roberto Ierusalimschy
|
475b0ecbf1
|
new macro LUA_RELEASE
|
2006-06-02 12:34:00 -03:00 |
|
Roberto Ierusalimschy
|
20f4bbdc3a
|
does not accept garbage after options (e.g., -ixxx)
|
2006-05-24 11:16:39 -03:00 |
|
Roberto Ierusalimschy
|
672bb67ee6
|
environment variable names should be configurable
|
2006-04-10 15:27:23 -03:00 |
|
Roberto Ierusalimschy
|
bfdcbbcd76
|
small optimizations (lua_newtable -> lua_createtable)
|
2005-12-29 14:23:32 -02:00 |
|
Roberto Ierusalimschy
|
30eebb2d1c
|
detail (stop collector while openning libraries)
|
2005-12-29 10:30:16 -02:00 |
|
Roberto Ierusalimschy
|
3592c08a2c
|
avoid printing two copyright messages with '-v -i' options
|
2005-11-28 12:44:48 -02:00 |
|
Roberto Ierusalimschy
|
ff7638b0ed
|
VC warnings
|
2005-10-24 15:38:47 -02:00 |
|
Roberto Ierusalimschy
|
7f376e6ea8
|
do a complete garbage collection in case of errors
|
2005-10-21 11:48:31 -02:00 |
|
Roberto Ierusalimschy
|
86704cffe9
|
detail in usage message
|
2005-10-14 15:34:23 -03:00 |
|
Roberto Ierusalimschy
|
fa41fafa6e
|
reorganization of argument handling
|
2005-10-14 15:15:46 -03:00 |
|
Roberto Ierusalimschy
|
506c89cef8
|
just in case, flush all output
|
2005-09-06 14:19:33 -03:00 |
|
Roberto Ierusalimschy
|
9273fbd131
|
no more 'luaL_get/setfield' (replaced by more direct luaL_findtable)
|
2005-08-26 14:32:05 -03:00 |
|
Roberto Ierusalimschy
|
be666a662b
|
detail
|
2005-08-25 16:55:38 -03:00 |
|
Roberto Ierusalimschy
|
39cdbce23e
|
no more '-w' option + new way to check module existence
|
2005-08-25 12:39:16 -03:00 |
|
Roberto Ierusalimschy
|
f7720bebe3
|
more precise way to check incomplete lines
|
2005-06-28 10:01:50 -03:00 |
|
Roberto Ierusalimschy
|
eca9fa02d2
|
small improvement
|
2005-06-03 17:16:16 -03:00 |
|
Roberto Ierusalimschy
|
67578ec51f
|
several small details
|
2005-05-17 16:49:15 -03:00 |
|
Roberto Ierusalimschy
|
c2bb9abcec
|
better quotes for strings in error messages
|
2005-05-16 18:19:00 -03:00 |
|
Roberto Ierusalimschy
|
04f657c7f8
|
new protocol to open standard libraries
|
2005-04-13 14:24:20 -03:00 |
|
Roberto Ierusalimschy
|
2873d4efff
|
stack could overflow with too many command-line arguments
|
2005-04-11 15:01:35 -03:00 |
|
Roberto Ierusalimschy
|
445eda7ead
|
details
|
2005-03-30 16:50:29 -03:00 |
|
Roberto Ierusalimschy
|
092dc95b06
|
using require' to implement -l'
|
2005-03-29 13:47:48 -03:00 |
|
Roberto Ierusalimschy
|
8af1ca02e0
|
LUA_USERCONFIG is no longer necessary
|
2005-03-23 14:50:49 -03:00 |
|
Roberto Ierusalimschy
|
f1eb79fdf4
|
some line-edit facilities must free the line after its use
|
2005-03-22 13:55:35 -03:00 |
|
Roberto Ierusalimschy
|
6d475731ca
|
cleaner configuration for lua.c
|
2005-03-21 15:12:07 -03:00 |
|
Roberto Ierusalimschy
|
0480ea0886
|
gets `debug.traceback' current when error occurs
|
2005-01-10 15:21:10 -02:00 |
|
Roberto Ierusalimschy
|
e791f025c0
|
no more `_TRACEBACK' variable
|
2005-01-10 14:30:59 -02:00 |
|
Roberto Ierusalimschy
|
9be5844713
|
first full implementation of new package system
|
2004-11-18 17:53:49 -02:00 |
|
Roberto Ierusalimschy
|
7d309480dd
|
new way to handle _PATH (old LUA_PATH)
|
2004-08-30 15:35:14 -03:00 |
|
Roberto Ierusalimschy
|
5dcd908add
|
detail
|
2004-08-26 11:19:55 -03:00 |
|
Roberto Ierusalimschy
|
a535ad6fee
|
several small changes (mainly function names)
|
2004-07-13 16:56:44 -03:00 |
|
Roberto Ierusalimschy
|
80ec81926c
|
`lua.c' also needs the default path, so auxlib should provide it
|
2004-07-01 11:26:28 -03:00 |
|
Roberto Ierusalimschy
|
dba17070ac
|
optional error for accesss to undefined variables/fields
|
2004-06-17 11:06:52 -03:00 |
|
Roberto Ierusalimschy
|
569eefbf73
|
detail
|
2004-06-16 17:22:43 -03:00 |
|
Roberto Ierusalimschy
|
616438fe9a
|
new way to use vararg' parameters (with ...')
|
2004-05-31 15:51:50 -03:00 |
|
Roberto Ierusalimschy
|
b4cd38ba6c
|
new scheme for configuration through `luaconf.h'
|
2004-04-30 17:13:38 -03:00 |
|
Roberto Ierusalimschy
|
275c150b17
|
error()' (and error(nil)') generates errors with no error messages
|
2003-10-23 16:06:22 -02:00 |
|
Roberto Ierusalimschy
|
ee07ad346d
|
`getn' doesn't need this field (values cannot be nil)
|
2003-05-07 13:02:16 -03:00 |
|
Roberto Ierusalimschy
|
f84c5a5fc6
|
avoid conflicts in (re)definition of `isatty'
|
2003-04-03 10:34:42 -03:00 |
|
Roberto Ierusalimschy
|
80bac182db
|
do not mix --help' with --'
|
2003-03-24 09:40:01 -03:00 |
|
Roberto Ierusalimschy
|
0ca225d33a
|
better error message
|
2003-03-19 18:15:18 -03:00 |
|
Roberto Ierusalimschy
|
4734e2de05
|
`loadlib' now an official library
|
2003-03-17 10:01:48 -03:00 |
|
Roberto Ierusalimschy
|
034de1fe73
|
new names for functions that open C libraries
|
2003-03-11 09:24:34 -03:00 |
|
Roberto Ierusalimschy
|
7c3857cded
|
comments
|
2003-03-07 10:21:31 -03:00 |
|
Roberto Ierusalimschy
|
383a6e88f9
|
argv[0] may be NULL
|
2003-01-29 11:23:45 -02:00 |
|
Roberto Ierusalimschy
|
592cf2334e
|
"panic" cannot happen in lua.c, with lua_cpcall +
argv[0] may be empty
|
2003-01-29 08:27:07 -02:00 |
|
Roberto Ierusalimschy
|
9a5bab82ff
|
use the more modern _POSIX_C_SOURCE instead of older _POSIX_SOURCE
|
2003-01-17 13:27:28 -02:00 |
|
Roberto Ierusalimschy
|
27c6b4d422
|
each .c file defines its own name
|
2002-12-04 15:38:31 -02:00 |
|
Roberto Ierusalimschy
|
0bb8eb5151
|
new function `lua_cpcall'
|
2002-12-04 15:29:32 -02:00 |
|