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

Commit Graph

  • f1a1eda7c5 old trick in "strsub" does not work with new hash table for strings. Roberto Ierusalimschy 1996-02-12 15:34:44 -03:00
  • 41259bff31 BIG CHANGE: new data structure for constants, strings and globals, using an array of hash tables for all them. Roberto Ierusalimschy 1996-02-12 15:32:40 -03:00
  • afaa98a666 no more "lua_pushliteral". Roberto Ierusalimschy 1996-02-12 15:32:09 -03:00
  • 73be918285 a backslash followed by a newline allows the newline to go into a string. Roberto Ierusalimschy 1996-02-09 17:35:23 -02:00
  • ca412214cb new function "date", replaces old "date" and "time". Roberto Ierusalimschy 1996-02-09 17:02:30 -02:00
  • 801722825d "lua_check_number" accepts strings convertible to numbers. Roberto Ierusalimschy 1996-02-09 17:00:23 -02:00
  • 3abc25fa54 new functions "random" and "randomseed". Roberto Ierusalimschy 1996-02-09 15:21:27 -02:00
  • f4d67761f1 new section describing the debug interface. Roberto Ierusalimschy 1996-02-09 14:37:58 -02:00
  • 369c5fe3c0 lock mechanism more robust; nil is pseudo-locked under index -1. Roberto Ierusalimschy 1996-02-08 17:08:34 -02:00
  • 7918c6cf11 small bug Roberto Ierusalimschy 1996-02-08 16:14:17 -02:00
  • 826d70fcba new type lua_Function for activation records Roberto Ierusalimschy 1996-02-08 15:03:20 -02:00
  • bbb23048e3 correction of dependencies (include's). Roberto Ierusalimschy 1996-02-07 16:14:38 -02:00
  • 5a3a1fe458 debug interface functions to manipulated local variables: "lua_getlocal" and "lua_setlocal". Roberto Ierusalimschy 1996-02-07 16:10:27 -02:00
  • 56fb06b6f5 "lua_debug" now is exported through debug interface (luadebug.h) Roberto Ierusalimschy 1996-02-07 12:14:40 -02:00
  • 995a9f7188 no more "Bool" type Roberto Ierusalimschy 1996-02-07 12:13:17 -02:00
  • a0ef046ef1 elimination of unused declarations (left from old modifications) Roberto Ierusalimschy 1996-02-06 14:18:21 -02:00
  • 5fa51fc426 new option "q" in function "write", to write literal strings. Roberto Ierusalimschy 1996-02-05 19:32:19 -02:00
  • 15057aa0a4 new examples showing data structures and object-oriented programming. generic improvements and corrections. Roberto Ierusalimschy 1996-02-05 12:52:47 -02:00
  • 1431b52e76 improve of compiling error messages. Roberto Ierusalimschy 1996-02-05 11:26:01 -02:00
  • 98fe770cab small bug Roberto Ierusalimschy 1996-02-04 14:59:12 -02:00
  • 43382ce5a2 new fallback "getglobal". Roberto Ierusalimschy 1996-01-30 13:25:23 -02:00
  • abfebf1e21 new example showing how to build modules. Roberto Ierusalimschy 1996-01-30 13:24:49 -02:00
  • b1c02c7f00 new fallback "getglobal". modifications to generate an index (not automatically yet). Roberto Ierusalimschy 1996-01-30 10:55:10 -02:00
  • 84df3ac267 new functions "tostring", "assert", and "format". Roberto Ierusalimschy 1996-01-29 15:08:23 -02:00
  • 55a70c9719 "read('s')" was "eating" delimiter. Roberto Ierusalimschy 1996-01-29 14:40:09 -02:00
  • 0d50b87aa4 lua_table now has references to global variable names (TreeNode's). Roberto Ierusalimschy 1996-01-26 16:03:19 -02:00
  • 19290a8e92 "dofile" issues an error when called with non string arguments, and runs stdin when called without arguments. Roberto Ierusalimschy 1996-01-26 14:52:47 -02:00
  • d845963349 "setglobal" and "getglobal" moved to inout.c, as it concentrates pre-defined library. new function "assert". Roberto Ierusalimschy 1996-01-26 12:05:28 -02:00
  • 8dae4657a1 "setglobal" and "getglobal" moved to inout.c, as it concentrates pre-defined library. Roberto Ierusalimschy 1996-01-26 12:04:32 -02:00
  • ca7be1cfeb elimination of function "int2str", as it can be replaced by "format('%c', .)" Roberto Ierusalimschy 1996-01-26 10:11:28 -02:00
  • 445872a6e2 "dofile" does not issue a warning when unable to open the file, but only returns an error code. Roberto Ierusalimschy 1996-01-23 16:43:07 -02:00
  • 3681d025ac new function "assert" Roberto Ierusalimschy 1996-01-23 16:39:45 -02:00
  • 2998049f51 local variable stack needs only the name of the variable (TreeNode); this way is simpler and faster than old way. Roberto Ierusalimschy 1996-01-23 15:50:29 -02:00
  • 24ccc7c038 correction of some order dependencies in debug code. Roberto Ierusalimschy 1996-01-22 16:39:37 -02:00
  • be48c4d91e add_char now is global. time returns week-day. Roberto Ierusalimschy 1996-01-22 15:46:55 -02:00
  • a19f9056f3 new function "tostring". Roberto Ierusalimschy 1996-01-22 15:40:00 -02:00
  • 5b71ab780c add_char now is global. new function format. Roberto Ierusalimschy 1996-01-22 15:38:57 -02:00
  • 481bafd581 add_char now is global. Roberto Ierusalimschy 1996-01-22 15:38:57 -02:00
  • e74b250d71 memory overflow tries a garbage collection; if it fails then exit the program. Roberto Ierusalimschy 1996-01-22 12:15:13 -02:00
  • cd54c95ee1 bug: "read" with format MUST read given number of chars (if file ends before that reports an error, returning nil). "readuntil" can be called with nil or no parameters to read until EOF. Roberto Ierusalimschy 1996-01-12 15:00:30 -02:00
  • bf006eeaf5 "getobjectname" got a "lua_" prefix. Roberto Ierusalimschy 1996-01-09 18:23:19 -02:00
  • b2afc410fa hooks for line change and function calls; first version. Roberto Ierusalimschy 1996-01-09 18:22:44 -02:00
  • 19cfa32393 correction of dependencies from "luadebug.h". Roberto Ierusalimschy 1996-01-09 18:22:08 -02:00
  • 27ae8432b6 names generated by yacc (starting with "yy") are changed to start with "luaY_", to avoid name clashes with hosts using yacc. Roberto Ierusalimschy 1995-12-21 14:14:04 -02:00
  • 415ee250b5 bug: luaI_findconstantbyname may change the value of lua_constant. Roberto Ierusalimschy 1995-12-18 14:47:29 -02:00
  • f188e1000b useless "#include math.h" v2.2 Roberto Ierusalimschy 1995-11-16 18:46:24 -02:00
  • 07d64e78b6 reference manual Roberto Ierusalimschy 1995-11-16 18:46:02 -02:00
  • fa649fbc26 new distribution Roberto Ierusalimschy 1995-11-13 13:36:52 -02:00
  • 0c3e0fd95d "read" must return 'nil' on EOF. Roberto Ierusalimschy 1995-11-10 16:32:59 -02:00
  • 3bb6443131 changes to improve portability Roberto Ierusalimschy 1995-11-10 15:56:06 -02:00
  • f57afd6e32 re-implementation of functions "write" and "read" Roberto Ierusalimschy 1995-11-10 15:55:48 -02:00
  • 5f664a4516 error functions are shared by all libraries Roberto Ierusalimschy 1995-11-10 15:54:31 -02:00
  • 87fe07c0d4 little improvement Roberto Ierusalimschy 1995-11-10 12:12:02 -02:00
  • f9a9bd77e4 print_stack now gets a parameter (file to print); small changes. Roberto Ierusalimschy 1995-11-03 13:43:50 -02:00
  • 63b8a6fd20 "getobjname" checks first fallbacks (so, if a function is global and a fallback, it is reported as a fallback). Roberto Ierusalimschy 1995-11-03 13:30:50 -02:00
  • 024f2374ab "AUTHORS" separated from COPYRIGHT. Roberto Ierusalimschy 1995-10-31 15:05:35 -02:00
  • 9d9f9c48ff local variables may appear inside blocks in main code. Roberto Ierusalimschy 1995-10-26 15:02:50 -02:00
  • 15d48576ea functions now may be declared with any "var" as a name; therefore they do not have a "baptism" name. Changes in debug API to acomodate that. Roberto Ierusalimschy 1995-10-26 12:21:56 -02:00
  • 39b071f7b1 new syntax for function declarations: "function a.x () ... " new semantics for function declarations: function f () is valid only at run-time. Roberto Ierusalimschy 1995-10-25 12:33:25 -02:00
  • 9efc257d9d new method to keep debug line information: current line is stored on the Lua stack, just below (new) base, with tag LUA_T_LINE. SETLINE opcodes are generated by lex. Roberto Ierusalimschy 1995-10-25 11:05:51 -02:00
  • fa71304e54 "dofile" now accepts NULL as parameter, to run stdin. Roberto Ierusalimschy 1995-10-23 11:54:11 -02:00
  • b5745d11cd uses "isatty" to check if executes stdin line by line or as a file. Roberto Ierusalimschy 1995-10-23 11:54:11 -02:00
  • ebcf546a55 small changes in the format of debug information. Roberto Ierusalimschy 1995-10-23 11:53:48 -02:00
  • 2b45f8967c small bug Roberto Ierusalimschy 1995-10-17 16:16:58 -02:00
  • a66404aca6 function "setfallback" now gives an error if called with wrong parameters. Roberto Ierusalimschy 1995-10-17 12:30:05 -02:00
  • d80659759b new module luadebug.h. Roberto Ierusalimschy 1995-10-17 12:12:45 -02:00
  • d24253d92f module to declare API for debuging. Roberto Ierusalimschy 1995-10-17 12:12:45 -02:00
  • 2cffb08a5c new style for debug information about functions: no more SETFUNCTION opcodes. When a function is called, its entry in the stack is marked with LUA_T_(C)MARK, so function 'luaD_stackedfunction' can find it if needed. Functions now have their file names in the headers, so there is no need of 'addfile' and the like. Roberto Ierusalimschy 1995-10-17 09:58:41 -02:00
  • 15f40fddca 'nextvar' now traverses the symbol array, instead of the constant tree. Roberto Ierusalimschy 1995-10-17 09:53:53 -02:00
  • 970995c3f2 'luaI_travfallbacks' now can look for a fallback. Roberto Ierusalimschy 1995-10-17 09:52:38 -02:00
  • b17c76817d new function "luaI_findconstantbyname". Roberto Ierusalimschy 1995-10-13 12:16:25 -03:00
  • b074306267 bug. "fgets" reads n-1 chars. Roberto Ierusalimschy 1995-10-11 17:50:56 -03:00
  • 3c75b75516 new module "func", for GC of functions, and new "defines" for configuration setup. Roberto Ierusalimschy 1995-10-09 15:51:49 -03:00
  • 36a7fda014 bug: stack overflow error must leave space on the stack for error function. Roberto Ierusalimschy 1995-10-09 15:45:59 -03:00
  • 1bb3fb73cc fallback table now has number of parameters and results of each fallback. This information is used by opcode.c, when calling a fallback. Roberto Ierusalimschy 1995-10-09 10:14:29 -03:00
  • 7e01348658 "docall" now assumes that called function is always on the stack, just below "base". That gives more regularity for the stack shape, and prevents fallbacks of being garbage collected if they are redefined during execution. Roberto Ierusalimschy 1995-10-09 10:10:20 -03:00
  • 28b3017baf lua function "type" now returns the string "function" both for lua functions and c functions. Roberto Ierusalimschy 1995-10-09 10:06:20 -03:00
  • ae808860ae new functions: "ascii" and "int2str", small "re-engineering" on parameter checking. Roberto Ierusalimschy 1995-10-09 09:49:21 -03:00
  • a47e8c7dd0 small "re-engineering" on parameter checking. correction of function "atan2". Roberto Ierusalimschy 1995-10-09 09:48:38 -03:00
  • 79ce619876 new command line options: -v to print Copyright message, and - to read stdin. Roberto Ierusalimschy 1995-10-06 11:11:40 -03:00
  • 233f0b0cc7 definitions for Copyright and version notices Roberto Ierusalimschy 1995-10-06 11:11:10 -03:00
  • 025589f772 nova forma de comentarios: de '#' ate' fim de linha (para uso de lua como shell) Roberto Ierusalimschy 1995-10-06 10:10:53 -03:00
  • 68f337dfa6 Garbage collection of functions + header structure for functions Roberto Ierusalimschy 1995-10-04 14:13:02 -03:00
  • f132ac03bc Module to manipulate function headers. Roberto Ierusalimschy 1995-10-04 11:20:26 -03:00
  • ec785a1d65 new option for "writeto" and "readfrom", to allow piped I/O on machines that support it. Roberto Ierusalimschy 1995-10-04 10:53:10 -03:00
  • e0621e6115 new function "atan2". Roberto Ierusalimschy 1995-10-04 10:52:09 -03:00
  • 38411aa102 small correction to avoid problems with DOS/Windows Roberto Ierusalimschy 1995-10-03 15:06:10 -03:00
  • 3ec4f4eb86 small corrections to avoid warnings. Roberto Ierusalimschy 1995-10-02 14:03:33 -03:00
  • 367139c6d9 buffer for literals now grows dynamically, allowing big programs between [[ and ]]. Roberto Ierusalimschy 1995-09-15 17:48:26 -03:00
  • 457bac94ce small corrections to avoid uninitialized global variables. Roberto Ierusalimschy 1995-09-15 17:47:53 -03:00
  • bcf46ee83b new syntax for strings: [[ ... ]]. Still in tests, since the code does not check buffer overflow. Roberto Ierusalimschy 1995-07-06 14:47:08 -03:00
  • 97b2fd1ba1 syntax for {...;...} is more flexible now. Roberto Ierusalimschy 1995-06-08 16:47:28 -03:00
  • e13753e2fb Ajustar limites para garbage collection. Waldemar Celes 1995-05-16 16:23:55 -03:00
  • ec79f25286 new lua function "getstack"; new interface to function luaI_reportbug. Roberto Ierusalimschy 1995-05-16 14:23:58 -03:00
  • 18ea2eff80 calls to "lua_reportbug" changed to "lua_error", since "lua_reportbug" is only an internal function to build debug information Roberto Ierusalimschy 1995-05-02 15:43:03 -03:00
  • 8156604823 run-time stack now is controled at run time, instead of compilation time. Waldemar Celes 1995-04-11 14:56:30 -03:00
  • 36b6fdda83 function "type" now returns a second result: the tag of the type, so lua can discriminate different kinds of user data. Roberto Ierusalimschy 1995-03-17 17:42:20 -03:00
  • 3c67d2595b error message buffer got a bigger size Waldemar Celes 1995-03-17 17:27:11 -03:00
  • 2043a0ca30 adjust checks if stack has enough space Roberto Ierusalimschy 1995-02-10 10:51:29 -02:00
  • 0761c4c036 included string.h v2.1 Luiz Henrique de Figueiredo 1995-02-07 14:04:15 -02:00