Commit Graph

  • 041cb96992 small bug: `write' must return three values in case of errors Roberto Ierusalimschy 2002-12-04 13:17:36 -02:00
  • c75c3cfd19 avoid names `str...' (may conflict with string.h) Roberto Ierusalimschy 2002-12-02 10:06:10 -02:00
  • 24471525d7 details Roberto Ierusalimschy 2002-12-02 10:06:10 -02:00
  • 1f55dbc699 details Roberto Ierusalimschy 2002-11-26 10:53:29 -02:00
  • c194a46bc5 detail Roberto Ierusalimschy 2002-11-26 06:59:48 -02:00
  • 8954bdc706 new `coroutine.status' function Roberto Ierusalimschy 2002-11-26 06:45:36 -02:00
  • 5a228bb1d8 new function `lua_version' Roberto Ierusalimschy 2002-11-25 15:50:14 -02:00
  • 5f698f8b6f simpler interface to hooks + use of `int' to count hooks Roberto Ierusalimschy 2002-11-25 15:47:13 -02:00
  • 9b1c586b2f renaming stringdump' -> string.dump' Roberto Ierusalimschy 2002-11-25 15:33:33 -02:00
  • d9340154ac `__tostring' for files + small bug (could do invalid read inside a userdata when it was not a file) Roberto Ierusalimschy 2002-11-25 13:05:39 -02:00
  • e47baca75a warnings from Visual C++ Roberto Ierusalimschy 2002-11-25 10:38:47 -02:00
  • b8a680c114 resets hook count even in case of errors Roberto Ierusalimschy 2002-11-25 09:20:29 -02:00
  • 709b27b456 ULONG_MAX>>10 may not fit into an int Roberto Ierusalimschy 2002-11-25 09:16:48 -02:00
  • dbc5451bea comments Roberto Ierusalimschy 2002-11-22 16:01:46 -02:00
  • 2d2d45976c separated control over C recursion level Roberto Ierusalimschy 2002-11-22 15:16:52 -02:00
  • 0050d983fc make more clear "primitive" recursive definitions Roberto Ierusalimschy 2002-11-22 14:42:53 -02:00
  • 04b143ddf9 avoid C stack overflow during parsing Roberto Ierusalimschy 2002-11-22 14:35:20 -02:00
  • 007f229568 detail Roberto Ierusalimschy 2002-11-22 11:59:04 -02:00
  • 84488c5670 small bug: previous call may change `base' Roberto Ierusalimschy 2002-11-21 15:19:42 -02:00
  • 5142e630bf new macro `condhardstacktests' to control hard stack tests Roberto Ierusalimschy 2002-11-21 15:19:11 -02:00
  • 010bbd9d9c simpler definition for incr_top Roberto Ierusalimschy 2002-11-21 14:46:16 -02:00
  • be00cd2a6b easier way to keep `base' correct Roberto Ierusalimschy 2002-11-21 13:46:44 -02:00
  • 2e4e888de0 Lua functions must have a frame or a saved pc. Roberto Ierusalimschy 2002-11-21 13:46:20 -02:00
  • ddc144e4d2 keep L->ci->base in L->base for faster access Roberto Ierusalimschy 2002-11-21 13:16:04 -02:00
  • b48c6e7680 no problem keeping some dead meat while doing collection Roberto Ierusalimschy 2002-11-21 12:18:01 -02:00
  • aff97fffc4 C functions cannot increase its top without filling the stack Roberto Ierusalimschy 2002-11-21 12:17:15 -02:00
  • 1648674653 must check GC every time it can create new objects Roberto Ierusalimschy 2002-11-21 12:16:52 -02:00
  • d404f0c276 global_State must be deallocated (and so allocated) with NULL also (otherwise it trys to decrement inside itself after its own free) Roberto Ierusalimschy 2002-11-21 12:14:42 -02:00
  • 48e42261ac details Roberto Ierusalimschy 2002-11-19 15:42:32 -02:00
  • be762f38bd better organization of "malloc responsabilities" Roberto Ierusalimschy 2002-11-19 12:12:13 -02:00
  • c8a79057f7 option -l does a require', instead of dofile' Roberto Ierusalimschy 2002-11-19 11:49:43 -02:00
  • 642af82e81 small bugs (state could keep its CI_HASFRAME attribute after returning) Roberto Ierusalimschy 2002-11-19 06:50:56 -02:00
  • 636c629e56 new assertions Roberto Ierusalimschy 2002-11-18 16:45:38 -02:00
  • 96ba5d0bc2 include file name in error messages Roberto Ierusalimschy 2002-11-18 14:53:19 -02:00
  • f0185f7628 support for tests of yield inside hooks + better support for tests with valgrind and other memory checkers Roberto Ierusalimschy 2002-11-18 13:24:27 -02:00
  • 9bab2cf55d support for yield inside hooks Roberto Ierusalimschy 2002-11-18 13:24:11 -02:00
  • c4ae00a3d1 details Roberto Ierusalimschy 2002-11-18 13:23:43 -02:00
  • f4d3bc52f4 towards 5.0 beta Roberto Ierusalimschy 2002-11-18 12:39:34 -02:00
  • 18765d900e messages Roberto Ierusalimschy 2002-11-18 09:20:01 -02:00
  • 43013b39cc new representation for hooks (to allow asynchronous calls to sethook) Roberto Ierusalimschy 2002-11-18 09:01:55 -02:00
  • 94912d99fc details Roberto Ierusalimschy 2002-11-14 14:59:16 -02:00
  • b40c9f7a3c better code to signal write barriers Roberto Ierusalimschy 2002-11-14 14:16:21 -02:00
  • 41fd639cab documentation for write barriers Roberto Ierusalimschy 2002-11-14 14:15:53 -02:00
  • a845a46cc8 C function may leave garbage on the stack (besides return values) Roberto Ierusalimschy 2002-11-14 13:42:05 -02:00
  • 097edd3884 better names for auxiliar functions Roberto Ierusalimschy 2002-11-14 13:41:38 -02:00
  • 5c5d9b2703 back to `__mode' metafield to specify weakness Roberto Ierusalimschy 2002-11-14 10:01:35 -02:00
  • 43d1a6af12 detail Roberto Ierusalimschy 2002-11-14 09:51:23 -02:00
  • 3010eb0536 all objects with several children (tables, closures, stacks, prototypes) go to `gray' queue Roberto Ierusalimschy 2002-11-13 09:49:19 -02:00
  • 2f91f95d94 better control over GCObjects Roberto Ierusalimschy 2002-11-13 09:32:26 -02:00
  • 42dd080a2e details Roberto Ierusalimschy 2002-11-12 12:34:18 -02:00
  • 9957f7d598 better way to open libraries Roberto Ierusalimschy 2002-11-11 11:28:06 -02:00
  • ac27b7a842 avoid traversing extra elements when cleaning weak tables Roberto Ierusalimschy 2002-11-11 09:52:43 -02:00
  • 81e142fc14 detail (`key' is always on stack) Roberto Ierusalimschy 2002-11-07 14:03:33 -02:00
  • 63633c5b5f better name for `lua_movethread' Roberto Ierusalimschy 2002-11-07 13:39:23 -02:00
  • dff9be4224 new macros to distinguish different types of object moves (for future GC evolution). Roberto Ierusalimschy 2002-11-07 13:37:10 -02:00
  • 118347d8c3 new API for coroutines Roberto Ierusalimschy 2002-11-06 17:08:00 -02:00
  • 6820da5096 detail Roberto Ierusalimschy 2002-11-04 10:31:44 -02:00
  • c3eb4675b9 new module, ldump.c Roberto Ierusalimschy 2002-10-25 18:38:17 -03:00
  • 7e0f880bc5 C++ demands cast from void to specific types Roberto Ierusalimschy 2002-10-25 18:36:54 -03:00
  • 118e9cd843 new facility for dumping chunks Roberto Ierusalimschy 2002-10-25 18:31:28 -03:00
  • de00d0d0ad module for dumping chunks Roberto Ierusalimschy 2002-10-25 18:31:28 -03:00
  • 1713b64065 Writer type must be public (so, in lua.h) Roberto Ierusalimschy 2002-10-25 18:30:49 -03:00
  • 671dc6eec2 new version (from lhf) Roberto Ierusalimschy 2002-10-25 18:30:41 -03:00
  • e356a43dc0 C needs "union" (unlike C++) Roberto Ierusalimschy 2002-10-25 18:30:00 -03:00
  • f36038e42a assertion must be always valid (not only in debug mode) Roberto Ierusalimschy 2002-10-25 18:29:20 -03:00
  • 96e15b8501 threads now are real Lua objects, subject to garbage collection Roberto Ierusalimschy 2002-10-25 17:05:28 -03:00
  • 0fd91b1b08 optional limits for table.concat Roberto Ierusalimschy 2002-10-23 16:08:23 -03:00
  • a2b353e044 details Roberto Ierusalimschy 2002-10-23 16:08:13 -03:00
  • 92a2ef9dca field `__globals' protect global tables Roberto Ierusalimschy 2002-10-22 16:41:08 -03:00
  • 4fb9110a6e tests for compatibility functions lua_dostring/lua_dofile Roberto Ierusalimschy 2002-10-22 15:07:55 -03:00
  • 11886dc7b0 print error on stderr when _ALERT is not defined Roberto Ierusalimschy 2002-10-22 15:07:55 -03:00
  • 81bc5711a8 only one instance of registry and default metatable per global state Roberto Ierusalimschy 2002-10-22 14:58:14 -03:00
  • 6a77a6b73f avoid too much precision when printing numbers Roberto Ierusalimschy 2002-10-22 14:21:25 -03:00
  • 84e0b1bc97 small changes in type configuration facilities Roberto Ierusalimschy 2002-10-22 14:18:28 -03:00
  • 6823a2f57f better tokens for error messages Roberto Ierusalimschy 2002-10-22 13:45:52 -03:00
  • 313b2fe902 detail Roberto Ierusalimschy 2002-10-21 17:43:38 -03:00
  • 425e5813b0 free prototype in (more or less) the same order it is created by `undump' Roberto Ierusalimschy 2002-10-21 17:41:46 -03:00
  • 6505503b49 do not pretend that file is closed when close fails Roberto Ierusalimschy 2002-10-21 17:41:24 -03:00
  • ec748fcb0a correct handling of opened files in presence of memory allocation errors Roberto Ierusalimschy 2002-10-16 17:41:35 -03:00
  • c196348717 in case of memory allocation errors, sizecode and sizelineinfo can be different Roberto Ierusalimschy 2002-10-16 17:40:58 -03:00
  • 669129a6d8 io.lines() iterate over the standard input file Roberto Ierusalimschy 2002-10-11 17:40:32 -03:00
  • 46b063ef59 `undump' also uses private buffer Roberto Ierusalimschy 2002-10-09 10:42:01 -03:00
  • e1d5153a33 details Roberto Ierusalimschy 2002-10-09 10:00:08 -03:00
  • b3d0682fb9 use of different buffers for scanner and concatenation Roberto Ierusalimschy 2002-10-08 15:46:08 -03:00
  • 02afc892d5 new ANSI C does not assure that realloc(p,0) == free(p) Roberto Ierusalimschy 2002-10-08 15:45:07 -03:00
  • fa2f1ec7ba to avoid `strerror', define itself to something else; nil has a special, fixed reference Roberto Ierusalimschy 2002-10-04 11:31:40 -03:00
  • 829befcc41 small optimization for object comparison Roberto Ierusalimschy 2002-10-04 11:31:03 -03:00
  • d477e4ffd6 detail Roberto Ierusalimschy 2002-10-04 11:30:31 -03:00
  • ce09af1e25 easier to define api_check' using assert' Roberto Ierusalimschy 2002-09-20 14:01:24 -03:00
  • 98d0b79613 EXIT_SUCCESS may be different from 0 Roberto Ierusalimschy 2002-09-20 10:32:56 -03:00
  • e8f35fc4ff unification of __index & __gettable (and __newindex & __settable) Roberto Ierusalimschy 2002-09-19 17:12:47 -03:00
  • 6fb0fd5063 avoid `reclearing' weak tables Roberto Ierusalimschy 2002-09-19 16:54:22 -03:00
  • 565e6d74e1 state's buffer is used only for chars Roberto Ierusalimschy 2002-09-19 10:03:53 -03:00
  • f6bc7884be new generators for reading a file line by line Roberto Ierusalimschy 2002-09-17 17:35:54 -03:00
  • 32a5d96dfc `setmetatable' cannot change protected objects Roberto Ierusalimschy 2002-09-16 16:49:45 -03:00
  • 8dae071f42 details Roberto Ierusalimschy 2002-09-16 16:18:01 -03:00
  • afe1305b1a avoid luaS_resize (which may need extra memory) during `main' activities Roberto Ierusalimschy 2002-09-05 16:57:40 -03:00
  • 728fa167d2 cannot raise memory error when realloc to smaller block Roberto Ierusalimschy 2002-09-05 16:57:08 -03:00
  • 1bdde38bd2 no more newlines at the end of error messages Roberto Ierusalimschy 2002-09-05 16:45:42 -03:00
  • b2bc3b44b6 no more reserved word "global" Roberto Ierusalimschy 2002-09-03 08:57:38 -03:00