1
0
mirror of https://github.com/lua/lua synced 2026-06-08 15:34:49 +00:00

Commit Graph

  • 2d053126e6 new function for copy strings (strdup is not ANSI) Roberto Ierusalimschy 1995-02-06 17:37:51 -02:00
  • 3203460c9e better approximation for PI Roberto Ierusalimschy 1995-02-06 17:36:43 -02:00
  • bb00cd66a7 function "stat" needs "sys/types.h" Roberto Ierusalimschy 1995-02-06 17:36:13 -02:00
  • 7c342c488e header "stdlib.h" was missing (gcc does not warn that) Roberto Ierusalimschy 1995-02-06 17:35:09 -02:00
  • b36cd823b1 header "string.h" was missing (gcc does not warn that) Roberto Ierusalimschy 1995-02-06 17:34:03 -02:00
  • cda444d7f4 type names changed to avoid clashes Roberto Ierusalimschy 1995-02-06 17:32:43 -02:00
  • dd28b830e9 a null lua_Object is LUA_NOOBJECT, not NULL. Roberto Ierusalimschy 1995-02-02 18:05:37 -02:00
  • 572ee14b52 use yacc++ instead of yacc. Roberto Ierusalimschy 1995-02-02 17:04:16 -02:00
  • 6198626138 libs should not use Lua internal functions (like mem.h). a null lua_Object is LUA_NOOBJECT, not NULL. Roberto Ierusalimschy 1995-02-02 16:54:58 -02:00
  • 8795aab83e new API function lua_pushlocked & lua_checkstack is a macro Waldemar Celes 1995-01-27 15:19:06 -02:00
  • f83db16cab new API function lua_pushlocked Waldemar Celes 1995-01-27 15:19:06 -02:00
  • 6e0e9935ec trocar a funcao para garbage colector adaptativo. Waldemar Celes 1995-01-18 18:15:54 -02:00
  • 97053335fb Trocar 'pushstring' por 'pushliteral' na macro 'getfield'. Waldemar Celes 1995-01-18 18:15:05 -02:00
  • f4591397da strdup is done via mem.c to control its memory allocation Roberto Ierusalimschy 1995-01-14 13:40:26 -02:00
  • 8faf4d1de2 control of garbage collection is done with Longs, as there can be more than WORD objects to collect. Roberto Ierusalimschy 1995-01-12 12:19:04 -02:00
  • 53c0a0f43c function 'strfind' now has two optional parameters, to specify where to start and stop the search. Roberto Ierusalimschy 1995-01-06 18:31:10 -02:00
  • ad97e9ccbc small bug in fallback for power operator Roberto Ierusalimschy 1995-01-04 16:49:54 -02:00
  • e4c69cf917 correcao de bug na construcao do formato. Waldemar Celes 1995-01-03 11:14:13 -02:00
  • 5b8ced84b4 stack is indexed by integers, not Words, to allow bigger stack on 32 bit machines Roberto Ierusalimschy 1994-12-30 15:45:11 -02:00
  • df3a81ec88 functions that no more return error codes now have return type void Roberto Ierusalimschy 1994-12-28 10:55:47 -02:00
  • b8e76d9b5c 'lua_getsubscript' and 'lua_storesubscript' now run unprotected (to improve efficiency) Waldemar Celes 1994-12-27 18:53:15 -02:00
  • dc97a07e19 better names for 'y.tab.c' and 'y.tab.h' (now they are moved to 'parser.c' and 'parser.h') Waldemar Celes 1994-12-27 18:50:38 -02:00
  • 4dce79f7e3 uses 'limits.h' for MAX_WORD and MAX_INT Waldemar Celes 1994-12-27 18:41:47 -02:00
  • a8220feed2 bytecodes are indexed by integers, not Words, to allow bigger code on 32 bit machines Waldemar Celes 1994-12-27 18:41:11 -02:00
  • 8bc4b0d741 routines are defined before rules, to allow correct compilation with bison Waldemar Celes 1994-12-27 18:04:29 -02:00
  • 96b2b90c50 new file 'types.h' Roberto Ierusalimschy 1994-12-23 18:47:59 -02:00
  • 89d823f16b implementation dependent types Roberto Ierusalimschy 1994-12-20 19:31:01 -02:00
  • 8cb8594a3b better control of integer types and their limits Roberto Ierusalimschy 1994-12-20 19:20:36 -02:00
  • fe8338335d a field with value 'nil' must call the fallback 'index' Roberto Ierusalimschy 1994-12-16 14:08:34 -02:00
  • 068d1cd1ee new constant LUA_NOOBJECT. 'lua_createtable' does not have parameters. 'lua_copystring' now is a macro Roberto Ierusalimschy 1994-12-16 13:56:45 -02:00
  • 3365a35243 new constant LUA_NOOBJECT Roberto Ierusalimschy 1994-12-16 13:55:04 -02:00
  • fad57bfa00 new constant LUA_NOOBJECT. 'lua_error' never returns Roberto Ierusalimschy 1994-12-16 13:53:57 -02:00
  • 891cab8a31 Passar os argv apos '--' para Lua. Captura-se cada argv com a funcao argv(i), onde i = 1, 2, ... Waldemar Celes 1994-12-14 17:58:20 -02:00
  • 2486d677c9 no special treatment for C++ (this should be done in the C++ code) Roberto Ierusalimschy 1994-12-13 13:59:16 -02:00
  • 84b99d25ad debug message goes to stderr Roberto Ierusalimschy 1994-12-13 13:55:41 -02:00
  • 5dfd17dd76 new API function 'lua_pushliteral' Roberto Ierusalimschy 1994-12-13 13:54:21 -02:00
  • ce4fb88b34 opcode PUSHSELF has a parameter that indicates the method to be called Roberto Ierusalimschy 1994-12-06 12:27:18 -02:00
  • e742d54253 small bug correction Roberto Ierusalimschy 1994-11-30 19:20:37 -02:00
  • 0f580df73c 'main' returns condition code Roberto Ierusalimschy 1994-11-28 15:12:49 -02:00
  • 2b301d711b new hash function; hash value for strings are kept with the string Roberto Ierusalimschy 1994-11-28 13:10:51 -02:00
  • 10bdd83844 new hash function; hash value for strings are kept with the string Roberto Ierusalimschy 1994-11-25 17:27:03 -02:00
  • fbfa1cbe9b erased function yywrap (nobody used it) Roberto Ierusalimschy 1994-11-25 17:24:57 -02:00
  • 10c1641b8e new modules 'mem' and 'fallback'. correction of dependencies Roberto Ierusalimschy 1994-11-23 18:15:04 -02:00
  • e901e0feae modifications to avoid warnings when compiling yacc code Roberto Ierusalimschy 1994-11-23 12:39:52 -02:00
  • d490555ec9 garbage collection tag for strings organized in struct TaggedString Roberto Ierusalimschy 1994-11-23 12:32:00 -02:00
  • ad0ec203f6 small simplification Roberto Ierusalimschy 1994-11-22 14:13:45 -02:00
  • 577ae944e9 correction of function tonumber Roberto Ierusalimschy 1994-11-22 14:02:53 -02:00
  • 68d1091b79 no more unary '+' Roberto Ierusalimschy 1994-11-22 13:50:46 -02:00
  • 52db68a600 debug shows lines where functions were called Roberto Ierusalimschy 1994-11-21 19:41:09 -02:00
  • bba1ae427f new lua functions 'getglobal' and 'setglobal' Roberto Ierusalimschy 1994-11-21 19:41:09 -02:00
  • 609392ff2e fallback for "call expression not a function" errors Roberto Ierusalimschy 1994-11-21 16:22:58 -02:00
  • 96ea2e0fb4 fallback to unary minus is 'arith' with operation code 'unm' Roberto Ierusalimschy 1994-11-21 11:30:15 -02:00
  • 93ccdd52ef lua_lock receives its parameter via stack. beginblock and endblock do not have parameters Roberto Ierusalimschy 1994-11-18 17:46:21 -02:00
  • 333a4f13d0 lua_lock receives its parameter via stack Roberto Ierusalimschy 1994-11-18 17:46:21 -02:00
  • 73664eb739 function 'lua_createstring' moved from table.c to tree.c Roberto Ierusalimschy 1994-11-18 17:27:38 -02:00
  • feed56a01c small correction Roberto Ierusalimschy 1994-11-17 19:27:30 -02:00
  • 1929ddcf49 userdata can have different tags Roberto Ierusalimschy 1994-11-17 19:23:43 -02:00
  • aa4cd37adf small bug corrected Roberto Ierusalimschy 1994-11-17 19:11:37 -02:00
  • a84aa11f71 pow operation is defined in mathlib.c Roberto Ierusalimschy 1994-11-17 17:43:34 -02:00
  • 9bee23fd05 listing did not list POWOP Roberto Ierusalimschy 1994-11-17 17:09:46 -02:00
  • 3bd0f9e211 uses new memory module (mem.c). small changes in seting debug line. if and elseif unified in a outine 'codeIf' Roberto Ierusalimschy 1994-11-17 16:59:06 -02:00
  • 5406d391cd new API functions startblock and endblock Roberto Ierusalimschy 1994-11-17 14:41:42 -02:00
  • b234da1cc2 changes in garbage collection control Roberto Ierusalimschy 1994-11-17 11:58:57 -02:00
  • d6a1699e37 uses a single list to keep allocated strings. Roberto Ierusalimschy 1994-11-16 16:09:11 -02:00
  • a5862498a1 set first position of a free block to -1, to catch errors Roberto Ierusalimschy 1994-11-16 16:09:11 -02:00
  • 2b5bc5d1a8 new module for memory allocation Roberto Ierusalimschy 1994-11-16 15:39:16 -02:00
  • 94686ce585 correction of function 'nextvar' Roberto Ierusalimschy 1994-11-16 14:03:48 -02:00
  • 86b35cf4f6 unification of symbol tree and constant tree Roberto Ierusalimschy 1994-11-14 19:40:14 -02:00
  • 3b7a36653b lua_equalObj now is global (and is used by opcode) Roberto Ierusalimschy 1994-11-14 16:41:15 -02:00
  • e1d91fd0e1 new API function to create tables Roberto Ierusalimschy 1994-11-13 14:17:04 -02:00
  • 5e60b961de small changes to avoid shadowing Roberto Ierusalimschy 1994-11-13 12:54:18 -02:00
  • e4645c835d small changes in 'ugly' part. Roberto Ierusalimschy 1994-11-13 12:39:04 -02:00
  • 0c5ac77c99 small corrections to avoid 'warings' with acc. do_call was moving results in the wrong order. Roberto Ierusalimschy 1994-11-11 12:00:08 -02:00
  • b8996eaaba small corrections to avoid 'warings' with acc Roberto Ierusalimschy 1994-11-11 12:00:08 -02:00
  • ff7f769454 small changes in error recovery Roberto Ierusalimschy 1994-11-10 18:41:37 -02:00
  • 8a0521fa52 fallback for garbage collection Roberto Ierusalimschy 1994-11-10 15:36:54 -02:00
  • 9deac27704 fallback list moved from opcode.c to fallback.c Roberto Ierusalimschy 1994-11-10 15:11:52 -02:00
  • d531ccd082 execution of 'mains' separated from calls Roberto Ierusalimschy 1994-11-09 16:13:29 -02:00
  • df0cfc1e19 calls lua_reportbug instead of lua_error, in default fallbacks Roberto Ierusalimschy 1994-11-09 16:12:42 -02:00
  • 5f2d187b73 frees file names when unstacked Roberto Ierusalimschy 1994-11-09 16:11:47 -02:00
  • 6b387e01b2 lua_parse has a different interface Roberto Ierusalimschy 1994-11-09 16:10:58 -02:00
  • d0780fa16d lua_call cannot be a macro, because it would push the function over the parameters Roberto Ierusalimschy 1994-11-09 16:10:11 -02:00
  • fc0de64c2c lua_debugline is kept in the stack 'funcstack' when debugging. Roberto Ierusalimschy 1994-11-09 16:09:22 -02:00
  • b8bfa9628d because lua_error does a longjmp, there is no need to a variable 'err'. lua_parse has a different interface, to allow the free of the main block even if compilation fails. small changes in the debug system. Roberto Ierusalimschy 1994-11-09 16:07:38 -02:00
  • dabe09518f garbage collection for locked objects Roberto Ierusalimschy 1994-11-08 18:07:54 -02:00
  • 65f28f0824 error function for Lua Roberto Ierusalimschy 1994-11-08 18:06:15 -02:00
  • 2cf954b8ae lock mechanism Roberto Ierusalimschy 1994-11-08 17:56:39 -02:00
  • aa7b1fcec4 new API Roberto Ierusalimschy 1994-11-07 16:27:39 -02:00
  • d95a8b3121 new API: lua_Object now is an integer Roberto Ierusalimschy 1994-11-07 14:34:44 -02:00
  • 9ffba7a3db first implementation of 'fallbacks' Roberto Ierusalimschy 1994-11-07 13:20:56 -02:00
  • de4e2305c5 Type renamed to lua_Type Roberto Ierusalimschy 1994-11-07 13:20:56 -02:00
  • 63d300167e module to implement default fallbacks and lock mechanisms Roberto Ierusalimschy 1994-11-07 13:20:56 -02:00
  • 62ec3797d5 inheritance is not built-in Roberto Ierusalimschy 1994-11-07 13:19:51 -02:00
  • 0a5dce5704 new opcodes for '>' and '>=' Roberto Ierusalimschy 1994-11-06 13:35:04 -02:00
  • 8c22057b2e new global function 'setfallback' Roberto Ierusalimschy 1994-11-04 15:20:00 -02:00
  • 253655ae4b small corrections. Roberto Ierusalimschy 1994-11-04 08:47:49 -02:00
  • c635044f2f creation of function do_protectedrun, that executes lua code enclosed in a setjmp, with error recovery. Elimination of functions lua_isnil, etc. Roberto Ierusalimschy 1994-11-04 08:47:49 -02:00
  • 3db06a95a3 Elimination of functions lua_isnil, etc. Roberto Ierusalimschy 1994-11-04 08:47:49 -02:00
  • 31d58e2f01 more functions from opcode.c 'open_file' and 'open_string' return an error message lua_type renamed to luaI_type (I for Internal, as this function is not exported outside lua) Roberto Ierusalimschy 1994-11-03 20:34:29 -02:00
  • 42ef3f9388 there is no need of predefined constants. Roberto Ierusalimschy 1994-11-03 20:33:40 -02:00