Commit Graph

  • 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 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
  • 075b7918c3 new function "getintmethod" Roberto Ierusalimschy 1997-04-02 20:04:12 -03:00
  • 7c99149a76 "tostring" gives an overview of a userdata. Roberto Ierusalimschy 1997-04-02 19:53:35 -03:00
  • 27d95f1880 "newtag" does not need a type name. Roberto Ierusalimschy 1997-04-02 19:52:42 -03:00
  • f0d523887d lua_getuserdata must return NULL if object is not userdata Roberto Ierusalimschy 1997-04-02 14:44:18 -03:00
  • f29fbf2bf6 lua_getuserdata must return NULL if object is not userdata; small BUG: wrong error message for a=b[1] (b not a table) Roberto Ierusalimschy 1997-04-02 14:44:18 -03:00
  • 4355e1afcd "getbyte" returns userdata size when called without second parameter. Roberto Ierusalimschy 1997-04-02 14:44:18 -03:00
  • cae1eff901 small "bugs" detected by Purify: cannot read "next" after 0. Roberto Ierusalimschy 1997-04-01 18:23:20 -03:00
  • f83bc86e51 small "bugs" detected by Purify: some blocks may be smaller than sizeof(int). Roberto Ierusalimschy 1997-04-01 18:23:20 -03:00
  • 59744f0311 "storeglobal" changed to "setglobal" Roberto Ierusalimschy 1997-04-01 16:02:43 -03:00
  • bb2e2bec18 new lua function "tag" Roberto Ierusalimschy 1997-04-01 14:31:42 -03:00
  • efaaf99c42 first version of "setglobal" and "getglobal" internal methods. Roberto Ierusalimschy 1997-03-31 17:59:09 -03:00
  • f8a571ee35 some new options for warnings and optimizations. Roberto Ierusalimschy 1997-03-31 17:58:42 -03:00
  • 397e32399b update of ".h" dependencies Roberto Ierusalimschy 1997-03-31 11:23:49 -03:00
  • 373363cb69 new name for old "mem.h" (conflicts with some compiler libraries) Roberto Ierusalimschy 1997-03-31 11:19:01 -03:00
  • ad5574c4c9 "Object" renamed to "TObject" (Tagged Object), to avoid conflicts with pre-defined names in some C compilers. Roberto Ierusalimschy 1997-03-31 11:02:58 -03:00
  • 264f8c5e7b new (internal?) functions to manipulate userdata Roberto Ierusalimschy 1997-03-26 19:23:15 -03:00
  • 9e9e2ea287 BUG: must mark userdata in garbage collection. Roberto Ierusalimschy 1997-03-26 19:22:41 -03:00
  • 03d917f229 some corrections, improvements; Roberto Ierusalimschy 1997-03-24 14:13:22 -03:00
  • c3488f5115 must call "gc" i.m. for nil after all others. Roberto Ierusalimschy 1997-03-21 18:39:57 -03:00
  • 6fef372fb8 mathlib now uses i.m. for "pow" operator. Roberto Ierusalimschy 1997-03-21 15:37:28 -03:00
  • 052a1cc46c files now have proper tags. Roberto Ierusalimschy 1997-03-20 17:36:58 -03:00
  • ae067dcddd BUG: lua_newtag can be called before luaI_IMtable is initialized. Roberto Ierusalimschy 1997-03-20 17:36:19 -03:00
  • 5d60470508 i.m. "arith" and "order" splited for different operations Roberto Ierusalimschy 1997-03-20 16:20:43 -03:00
  • 88d7ffb0d0 luaI_type moved to fallback.c Roberto Ierusalimschy 1997-03-20 16:20:23 -03:00
  • 47527d2d3c setmethods should return old methods. Roberto Ierusalimschy 1997-03-19 18:12:34 -03:00
  • 1444d28476 first full implementation of internal methods Roberto Ierusalimschy 1997-03-19 16:41:10 -03:00
  • 2de803c250 new header 'auxlib.h' + new function luaL_verror Roberto Ierusalimschy 1997-03-18 12:30:50 -03:00
  • fa08b42dd8 new header for auxiliar functions. Roberto Ierusalimschy 1997-03-18 12:30:50 -03:00
  • eea734aa88 new module 'auxlib' centralizes functions to get/check parameters. Roberto Ierusalimschy 1997-03-17 14:02:29 -03:00
  • b6d91e24e2 "tag" changed to "ttype" (since now tag has other meaning) Roberto Ierusalimschy 1997-03-11 15:44:28 -03:00
  • a82ab0852e new explanation about communication between Lua and C. Roberto Ierusalimschy 1997-03-06 19:19:08 -03:00
  • b8af9c56c9 new form for constructors: {[exp] = exp, ...} Roberto Ierusalimschy 1997-03-06 14:30:55 -03:00
  • c3c0b52a1f atualization of #include dependencies. Roberto Ierusalimschy 1997-03-05 10:37:04 -03:00
  • ec422ec7d0 skips can be nested (why not?). Roberto Ierusalimschy 1997-03-05 10:32:41 -03:00
  • a8a15ff1bd "mem.c.debug" incorporated (with "#if"). Roberto Ierusalimschy 1997-03-03 16:55:38 -03:00
  • 131d66efd2 first step in implementing internal methods. Roberto Ierusalimschy 1997-02-26 14:38:41 -03:00
  • bbf1b3060a small correction. Roberto Ierusalimschy 1997-02-26 14:07:57 -03:00
  • 8b7f271ea2 new pattern item ".-"; empty patterns may be used in gsub. Roberto Ierusalimschy 1997-02-21 12:21:34 -03:00
  • bc323435ee new facilities for pattern matching (%b and .-); explanations about next-nextvar. Roberto Ierusalimschy 1997-02-21 12:19:37 -03:00
  • 6769f34817 lua_Type is private (preparation for tags) Roberto Ierusalimschy 1997-02-20 12:51:14 -03:00
  • 0b110f7922 small syntax error (yacc does not complain, but bison does). Roberto Ierusalimschy 1997-02-13 14:18:39 -02:00
  • 205ee1ec84 userdata can handle arbitrary binary data; user tag is stored with data; Roberto Ierusalimschy 1997-02-11 09:40:01 -02:00
  • b48847c5fa BUG: "inclinenumber" cannot use public buffer, since it could change the buffer pointer (luaY_lex and read_long_string have local pointers to it). Roberto Ierusalimschy 1997-02-07 11:49:46 -02:00
  • 1143bf9286 better check when converting from float to int, to avoid overflow (on some machines it may result in run-time error) Roberto Ierusalimschy 1997-01-31 12:27:11 -02:00
  • d9ecc13545 lhf revisions/sugestions Roberto Ierusalimschy 1997-01-23 14:17:53 -02:00
  • f00d692445 small correction to avoid "wrong" default action Roberto Ierusalimschy 1997-01-15 14:11:37 -02:00
  • d8b0bbb2ad BUG: pointer arithmetic does not have to work when pointing outside an array. Roberto Ierusalimschy 1996-11-22 11:08:28 -02:00
  • 1f4ee4a4d2 ANSI ctype only works for unsigned chars (or EOF) Roberto Ierusalimschy 1996-11-22 11:08:02 -02:00
  • 6a9efa8b8e useless include. Roberto Ierusalimschy 1996-11-22 11:07:20 -02:00
  • 65459e7938 small BUG: pragma deletes 0 at end of yytext, so a syntax error just after it may have a wrong token in message. Roberto Ierusalimschy 1996-11-21 12:44:04 -02:00
  • 42359b8b13 new version Roberto Ierusalimschy 1996-11-20 11:49:32 -02:00