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

Commit Graph

  • e3a02e6a9c comments Roberto Ierusalimschy 1999-02-22 16:23:36 -03:00
  • d5feffdb60 new function lua_nextvar Roberto Ierusalimschy 1999-02-22 16:13:12 -03:00
  • bb5627f3a4 better control over calls to _ALERT and _ERRORMESSAGE (to avoid error loops) Roberto Ierusalimschy 1999-02-22 11:17:24 -03:00
  • 21107d7c2c debug state is restored after a dofile/dostring Roberto Ierusalimschy 1999-02-22 10:51:44 -03:00
  • b5cd7d426f details Roberto Ierusalimschy 1999-02-19 15:33:35 -02:00
  • bf6d2ccf92 details Roberto Ierusalimschy 1999-02-12 17:23:02 -02:00
  • b82ff713e3 new name for opcode Roberto Ierusalimschy 1999-02-09 16:01:55 -02:00
  • 77113ee02f new year for Copyright. Roberto Ierusalimschy 1999-02-09 13:59:22 -02:00
  • ad6c7b0dd4 small corrections in opcodes. Roberto Ierusalimschy 1999-02-09 13:59:10 -02:00
  • 8b2d97d187 assignment expression may be multiple Roberto Ierusalimschy 1999-02-08 16:54:19 -02:00
  • fb1cf6ab2d clearer way to set tables. Roberto Ierusalimschy 1999-02-08 15:07:59 -02:00
  • 19ca2087de another (silly) debuging function. Roberto Ierusalimschy 1999-02-08 14:29:35 -02:00
  • 7bdbd833b5 userdata and strings are kept in separate stringtables Roberto Ierusalimschy 1999-02-08 14:28:48 -02:00
  • b22baf386d Lua cannot have static variables. Roberto Ierusalimschy 1999-02-05 13:22:43 -02:00
  • 8fdd06ba3c lots of new stuff from 3.2 Roberto Ierusalimschy 1999-02-05 10:15:07 -02:00
  • 028ec00ab9 details Roberto Ierusalimschy 1999-02-05 09:22:58 -02:00
  • 1dcf1c9cbd format "%s" may break limit of "sprintf" on some machines. Roberto Ierusalimschy 1999-02-04 17:29:51 -02:00
  • 76179a1014 compile option EXTRALIB for builtin functions that can be written in Lua. Roberto Ierusalimschy 1999-02-04 17:12:35 -02:00
  • bdfab46c22 "errorim" now is _ERRORMESSAGE. Roberto Ierusalimschy 1999-02-04 16:59:31 -02:00
  • 5687949560 "lua_debug", "lua_callhook" and "lua_linehook" must be inside "lua_state". Roberto Ierusalimschy 1999-02-04 15:47:59 -02:00
  • 19de5b2205 new dependencies Roberto Ierusalimschy 1999-02-04 14:37:41 -02:00
  • cbc58af260 new opcode for "long" arguments (3 bytes) Roberto Ierusalimschy 1999-02-04 14:36:16 -02:00
  • 80001ab0eb getlocal cannot return the local itself, since lua_isstring and lua_isnumber can modify it. Roberto Ierusalimschy 1999-02-03 14:42:42 -02:00
  • ae29ab9858 only parser uses MAX_WORD Roberto Ierusalimschy 1999-02-03 11:53:48 -02:00
  • 27407fc1f5 new syntax: assignment expressions + better order for opcodes Roberto Ierusalimschy 1999-02-02 17:41:17 -02:00
  • 1a17da2ff9 opcodes with builtin parameters are too complicated for very little extra performance. Roberto Ierusalimschy 1999-02-02 15:57:49 -02:00
  • 50248e440a "if" expression leaves only one of its expressions on the stack Roberto Ierusalimschy 1999-02-02 11:47:31 -02:00
  • 0f0079f394 "if" expressions. Roberto Ierusalimschy 1999-02-01 16:52:05 -02:00
  • 68267ed878 negative numerals do not need a MINUSOPeration; go directly to contant table. Roberto Ierusalimschy 1999-01-29 11:48:58 -02:00
  • fd25d4ad85 no need to define functions for macros... Roberto Ierusalimschy 1999-01-26 13:38:01 -02:00
  • 2431534f10 details Roberto Ierusalimschy 1999-01-26 09:50:58 -02:00
  • fd7d0774e5 luaH_set does the set and protect its value; luaH_move can then be a macro. New algorithm for double hashing (does not use "%"). Roberto Ierusalimschy 1999-01-25 15:41:19 -02:00
  • 57ffc3f009 luaH_set does the set, and protects its value, so luaH_move can be a macro. Roberto Ierusalimschy 1999-01-25 15:40:10 -02:00
  • 4a13f513f8 luaH_set does the set! Roberto Ierusalimschy 1999-01-25 15:39:28 -02:00
  • 13ad46b67d uses the same double hashing that is used for tables Roberto Ierusalimschy 1999-01-25 15:38:04 -02:00
  • 1b45e967b4 table entries with ref=null always have val=null too. Roberto Ierusalimschy 1999-01-25 10:30:11 -02:00
  • 933bead92e small optimizations(?) Roberto Ierusalimschy 1999-01-22 16:47:23 -02:00
  • 3314f49ec4 C cannot initialize a struct. Roberto Ierusalimschy 1999-01-22 16:46:11 -02:00
  • bc930aa5ff "free" usually handles NULL; handle non ANSI case separately. Roberto Ierusalimschy 1999-01-22 16:08:57 -02:00
  • 67b44c9493 local names are all in the constant pool, so they do not need to be marked in GC. Roberto Ierusalimschy 1999-01-22 16:08:03 -02:00
  • 758a381644 "realloc" usually implements "malloc"; handle non ANSI case separately. Roberto Ierusalimschy 1999-01-22 15:28:00 -02:00
  • eec31aaca5 <string.h> is needed because of "memcpy". Roberto Ierusalimschy 1999-01-21 16:38:39 -02:00
  • 595738f6fe small optimizations Roberto Ierusalimschy 1999-01-20 18:22:06 -02:00
  • b5eb4f3126 small optimization in getglobal Roberto Ierusalimschy 1999-01-15 11:14:24 -02:00
  • 3fecf187ff names... Roberto Ierusalimschy 1999-01-15 11:11:57 -02:00
  • 54840fb256 new functions to manipulate C global variables Roberto Ierusalimschy 1999-01-15 11:11:22 -02:00
  • e87fddf1ad GC can be called during parsing, if needed. Roberto Ierusalimschy 1999-01-15 09:38:33 -02:00
  • dea400bc1d "getstack" returns func, too. Roberto Ierusalimschy 1999-01-15 09:36:28 -02:00
  • fb663f768d "%.16g" already formats integers as integers, so we do not need an alternative "%ld" convertion in "tostring". Roberto Ierusalimschy 1999-01-13 17:09:04 -02:00
  • e03767b3eb details (comments) Roberto Ierusalimschy 1999-01-13 17:08:37 -02:00
  • 8396027516 better precision when converting numbers to strings. Roberto Ierusalimschy 1999-01-12 16:38:35 -02:00
  • e24f7fd2d2 details Roberto Ierusalimschy 1999-01-11 18:23:54 -02:00
  • 8081f39dab header missing. Roberto Ierusalimschy 1999-01-11 16:57:35 -02:00
  • 3cc4ca821e initialization module (to load libraries) Roberto Ierusalimschy 1999-01-08 14:49:32 -02:00
  • 01772cefa5 new library for debbuging Roberto Ierusalimschy 1999-01-08 14:47:44 -02:00
  • dc90d4bce3 when handling signals (^C), deep old hook values. Roberto Ierusalimschy 1999-01-06 11:12:41 -02:00
  • f5bc671030 "goto" for tail recursion changed to "while" Roberto Ierusalimschy 1999-01-04 15:34:49 -02:00
  • d7294c6de8 double hashing for string tables. Roberto Ierusalimschy 1999-01-04 11:37:29 -02:00
  • 63a752f961 small improvements. Roberto Ierusalimschy 1999-01-04 11:37:07 -02:00
  • 03d38b66fd new sort algorithm. Roberto Ierusalimschy 1999-01-04 10:55:09 -02:00
  • b9c9ccfbb4 function "move" for tables is better implemented with some "inside information". Roberto Ierusalimschy 1999-01-04 10:54:33 -02:00
  • b94110a68f bug: "format" does not check size of format item (such as "%00000...00000d"). Roberto Ierusalimschy 1999-01-04 10:53:24 -02:00
  • 8278468041 comments Roberto Ierusalimschy 1999-01-04 10:41:12 -02:00
  • 4fbb2531b3 don´t need the "+1", the "%" is enough to garantee r<1. Roberto Ierusalimschy 1998-12-30 19:23:26 -02:00
  • 59f8e6fb77 details ("settable") Roberto Ierusalimschy 1998-12-30 15:26:49 -02:00
  • 05d89b5c05 new option for function "random": random(a,b) returns a<=x<=b Roberto Ierusalimschy 1998-12-30 15:22:17 -02:00
  • fe5c41fb8a new functions "tinsert" and "tremove" Roberto Ierusalimschy 1998-12-30 11:16:50 -02:00
  • 9a45543841 tables are better manipulated via "Hash *" instead of "TObject" or "lua_Object". Roberto Ierusalimschy 1998-12-30 11:14:46 -02:00
  • 766e67ef3b to avoid warnings about "typecast" (Visual C++) Roberto Ierusalimschy 1998-12-28 11:44:54 -02:00
  • 4c94d8cc2c new function "luaO_str2d" to convert strings to numbers, because old "lex" algorithm had aproximation errors, but strtod (and atof and scanf) are too slow. Roberto Ierusalimschy 1998-12-27 18:25:20 -02:00
  • d2de2d5eda format for double is always "%g", do not need #defines Roberto Ierusalimschy 1998-12-27 18:23:22 -02:00
  • 96a7695275 reorder and rename of most functions, for better documentation. Roberto Ierusalimschy 1998-12-27 18:22:36 -02:00
  • 63166c0ca0 new implementation of function "read", with predifined options. Roberto Ierusalimschy 1998-12-27 18:21:28 -02:00
  • a881abfd1e "strtod" is cleaner than "scanf" for this job. Roberto Ierusalimschy 1998-12-24 12:57:23 -02:00
  • d3ac7075a2 better error message Roberto Ierusalimschy 1998-12-23 12:06:57 -02:00
  • 0c9080c7a9 "tonumber" goes crazy with negative numbers in other bases (not 10), because "strtol" returns long, not unsigned long. Roberto Ierusalimschy 1998-12-18 11:26:43 -02:00
  • b8fcb7b151 details Roberto Ierusalimschy 1998-12-15 13:21:09 -02:00
  • 5d6de9075d "print" uses fputs instead of printf (easier to reimplement). Roberto Ierusalimschy 1998-12-15 12:59:59 -02:00
  • 21cff3015a details (for regularity) Roberto Ierusalimschy 1998-12-15 12:59:43 -02:00
  • 5ca2709ba0 small warnings Roberto Ierusalimschy 1998-12-03 13:45:15 -02:00
  • bb1cb7b9f1 NUMBER_FMT also may be predefined in makefile Roberto Ierusalimschy 1998-12-01 17:09:47 -02:00
  • c64f36ab2b better behavior for "strsub" when indices are out-of-range Roberto Ierusalimschy 1998-12-01 16:41:25 -02:00
  • e4830ddce3 new option "mode" in "readfrom", "writeto" and "appendto" (for binary files). Roberto Ierusalimschy 1998-11-20 13:41:43 -02:00
  • 758e330d6e new functions "getn" and "foreachi" Roberto Ierusalimschy 1998-11-13 14:48:48 -02:00
  • 8e3bd752bb small optimization in "sort" + new functions "getn" and "foreachi" Roberto Ierusalimschy 1998-11-13 14:39:18 -02:00
  • a84bca67fc bug: gsub/strfind do not check whether captures are properly finished. Roberto Ierusalimschy 1998-11-10 17:38:12 -02:00
  • 4ccfb2f9bc "_TRIGMODE" was still being declared. Roberto Ierusalimschy 1998-09-08 16:25:35 -03:00
  • ce9609296c function "luaL_argerror" prints wrong argument number (from a user's point of view) when functions have upvalues. Roberto Ierusalimschy 1998-09-07 15:59:59 -03:00
  • b1450721be new function "lua_nups" (number of upvalues). Roberto Ierusalimschy 1998-09-07 15:59:59 -03:00
  • b04294d3d8 details. Roberto Ierusalimschy 1998-08-30 17:25:24 -03:00
  • 22c2704842 "lua_state" is already declared in lua.h, which is included here. Roberto Ierusalimschy 1998-08-30 15:28:58 -03:00
  • ee22af5ced new functions "seek" and "flush". Roberto Ierusalimschy 1998-08-24 17:14:56 -03:00
  • cc117253c8 new implementation for error handling: on error, function _ERRORMESSAGE is called, which in turn calls _ALERT to write a message to stderr. Roberto Ierusalimschy 1998-08-21 14:43:44 -03:00
  • 8e226e6a09 small bug: nuse may change when table is rehashed; 3/2 is a good fraction for hash limit (instead of 0.7, using floats) Roberto Ierusalimschy 1998-08-11 13:38:34 -03:00
  • 1d420c2c11 better error message for code too long (old one was misleading when the problem was SETLINE after 64k lines...) Roberto Ierusalimschy 1998-08-11 10:28:05 -03:00
  • 5378331f2d hash tables may shrink if use rate is too small. Roberto Ierusalimschy 1998-08-10 18:36:32 -03:00
  • 894a264671 new hash function. Roberto Ierusalimschy 1998-07-27 14:06:17 -03:00
  • e1a127245d details ("luaX_token2str" doesn't need LexState) Roberto Ierusalimschy 1998-07-24 15:02:38 -03:00
  • afb5ef72e1 new function "sort" + many small changes Roberto Ierusalimschy 1998-07-12 13:16:43 -03:00
  • 1d8edd347d small changes to use new auxiliar functions Roberto Ierusalimschy 1998-07-12 13:16:02 -03:00