Commit Graph
100 Commits
Author SHA1 Message Date
Roberto Ierusalimschy 322b7b5fc5 easier to add new initialization functions 2001-02-06 16:18:58 -02:00
Roberto Ierusalimschy 1f917e709c better use of extra include files (both for tests and for old_ansi) 2001-02-06 14:01:29 -02:00
Roberto Ierusalimschy d444153dbe ESC (which starts precompiled code) in C is \33, not \27 2001-02-06 11:59:29 -02:00
Roberto Ierusalimschy a894499566 details 2001-02-05 17:08:01 -02:00
Roberto Ierusalimschy d1fc6244f0 extended syntax to allow function a.b.c (x) 2001-02-05 15:48:52 -02:00
Roberto Ierusalimschy 7e3d3e1f70 details 2001-02-02 17:02:40 -02:00
Roberto Ierusalimschy 1f9e3731d1 back to the basics (well-behaved variant record...) 2001-02-02 14:32:00 -02:00
Roberto Ierusalimschy 42224ca553 loop of 'dostring' may never reclaim memory 2001-02-02 14:23:20 -02:00
Roberto Ierusalimschy 426d3e43bd lock/unlock may use L + better structure for internal debug stuff 2001-02-02 13:13:05 -02:00
Roberto Ierusalimschy 8823f371a2 new header to put together debug-related declarations 2001-02-02 13:12:25 -02:00
Roberto Ierusalimschy e506b864cd no need for tags in boxed values :-( 2001-02-01 15:40:48 -02:00
Roberto Ierusalimschy 9a231afa97 top must be updated when there is any error 2001-02-01 15:39:55 -02:00
Roberto Ierusalimschy 4ab6acacdf better control of relationship top x L->top 2001-02-01 14:03:38 -02:00
Roberto Ierusalimschy 6858763994 bug in lua_pushuserdata(L, NULL) 2001-02-01 11:56:49 -02:00
Roberto Ierusalimschy b68fb7f62e `assert' returns its first argument 2001-01-31 17:53:01 -02:00
Roberto Ierusalimschy 60ff79451c detail in error message 2001-01-31 11:13:17 -02:00
Roberto Ierusalimschy 44a53df688 better to avoid dirty tricks 2001-01-30 17:48:37 -02:00
Roberto Ierusalimschy 63a822c8e1 all boxed types start with their tags 2001-01-29 17:34:02 -02:00
Roberto Ierusalimschy 09def5da44 small corrections 2001-01-29 17:33:55 -02:00
Roberto Ierusalimschy 6b71a9cfe5 smaller tables for machines with 8-bit alignment 2001-01-29 15:17:26 -02:00
Roberto Ierusalimschy fa8c44b510 avoid the use of "reopen" (not that standard) 2001-01-29 13:35:17 -02:00
Roberto Ierusalimschy 3b6f8bfbe6 simpler implementation of for loops 2001-01-29 13:26:40 -02:00
Roberto Ierusalimschy caf01b5bfa better implementation for list "for" 2001-01-29 11:14:49 -02:00
Roberto Ierusalimschy ca1f28b829 avoid side-effects on macros that may use twice their arguments 2001-01-26 16:43:22 -02:00
Roberto Ierusalimschy b82242d4c4 detail 2001-01-26 13:58:50 -02:00
Roberto Ierusalimschy ac390020e9 optimizations based on all types but number and nil are pointers 2001-01-26 12:16:35 -02:00
Roberto Ierusalimschy 9b45439860 details 2001-01-26 12:16:24 -02:00
Roberto Ierusalimschy 7959f3aebb easier way to erase 'dead' keys 2001-01-26 11:18:00 -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 a53d9b66ca first implementation for type names 2001-01-25 14:45:36 -02:00
Roberto Ierusalimschy c8559e3c8d a small optimization 2001-01-24 14:20:54 -02:00
Roberto Ierusalimschy 71ae4801d6 macros LUA_ENTRY/LUA_EXIT to control exclusive access to Lua core 2001-01-24 13:45:33 -02:00
Roberto Ierusalimschy 6fda6a5302 support for multiple stacks sharing the same global environment 2001-01-22 16:01:38 -02:00
Roberto Ierusalimschy 4ac58853dc thead-specific state separated from "global" state 2001-01-19 11:20:30 -02:00
Roberto Ierusalimschy f2c451d745 all accesses to TObjects done through macros 2001-01-18 13:59:09 -02:00
Roberto Ierusalimschy 619edfd9e4 details 2001-01-15 16:07:56 -02:00
Roberto Ierusalimschy a04de4f0ad no more END opcode 2001-01-15 14:13:24 -02:00
Roberto Ierusalimschy a653d93a43 string comparison only needs to test for "less than" 2001-01-11 16:59:32 -02:00
Roberto Ierusalimschy 321c7fb6f8 details 2001-01-11 16:59:20 -02:00
Roberto Ierusalimschy dabb19fc17 specialized versions for luaH_set (numbers and strings) 2001-01-10 16:56:11 -02:00
Roberto Ierusalimschy 08496eea8b small changes in lstring 2001-01-10 15:41:50 -02:00
Roberto Ierusalimschy 4ff5545709 new macro pushliteral 2001-01-10 14:58:11 -02:00
Roberto Ierusalimschy 595e449537 tighter size for error buffers 2001-01-10 14:40:56 -02:00
Roberto Ierusalimschy a907aeeb1e general corrections 2000-12-28 15:25:45 -02:00
Roberto Ierusalimschy 76f62fc5a1 correct size only after malloc success 2000-12-28 10:59:41 -02:00
Roberto Ierusalimschy 0183b8030c `free' gets size of the block: complete control over memory use 2000-12-28 10:55:41 -02:00
Roberto Ierusalimschy 8c49e19865 explicit control of size for growing vectors 2000-12-26 16:46:09 -02:00
Roberto Ierusalimschy 6af005ec20 bug: when `read' fails it must return nil (and not no value) 2000-12-22 15:32:28 -02:00
Roberto Ierusalimschy f8a0fd268e temporary version 2000-12-22 14:58:41 -02:00
Roberto Ierusalimschy 0066bbbb0b details 2000-12-22 14:57:46 -02:00
Roberto Ierusalimschy 1db05793a0 time' does not need to correct its table argument (use date' for that) 2000-12-22 14:57:13 -02:00
Roberto Ierusalimschy af97be026b new function for time and date 2000-12-18 11:42:19 -02:00
Roberto Ierusalimschy cce8ebd306 obsolete `format' option (d$). 2000-12-18 11:41:41 -02:00
Roberto Ierusalimschy 4894c27962 lua_Number defined in lua.h (1st version) 2000-12-04 16:33:40 -02:00
Roberto Ierusalimschy 10ac68c648 first implementation for position captures 2000-12-04 12:43:06 -02:00
Roberto Ierusalimschy 01b00cc292 better control over extensions of char/short to int 2000-11-30 16:50:47 -02:00
Roberto Ierusalimschy fc7b167ae0 BUG: parser does not accept a ;' after a return' 2000-11-29 09:57:42 -02:00
Roberto Ierusalimschy 96253ed8ce better support for 64-bit machines (avoid excessive use of longs) 2000-11-24 15:39:56 -02:00
Roberto Ierusalimschy 35d6b15057 some cleaning 2000-11-23 11:49:35 -02:00
Roberto Ierusalimschy 22914afab3 avoid the use of (non const) static data 2000-11-23 11:47:39 -02:00
Roberto Ierusalimschy 523c5d8e1c last changes by lhf. 2000-11-07 10:44:44 -02:00
Roberto Ierusalimschy 40a4c76773 setlinehook/setcallhook return old hook 2000-11-06 15:58:38 -02:00
Roberto Ierusalimschy 1385d81d20 2000-11-06 11:45:18 -02:00
Roberto Ierusalimschy 906d5dcc41 details 2000-11-06 11:45:18 -02:00
Roberto Ierusalimschy 93a5649d40 hooks may call `error' to break a chunk. 2000-11-06 11:19:08 -02:00
Roberto Ierusalimschy df416661cc many changes 2000-10-31 16:20:01 -02:00
Roberto Ierusalimschy 67c1afff59 lua_settagmethod does not return old tag method 2000-10-31 11:10:24 -02:00
Roberto Ierusalimschy 03770ecfc9 comments 2000-10-31 10:44:07 -02:00
Roberto Ierusalimschy 7409678b5d DEBUG renamed to LUA_DEBUG 2000-10-30 15:50:00 -02:00
Roberto Ierusalimschy d1c689af40 subtelties in layout of TString 2000-10-30 15:49:19 -02:00
Roberto Ierusalimschy 37e9c2e744 macro DEBUG renamed to LUA_DEBUG 2000-10-30 14:29:59 -02:00
Roberto Ierusalimschy e42a219eeb `lua_typename' accepts LUA_TNONE 2000-10-30 11:07:48 -02:00
Roberto Ierusalimschy b3959d58ff 2000-10-30 10:50:09 -02:00
Roberto Ierusalimschy f379d06e24 all API functions are declared in a single line (to facilitate pre-processing). 2000-10-30 10:38:50 -02:00
Roberto Ierusalimschy 728ff20701 details 2000-10-30 10:20:29 -02:00
Roberto Ierusalimschy 2cbbf3933a new macro LUALIB_API (so the lib can be a separate DLL) 2000-10-27 14:15:53 -02:00
Roberto Ierusalimschy e2b6b7de1b details 2000-10-27 09:39:52 -02:00
Roberto Ierusalimschy 563b1f5704 new way to ensure uniqueness of registry keys 2000-10-26 17:04:22 -02:00
Roberto Ierusalimschy 4670476584 details. 2000-10-26 16:44:26 -02:00
Roberto Ierusalimschy 89f98c0995 in function `read_file', realloc() doesn't free the buffer if it can't
allocate new memory
2000-10-26 10:53:55 -02:00
Roberto Ierusalimschy b892f0a877 new API function `createuserdata' 2000-10-26 10:47:05 -02:00
Roberto Ierusalimschy aadc35449e lua_settag does not pop its argument 2000-10-24 17:19:15 -02:00
Roberto Ierusalimschy cdc8139e29 registry mechanism 2000-10-24 17:12:06 -02:00
Roberto Ierusalimschy e833bd47c9 comments 2000-10-24 14:05:59 -02:00
Roberto Ierusalimschy b7ffb128cb it is unsafe to allow Lua to get gc tag methods 2000-10-20 14:57:42 -02:00
Roberto Ierusalimschy 64eecc0b82 new macro LUA_API 2000-10-20 14:39:03 -02:00
Roberto Ierusalimschy 8b88ab07f7 more controled use of `sprintf' 2000-10-20 14:36:32 -02:00
Roberto Ierusalimschy 2779ceeb12 ((n)-1) may be negative (-1), and so it is not wise to keep it as unsigned 2000-10-18 15:19:09 -02:00
Roberto Ierusalimschy e93c4547fe no more USERINIT (macro) 2000-10-17 11:36:24 -02:00
Roberto Ierusalimschy 0ffc676ce7 details 2000-10-11 14:47:50 -02:00
Roberto Ierusalimschy 18fb3ddb89 details. 2000-10-10 17:52:58 -02:00
Roberto Ierusalimschy 2bddbe6603 cannot change filename' before eventual call to freopen' 2000-10-10 17:51:39 -02:00
Roberto Ierusalimschy e323338fd0 `nlineinfo' must include end flag. 2000-10-10 17:51:15 -02:00
Roberto Ierusalimschy 46b543ebef better treatment for errors inside _ERRORMETHOD 2000-10-09 13:46:43 -02:00
Roberto Ierusalimschy 79909a92e1 details 2000-10-09 11:47:46 -02:00
Roberto Ierusalimschy d6232a0b2e better treatment for source names 2000-10-09 11:47:32 -02:00
Roberto Ierusalimschy ae63a0e692 new implementation for some API functions 2000-10-06 16:29:26 -03:00
Roberto Ierusalimschy cd3d446957 detail 2000-10-06 16:28:47 -03:00
Roberto Ierusalimschy f01e6c6f1d small optimization in `sort' 2000-10-06 16:13:29 -03:00
Roberto Ierusalimschy ad3816d0d1 luaD_call is more uniform 2000-10-06 09:45:25 -03:00