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

Commit Graph

  • abbf14cd32 small optimizations; try to find previous use when coding a real constant. Roberto Ierusalimschy 1997-07-31 17:46:59 -03:00
  • e8292f076d new dependencies Roberto Ierusalimschy 1997-07-31 17:45:25 -03:00
  • 3037dccaf6 prime numbers spread better. Roberto Ierusalimschy 1997-07-31 17:44:46 -03:00
  • a7793468aa correct support for changing real to double (optional) Roberto Ierusalimschy 1997-07-31 16:37:37 -03:00
  • caa987faad "random" accepts an 'n' to return between 1 and 'n'. Roberto Ierusalimschy 1997-07-30 19:15:18 -03:00
  • 0892f0e5b7 BIG CHANGE: functions have their own "constant table". Roberto Ierusalimschy 1997-07-30 19:00:50 -03:00
  • 1d7857bc63 free(b) is equivalent to realloc(b, 0) Roberto Ierusalimschy 1997-07-30 15:29:08 -03:00
  • 72a1d81b51 bug: lua_getlocal breaks when called with a CFunction. Roberto Ierusalimschy 1997-07-29 18:11:10 -03:00
  • 2c580a0afb new way to handle global state during compilation. Roberto Ierusalimschy 1997-07-29 17:38:45 -03:00
  • 05e8b0ae80 new opcode, ENDCODE, to signal end of code vector. Roberto Ierusalimschy 1997-07-29 17:38:06 -03:00
  • 16dd77e8d9 unused field "size" in struct TFunc. Roberto Ierusalimschy 1997-07-29 16:44:02 -03:00
  • 0600f968c3 BUG: LUA_COMPAT2_5 written wrong... Roberto Ierusalimschy 1997-07-29 10:35:06 -03:00
  • 971b1d557d bug log. Most of the log is done automatically by RCS, and not in the file itself :-) Roberto Ierusalimschy 1997-07-29 10:34:15 -03:00
  • 11d97c34d5 skipping of '#' in first line is done by lex.c. Roberto Ierusalimschy 1997-07-29 10:33:15 -03:00
  • 66be42549e BUG: files starting with '#' get wrong line numbers Roberto Ierusalimschy 1997-07-07 18:05:51 -03:00
  • 067db30d71 "next" & "nextvar" check if argument is a result of previous calls Roberto Ierusalimschy 1997-07-07 13:44:26 -03:00
  • da4dbe65b2 new functionality for "format": "%d$...". Roberto Ierusalimschy 1997-07-04 19:35:38 -03:00
  • 4321fde2a7 error inside an error method could break the stack. Roberto Ierusalimschy 1997-07-04 11:55:37 -03:00
  • 8f3df1d471 small details. Roberto Ierusalimschy 1997-07-02 15:50:18 -03:00
  • 1a17211707 auxliar support for "locale" (to avoid portability problems) Roberto Ierusalimschy 1997-07-02 15:45:09 -03:00
  • d56e3a6481 "locale" support + better uniformity in formating Roberto Ierusalimschy 1997-07-02 14:09:48 -03:00
  • 7820a47184 LOCALE support Roberto Ierusalimschy 1997-07-01 16:32:41 -03:00
  • 88b185ada1 more uniform source (more macros...) Roberto Ierusalimschy 1997-07-01 14:41:34 -03:00
  • ef3c45d523 for security reasons, one cannot change the tag of a udata from Lua. v3.0 Roberto Ierusalimschy 1997-06-27 19:38:49 -03:00
  • 20a48a818f a file handle must be a userdata. Roberto Ierusalimschy 1997-06-27 19:38:49 -03:00
  • c9e6ed1d9f small corrections. Roberto Ierusalimschy 1997-06-27 15:39:34 -03:00
  • 56fdab67d8 believe it or not, this makes a difference... Roberto Ierusalimschy 1997-06-26 18:40:57 -03:00
  • 3a98c8670d new name for _VERSION (standard of _UPPERCASES for pre-defined global variable) Roberto Ierusalimschy 1997-06-26 17:47:43 -03:00
  • da585783e3 new method to handle current files, with global variables _INPUT and _OUTPUT. Roberto Ierusalimschy 1997-06-26 17:39:10 -03:00
  • e81f184164 new #define LUA_COMPAT2_5 to select "compatibility mode". Roberto Ierusalimschy 1997-06-23 15:27:53 -03:00
  • 3e43275308 incompatibilities with 2.5 + restrictions on tag methods Roberto Ierusalimschy 1997-06-20 16:28:16 -03:00
  • f97307b548 zio should not care about how a user creates a FILE (pipe, socket, popen, etc). Roberto Ierusalimschy 1997-06-20 16:25:54 -03:00
  • 6402bfb1f8 better error message for dostring (2nd argument) Roberto Ierusalimschy 1997-06-20 16:19:09 -03:00
  • 27b6bbdcf3 "testC" inactive (active only for tests) Roberto Ierusalimschy 1997-06-19 15:55:40 -03:00
  • 5a198de3c1 new prefix luaZ Roberto Ierusalimschy 1997-06-19 15:55:28 -03:00
  • c5d7ba7347 dostring has an optional error method argument Roberto Ierusalimschy 1997-06-19 15:49:40 -03:00
  • f84c2ebc4a dostring has an optional error method argument; counter for gsub only when there is a table (to keep full compatibility) Roberto Ierusalimschy 1997-06-19 15:49:40 -03:00
  • c8897f2b08 counter for gsub only when there is a table (to keep full compatibility) Roberto Ierusalimschy 1997-06-19 15:49:40 -03:00
  • 6bb2cac3db setparsedfile is extern; luaz_... changed to luaZ_... Roberto Ierusalimschy 1997-06-19 15:04:34 -03:00
  • 88f020b626 new interface to "lua_seterrormethod" and "lua_settagmethod", to allow the use of Lua functions too. Roberto Ierusalimschy 1997-06-19 15:03:04 -03:00
  • a38f093f05 luaI_initTFunc initializes fileName. Roberto Ierusalimschy 1997-06-19 14:46:12 -03:00
  • b6adfdd01b gsub aborts if error occurs. Roberto Ierusalimschy 1997-06-19 14:45:28 -03:00
  • b90b4bbd3a macros don't need prototypes. Roberto Ierusalimschy 1997-06-18 18:39:56 -03:00
  • f6d95140ae using old version functions. Roberto Ierusalimschy 1997-06-18 18:20:45 -03:00
  • eca17b24ea #if wraps compatibility issue Roberto Ierusalimschy 1997-06-18 18:20:45 -03:00
  • 6b61582e47 do not use $...$ to italic. Roberto Ierusalimschy 1997-06-18 18:11:53 -03:00
  • 60bdc370d9 new functions lua_doFILE and lua_dobuffer to help users... Roberto Ierusalimschy 1997-06-18 17:35:49 -03:00
  • b9e31f73ee exported functions follow "lua" prefix rule. Roberto Ierusalimschy 1997-06-18 17:30:52 -03:00
  • ea98620d98 new arguments for gsub Roberto Ierusalimschy 1997-06-18 17:15:47 -03:00
  • 6b78040840 lhf corrections + new gsub Roberto Ierusalimschy 1997-06-18 17:14:52 -03:00
  • e931c7c0f6 error message always shows file names. Roberto Ierusalimschy 1997-06-18 14:33:30 -03:00
  • 70160320b1 first version for Lua 3.0 (with tag methods, etc) Roberto Ierusalimschy 1997-06-17 15:45:16 -03:00
  • bfbf56f15a extra parameter for "call" is "pack" or "plain". Roberto Ierusalimschy 1997-06-17 15:44:31 -03:00
  • 732ef82c72 "luaI_undump1" cannot be static; luac uses it. Roberto Ierusalimschy 1997-06-17 15:19:17 -03:00
  • 2a1da64872 "lua_getobjname" must return "tag-method" and not "fallback". Roberto Ierusalimschy 1997-06-17 15:09:31 -03:00
  • 3c5d71cf77 "nil" may have fallbacks too. Roberto Ierusalimschy 1997-06-17 14:27:07 -03:00
  • 1848bcc15b "strsub" accepts negative indices (count from the end of the string). Roberto Ierusalimschy 1997-06-16 17:29:59 -03:00
  • 4d2de484f6 "lua_seterrormethod" should return the previous handler. Roberto Ierusalimschy 1997-06-16 16:48:18 -03:00
  • 312f78d925 default error method is not nil (nil does nothing). Roberto Ierusalimschy 1997-06-16 15:43:19 -03:00
  • e4b69d6c9c "order" and "concat" operations choose tag methods the same way that "arith" operations do (first the first parameter, etc). Roberto Ierusalimschy 1997-06-16 15:42:32 -03:00
  • c9a2dfeb2c using "zio" for parsing Lua code. Roberto Ierusalimschy 1997-06-16 13:50:22 -03:00
  • 9fe5be3acf library for uniform buffered input. Roberto Ierusalimschy 1997-06-16 13:50:22 -03:00
  • 611680af08 functions "lua_settagmethod" and similars should be safe too. Roberto Ierusalimschy 1997-06-12 15:27:29 -03:00
  • cb1d8f0fa0 missing small dependency. Roberto Ierusalimschy 1997-06-11 15:57:00 -03:00
  • 33f4fef410 BUG: did not handle properly pragmas $endinput/$debug inside a $if. Roberto Ierusalimschy 1997-06-11 15:56:02 -03:00
  • e77534c08f small 'improvement' Roberto Ierusalimschy 1997-06-11 11:24:40 -03:00
  • a22b54bbb6 format more uniform, to facilitate filters .tex->.html Roberto Ierusalimschy 1997-06-09 15:16:33 -03:00
  • 414ebe8ce1 power method (^) acts only in numbers. Roberto Ierusalimschy 1997-06-09 14:30:10 -03:00
  • 33ace03b5a udata is just void * again, so there is no point for function "getbyte". Roberto Ierusalimschy 1997-06-09 14:29:45 -03:00
  • 085181a08a new function "testC", to help debug the API. Roberto Ierusalimschy 1997-06-09 14:29:16 -03:00
  • dd22ea4da5 new implementation for udata (again they are just void *); new implementation for the API: most operations now do not disturb structures lua2C and C2lua. Roberto Ierusalimschy 1997-06-09 14:28:14 -03:00
  • 5fdcfeb353 new lua_Objects are created below the C2lua stack, so most API functions don't need to adjust stack. Roberto Ierusalimschy 1997-06-06 17:54:40 -03:00
  • d68d8287aa new lua_Objects are created below the C2lua stack, so most API functions don't need to adjust stack. So lua_getref does not change the stack, and lua_pushref can use it as a macro. Roberto Ierusalimschy 1997-06-06 17:54:40 -03:00
  • e1249970c2 new API function to force garbage collection. Roberto Ierusalimschy 1997-05-26 11:42:51 -03:00
  • 9d6f4e48a6 unused declaration. Roberto Ierusalimschy 1997-05-26 11:42:36 -03:00
  • b546a042e8 another (better?) implementation for "pushsubscript". Roberto Ierusalimschy 1997-05-26 11:23:55 -03:00
  • bd9e68cfcd new implementation of gc: "Pre-collect" garbage in temporary lists and then call fallbacks. Roberto Ierusalimschy 1997-05-14 15:38:29 -03:00
  • 9747f3c87a double hashing + tables do not grow if there are empty slots Roberto Ierusalimschy 1997-05-08 17:43:30 -03:00
  • 12d9731a49 bug: string table must be initialized. Roberto Ierusalimschy 1997-05-05 17:21:23 -03:00
  • 4aade854bb correction of name (and "iternal" was wrong, any way). Roberto Ierusalimschy 1997-04-30 16:55:47 -03:00
  • 369dd65318 small optimization in the access to i.m. table. Roberto Ierusalimschy 1997-04-24 19:59:57 -03:00
  • 209602ac31 BUG: input file must be closed just after parser. Roberto Ierusalimschy 1997-04-15 14:32:47 -03:00
  • 6251d889ca missing definition of "lua_storesubscript", for compatibility Roberto Ierusalimschy 1997-04-15 13:52:20 -03:00
  • faec0b0824 new pragma "$endinput" Roberto Ierusalimschy 1997-04-14 16:08:09 -03:00
  • 64d93e7cf9 global variables (in $if) may have '_'. Roberto Ierusalimschy 1997-04-14 12:30:29 -03:00
  • d73c5bcfe7 function name is only needed *if* there is an error. Roberto Ierusalimschy 1997-04-14 12:30:03 -03:00
  • e78c1c54aa mem.h is now luamem.h removed warn added support for new opcodes (VARARGS, STOREMAP) better error messages with luaL_verror v3.0-alpha Luiz Henrique de Figueiredo 1997-04-14 09:12:40 -03:00
  • 42049b42f1 fix comment in VERSION Luiz Henrique de Figueiredo 1997-04-14 09:12:40 -03:00
  • a8cd072c76 nested "$if's", "$else", and "$if" constants (nil & 1). Roberto Ierusalimschy 1997-04-12 12:01:49 -03:00
  • 83e9897cf0 correction on comments about opcodes. Roberto Ierusalimschy 1997-04-11 18:34:53 -03:00
  • f93704728f one cannot "create" a userdata. Roberto Ierusalimschy 1997-04-08 12:41:44 -03:00
  • c9e3d32182 first implementation of "$if"; new function "findstring" (useful in good places) Roberto Ierusalimschy 1997-04-07 11:48:53 -03:00
  • 00050b8a6b detail: local names Roberto Ierusalimschy 1997-04-06 11:17:06 -03:00
  • 19a1e19ae1 detail: better way to put a "..." in message. Roberto Ierusalimschy 1997-04-06 11:14:27 -03:00
  • 3a9516ffc8 luaL check functions do not need the function name (it can be accessed via luadebug interface). Roberto Ierusalimschy 1997-04-06 11:08:08 -03:00
  • 42fa305649 better error messages; better names for some API functions. Roberto Ierusalimschy 1997-04-04 19:24:51 -03:00
  • 9319735744 using new lib auxlib. Roberto Ierusalimschy 1997-04-04 12:35:37 -03:00
  • 1ea6e8064c "setintmethod" returns old method (to be coerent with seterrormethod). BUG: wrong pointer arithmetic (index out of range when comparing). obs: version 4 is due to internal methods. Roberto Ierusalimschy 1997-04-03 15:27:06 -03:00
  • c1746340c3 obs: version 4 is due to internal methods. (some small details in comments) Roberto Ierusalimschy 1997-04-03 15:26:08 -03:00
  • d0339e7b72 "setintmethod" returns old method (to be coerent with seterrormethod). obs: version 2 is due to internal methods. Roberto Ierusalimschy 1997-04-03 15:24:23 -03:00