Roberto Ierusalimschy
|
b9dcf9974d
|
detail (typos in comments)
|
11 years ago |
Roberto Ierusalimschy
|
10200585a7
|
var-arguments to the script come from 'arg' table (not from original
'argv' array)
|
11 years ago |
Roberto Ierusalimschy
|
23f0ff9517
|
lots of janitor work (including comments) + 'arg' table created
before running any script + changes in the parameters and return
of 'collectargs'
|
11 years ago |
Roberto Ierusalimschy
|
c6c41e85b2
|
more uniformity for defining system-dependent features
|
11 years ago |
Roberto Ierusalimschy
|
1721d09ac8
|
still accepts initial '=' for expressions, for compatibility with old
versions (and old habits...)
|
11 years ago |
Roberto Ierusalimschy
|
1a19893d6f
|
new "calculator mode"; no need to add '=' to print expressions
|
11 years ago |
Roberto Ierusalimschy
|
c5fcba1a17
|
detail (changing some names of macros)
|
11 years ago |
Roberto Ierusalimschy
|
ab7086e209
|
pops the string from 'get_prompt' only after using it
|
12 years ago |
Roberto Ierusalimschy
|
054c20cd5b
|
spaces -> tabs in #defines
|
13 years ago |
Roberto Ierusalimschy
|
4cca1a436d
|
details (using lua_setglobal/lua_getglobal instead of explicit
use of the global table)
|
13 years ago |
Roberto Ierusalimschy
|
e2fc2ce8df
|
new way to handle -E option (write a mark in the registry to avoid
reading environment variables)
|
13 years ago |
Roberto Ierusalimschy
|
166dd0261a
|
new option '-E' to avoid environment variables
|
13 years ago |
Roberto Ierusalimschy
|
6a5d89b39f
|
detail (using array instead of several variables to keep track of
enabled command-line options)
|
13 years ago |
Roberto Ierusalimschy
|
beab626061
|
correct length for LUA_COPYRIGHT (without trailing '\0')
|
14 years ago |
Roberto Ierusalimschy
|
ee7d0c2649
|
new macro 'luai_writeline' to print newlines (and flush 'stdout')
|
14 years ago |
Roberto Ierusalimschy
|
ad2531a0ee
|
more complete (and hopefuly more correct) handling of 'sizeof(char)'
|
14 years ago |
Roberto Ierusalimschy
|
682cce3813
|
macro 'mark' renamed 'EOFMARK' ('mark' is too easy to confict, e.g.
in alllua.c)
|
14 years ago |
Roberto Ierusalimschy
|
094a7d0290
|
detail in 'print_usage'
|
14 years ago |
Roberto Ierusalimschy
|
ac3afc7cd4
|
'printf' replaced by 'luai_writestring'
|
14 years ago |
Roberto Ierusalimschy
|
4590a89b32
|
corrected warnings from different compilers (mostly casts and small
details)
|
14 years ago |
Roberto Ierusalimschy
|
a122688091
|
better error message for 'lua -e -i'
|
14 years ago |
Roberto Ierusalimschy
|
73b0a3451d
|
environment variables consulted by Lua may be version-specific
|
14 years ago |
Roberto Ierusalimschy
|
7631c29b2f
|
comand-line option '-l' creates global with given name after
requiring module
|
15 years ago |
Roberto Ierusalimschy
|
afdb19ac82
|
no more 'ccall' nor 'cpcall' functions. (With light C functions they
are obsolete.)
|
15 years ago |
Roberto Ierusalimschy
|
489253d753
|
better definitions for lua_[gs]etglobal + less uses of ENVIRONINDEX
|
15 years ago |
Roberto Ierusalimschy
|
622e448710
|
removed useless test (argv[i] cannot be NULL when i<argc)
|
15 years ago |
Roberto Ierusalimschy
|
4274738e81
|
new macro 'luai_writestringerror'
|
15 years ago |
Roberto Ierusalimschy
|
0d7d559dcc
|
no need to flush either stderr or \n-terminated outputs
|
15 years ago |
Roberto Ierusalimschy
|
a838b3b496
|
better usage messages, showing entire offending argument
|
15 years ago |
Roberto Ierusalimschy
|
4f5f2fe367
|
new function 'luaL_cpcall'
|
15 years ago |
Roberto Ierusalimschy
|
c8ab34ab7a
|
better messages for invalid options
|
15 years ago |
Roberto Ierusalimschy
|
cc1cbd19a0
|
'lua_cpcall' is deprecated + other small changes in 'pmain' (comments
and reordering to check arguments before running any Lua code)
|
15 years ago |
Roberto Ierusalimschy
|
f84b575cfa
|
no more pseudoindex LUA_GLOBALSINDEX; global table now accessible
through registry
|
15 years ago |
Roberto Ierusalimschy
|
c3a6f3fa1c
|
'lua_objlen' replaced by 'lua_rawlen', 'lua_len', and 'luaL_len'
|
15 years ago |
Roberto Ierusalimschy
|
adc6a4865b
|
macro name change: LUA_INIT->LUA_INIT_VAR
|
15 years ago |
Roberto Ierusalimschy
|
de6fc75d63
|
several configuration options that do not change often moved out of
luaconf.h and into more internal files
|
15 years ago |
Roberto Ierusalimschy
|
2e51792596
|
avoid using deprecated macros lua_[gs]etglobal
|
15 years ago |
Roberto Ierusalimschy
|
2b25489b47
|
'notail' -> 'noextrachars' ('notail' may confuse with tail calls)
|
15 years ago |
Roberto Ierusalimschy
|
bc439e21cd
|
avoid an unprotected call to 'lua_tostring' which theoretically may
cause a panicked exit
|
15 years ago |
Roberto Ierusalimschy
|
5bff2aaf47
|
calls with LUA_MULTRET may leave no free slots in the stack
|
16 years ago |
Roberto Ierusalimschy
|
4a818f068a
|
'checkversion' implemented in the auxiliary library
|
16 years ago |
Roberto Ierusalimschy
|
f36e319658
|
'fputs' changed to 'luai_writestring' + use of 'lua_checkversion'
|
16 years ago |
Roberto Ierusalimschy
|
f9dec5fc84
|
do not use compatibility macros in Lua
|
17 years ago |
Roberto Ierusalimschy
|
9e7de9473c
|
message from -v option goes to stdout, as it is not an error message
|
17 years ago |
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)
|
17 years ago |
Roberto Ierusalimschy
|
c676f13e1a
|
stand-alone error-message details
|
17 years ago |
Roberto Ierusalimschy
|
72c2f75648
|
detail (LUA_COPYRIGHT includes release number)
|
18 years ago |
Roberto Ierusalimschy
|
3f78748ef3
|
traceback function moved to auxlib
|
18 years ago |
Roberto Ierusalimschy
|
4eb49163c6
|
error handler in 'lua.c' tries '__tostring' metamethod if error
message is not a string
|
18 years ago |
Roberto Ierusalimschy
|
afa0d0ac0d
|
new constant LUA_OK
|
18 years ago |