Commit Graph

264 Commits

Author SHA1 Message Date
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
Roberto Ierusalimschy 76de732745 avoid non-raw accesses to globals when variable may not exist 2002-12-04 13:38:25 -02:00
Roberto Ierusalimschy 5f698f8b6f simpler interface to hooks + use of `int' to count hooks 2002-11-25 15:47:13 -02:00
Roberto Ierusalimschy c8a79057f7 option -l does a `require', instead of `dofile' 2002-11-19 11:49:43 -02:00
Roberto Ierusalimschy a845a46cc8 C function may leave garbage on the stack (besides return values) 2002-11-14 13:42:05 -02:00
Roberto Ierusalimschy 9957f7d598 better way to open libraries 2002-11-11 11:28:06 -02:00
Roberto Ierusalimschy 313b2fe902 detail 2002-10-21 17:43:38 -03:00
Roberto Ierusalimschy 98d0b79613 EXIT_SUCCESS may be different from 0 2002-09-20 10:32:56 -03:00
Roberto Ierusalimschy 1bdde38bd2 no more newlines at the end of error messages 2002-09-05 16:45:42 -03:00
Roberto Ierusalimschy a048d71ef3 new LUA_USERCONFIG to include user options 2002-08-13 12:04:59 -03:00
Roberto Ierusalimschy 8e4ac679ff use a linear count for count hook 2002-08-12 14:23:12 -03:00
Roberto Ierusalimschy 586e510577 details 2002-08-08 17:08:41 -03:00
Roberto Ierusalimschy 3bb5079dd4 ensure fixed order for library initialization 2002-08-07 17:54:17 -03:00
Roberto Ierusalimschy 2e38c6ae5a `luadebug.h' content now is included in `lua.h' 2002-08-06 15:01:50 -03:00
Roberto Ierusalimschy a2fa48a570 new (old?) error handling scheme 2002-08-06 12:32:22 -03:00
Roberto Ierusalimschy ac7006d374 ^D in interactive mode finish interaction (no questions asked) 2002-07-10 17:49:01 -03:00
Roberto Ierusalimschy 12bee999dd new way to handle macros read_line/save_line 2002-07-10 17:44:34 -03:00
Roberto Ierusalimschy a960e62c3e new options; no more _ALERT; no more getargs 2002-07-09 15:19:44 -03:00
Roberto Ierusalimschy f32a8c0477 details (temporary?) 2002-06-26 13:37:39 -03:00
Roberto Ierusalimschy b449a5e574 more robust when printing error messages 2002-06-20 17:40:09 -03:00
Roberto Ierusalimschy 5893fcb71a accept option arguments without spaces (e.g. "-eprint(a)") 2002-06-18 14:43:49 -03:00
Roberto Ierusalimschy a44f37513b better treatment for error messages 2002-06-18 14:12:05 -03:00
Roberto Ierusalimschy 16f4723398 names & names 2002-06-06 09:40:22 -03:00
Roberto Ierusalimschy ad7103ea3a lua_load* defined in auxlib (and so renamed to luaL_load*) 2002-06-03 17:11:41 -03:00
Roberto Ierusalimschy a1700bbc50 details 2002-05-23 16:43:04 -03:00
Roberto Ierusalimschy f53fd8d5f5 _ALERT is a private afair of lua.c 2002-05-16 16:09:19 -03:00
Roberto Ierusalimschy b7a0503c1d new format for error messages 2002-05-15 15:57:44 -03:00
Roberto Ierusalimschy 751cd867d3 new way to handle errors 2002-05-01 17:48:12 -03:00
Roberto Ierusalimschy 151ba1cc7b details 2002-04-23 11:59:22 -03:00
Roberto Ierusalimschy ee4859b3e3 new way to handle errors (temporary version) 2002-04-22 11:40:50 -03:00
Roberto Ierusalimschy 8e1e618606 `baselib' splited in `baselib' and `tablib' 2002-04-09 17:19:06 -03:00
Roberto Ierusalimschy 237969724f support for `light' userdata + simpler support for `boxed' udata 2002-04-05 15:54:31 -03:00
Roberto Ierusalimschy b795d4b561 details 2002-04-01 11:42:33 -03:00
Roberto Ierusalimschy c371413530 small bug if LUA_USERINIT leaves garbage on the stack 2002-03-27 15:00:13 -03:00
Roberto Ierusalimschy c36b5cc726 detail 2002-02-15 13:15:10 -02:00
Roberto Ierusalimschy 2c1eb62a08 get error messages from luaL_errstr 2002-02-14 20:23:43 -02:00
Roberto Ierusalimschy 2f8e3c5543 prints any results returned by chunk 2002-02-14 19:47:50 -02:00
Roberto Ierusalimschy cb50fcf42d incomplete lines (by lhf) 2002-02-07 15:27:12 -02:00
Roberto Ierusalimschy 9cd36059ad new API functions lua_getstr/lua_setstr 2001-12-10 20:09:51 -02:00
Roberto Ierusalimschy 72659a0605 no more explicit support for wide-chars; too much troble... 2001-11-28 18:13:13 -02:00
Roberto Ierusalimschy dfaf8c5291 details 2001-11-27 18:56:47 -02:00
Roberto Ierusalimschy 1e81da51ba new API for registry and C upvalues + new implementation for references 2001-10-17 19:12:57 -02:00
Roberto Ierusalimschy 8e9b1e4ae9 details 2001-09-25 14:08:46 -03:00
Roberto Ierusalimschy 33d820d41d new syntax "= exp" to rpint exp + simplifications 2001-08-30 17:54:02 -03:00
Roberto Ierusalimschy 186111dc01 unused definition 2001-06-11 11:57:17 -03:00
Roberto Ierusalimschy d5b83ead90 new implementation for userdatas, without `keys' 2001-06-06 15:00:19 -03:00
Roberto Ierusalimschy dd3a63c205 new way to handle `profiles' 2001-03-26 11:31:49 -03:00
Roberto Ierusalimschy cb49b088b6 old signature for lua_open 2001-03-09 15:05:05 -03:00
Roberto Ierusalimschy a90f06dcd8 `atoi' does not have a wide-char equivalent 2001-02-23 17:28:26 -03:00
Roberto Ierusalimschy 35023355f2 details for wchar 2001-02-23 14:28:12 -03:00
Roberto Ierusalimschy 39b7978329 first (big) step to support wide chars 2001-02-23 14:17:25 -03:00
Roberto Ierusalimschy 099442c41f better separation between basic types 2001-02-20 15:15:33 -03:00
Roberto Ierusalimschy 29371ecfe8 better way to handle multi-line input (with concat) 2001-02-14 15:19:01 -02:00
Roberto Ierusalimschy 322b7b5fc5 easier to add new initialization functions 2001-02-06 16:18:58 -02:00
Roberto Ierusalimschy bce6572579 new macros + new names to facilitate compilation of threaded version 2001-01-26 09:45:51 -02:00
Roberto Ierusalimschy 6fda6a5302 support for multiple stacks sharing the same global environment 2001-01-22 16:01:38 -02:00
Roberto Ierusalimschy 4ff5545709 new macro pushliteral 2001-01-10 14:58:11 -02:00
Roberto Ierusalimschy 8b88ab07f7 more controled use of `sprintf' 2000-10-20 14:36:32 -02:00
Roberto Ierusalimschy e93c4547fe no more USERINIT (macro) 2000-10-17 11:36:24 -02:00
Roberto Ierusalimschy 46b543ebef better treatment for errors inside _ERRORMETHOD 2000-10-09 13:46:43 -02:00
Roberto Ierusalimschy d8a442206d lua_state (now called `L') should not be global 2000-09-25 13:15:52 -03:00
Roberto Ierusalimschy 30f6e658d2 `lua_newstate' renamed to `lua_open' 2000-09-11 16:42:57 -03:00
Roberto Ierusalimschy 6e80c1cde1 new version for API 2000-09-05 16:33:32 -03:00
Roberto Ierusalimschy f0b3cd1d6f new API functions `pop', `insert', and `move' 2000-08-31 17:23:40 -03:00
Roberto Ierusalimschy d63afba9d3 negative stack sizes are invalid, too. 2000-08-31 11:28:17 -03:00
Roberto Ierusalimschy ac12f4db4b C upvalues are the last arguments to a function 2000-08-29 11:33:31 -03:00
Roberto Ierusalimschy 9fdf73bc9a first version for new API 2000-08-28 14:57:04 -03:00
Roberto Ierusalimschy d1ffd1a1c5 details 2000-08-14 14:45:59 -03:00
Roberto Ierusalimschy e238efc536 default now is multi-state 2000-08-09 16:16:57 -03:00
Roberto Ierusalimschy 435f587ed0 (much) better handling of memory alloction errors 2000-08-04 16:38:35 -03:00
Roberto Ierusalimschy ae55f3eead no varargs in Lua API 2000-06-30 16:17:08 -03:00
Roberto Ierusalimschy 88657809ac details 2000-06-19 10:15:15 -03:00
Roberto Ierusalimschy e3ea307434 small changes to allow redefinition of some buffer sizes. 2000-06-16 14:16:34 -03:00
Roberto Ierusalimschy 1de5587184 `lua.h' is included before any other Lua header file 2000-06-12 10:52:05 -03:00
Roberto Ierusalimschy 8ac0bbf64b new option `-c' to close lua. 2000-05-10 14:00:21 -03:00
Roberto Ierusalimschy 0b56646baf new function `getargs' 2000-04-14 14:46:29 -03:00
Roberto Ierusalimschy 556a89e537 new names for debug types 2000-03-30 14:19:48 -03:00
Roberto Ierusalimschy 441469f803 new option `-s' + argv ends with NULL (so we don't need argc). 2000-03-20 17:27:32 -03:00
Roberto Ierusalimschy 3c9d999424 many details (most by lhf). 2000-03-03 11:58:26 -03:00
Roberto Ierusalimschy 228a62f799 details 2000-02-21 16:30:42 -02:00
Roberto Ierusalimschy 33d3504889 new debug API 2000-01-19 14:50:14 -02:00
Roberto Ierusalimschy aee07c6599 details 1999-12-30 16:29:46 -02:00
Roberto Ierusalimschy 3daeabb606 new way to pass arguments: with option `-f' 1999-12-21 15:34:23 -02:00
Roberto Ierusalimschy de65253f2d new way to handle _PROMPT 1999-12-20 11:03:20 -02:00
Roberto Ierusalimschy 968ad49da6 `lua_newstate' gets the inital stack size and other arguments 1999-12-06 09:41:28 -02:00
Roberto Ierusalimschy 29ede6aa13 first implementation of multiple states (reentrant code). 1999-11-22 11:12:07 -02:00
Roberto Ierusalimschy 951897c093 last warnings in Visual C 1999-11-16 10:50:48 -02:00
Roberto Ierusalimschy a34677e4f4 details 1999-11-12 11:54:44 -02:00
Roberto Ierusalimschy a7fa7bafc8 new warnings with option "-W" (gcc) 1999-11-09 15:59:35 -02:00
Roberto Ierusalimschy b2c89ed2d2 new mechanism to access argv from a script 1999-08-18 14:40:54 -03:00
Roberto Ierusalimschy c787dccd9b "const" !!! 1999-08-16 17:52:00 -03:00
Roberto Ierusalimschy 3b4c831ca9 some systems do not reset signal handlers when a signal happens 1999-07-02 15:22:38 -03:00
Roberto Ierusalimschy 3fdab3981b no more automatic setlocale. 1999-06-24 16:42:02 -03:00
Roberto Ierusalimschy 5687949560 "lua_debug", "lua_callhook" and "lua_linehook" must be inside "lua_state". 1999-02-04 15:47:59 -02:00
Roberto Ierusalimschy 2431534f10 details 1999-01-26 09:50:58 -02:00
Roberto Ierusalimschy 01772cefa5 new library for debbuging 1999-01-08 14:47:44 -02:00
Roberto Ierusalimschy dc90d4bce3 when handling signals (^C), deep old hook values. 1999-01-06 11:12:41 -02:00
Roberto Ierusalimschy 766e67ef3b to avoid warnings about "typecast" (Visual C++) 1998-12-28 11:44:54 -02:00
Roberto Ierusalimschy a9dd2c6717 interrupts lua loops with "^C" (via signals) 1998-02-11 18:56:05 -02:00
Roberto Ierusalimschy 783ba75129 needs "stdlib.h" (calls "exit") 1998-01-19 17:49:49 -02:00
Roberto Ierusalimschy a78eecee48 details (aborts with invalid arguments) 1997-12-22 18:03:50 -02:00
Roberto Ierusalimschy 43461d267f help message 1997-12-22 16:05:23 -02:00
Roberto Ierusalimschy 7ecc3ce827 new command line options 1997-12-19 16:34:23 -02:00
Roberto Ierusalimschy cdd261f332 new option "-q" (quiet), and multi-line commands (ending with '\') 1997-12-11 15:00:21 -02:00
Roberto Ierusalimschy 034f16892e better treatment of MARKs and DEBUG cases. 1997-12-11 12:48:46 -02:00
Roberto Ierusalimschy 69d97712ec arguments "var=value" doesn't need quotes for value 1997-12-03 17:57:54 -02:00
Roberto Ierusalimschy 3393fd7f25 first version of "lua_close" 1997-12-01 18:31:25 -02:00
Roberto Ierusalimschy accd7bc253 small modifications (format, small optimizations, etc) 1997-11-21 17:00:46 -02:00
Roberto Ierusalimschy 592a3f289b first implementation of centralized global state. 1997-11-19 15:29:23 -02:00
Roberto Ierusalimschy 19c178fa14 new (smaller) prompt 1997-10-16 16:35:59 -02:00
Roberto Ierusalimschy a3235ad270 prompt for interactive mode 1997-10-06 12:51:32 -02:00
Roberto Ierusalimschy 2d2440a753 Lua stand-alone interpreter 1997-09-16 16:25:59 -03:00
Roberto Ierusalimschy 7820a47184 LOCALE support 1997-07-01 16:32:41 -03:00
Roberto Ierusalimschy 27b6bbdcf3 "testC" inactive (active only for tests) 1997-06-19 15:55:40 -03:00
Roberto Ierusalimschy f6d95140ae using old version functions. 1997-06-18 18:20:45 -03:00
Roberto Ierusalimschy 085181a08a new function "testC", to help debug the API. 1997-06-09 14:29:16 -03:00
Roberto Ierusalimschy 42fa305649 better error messages;
better names for some API functions.
1997-04-04 19:24:51 -03:00
Roberto Ierusalimschy 6d383202dc "dofile" and "dostring" may return values. 1996-09-24 14:30:28 -03:00