cosmopolitan/third_party/lua
Justine Tunney cf93ecbbb2 Prove that Makefile is fully defined
The whole repository is now buildable with GNU Make Landlock sandboxing.
This proves that no Makefile targets exist which touch files other than
their declared prerequisites. In order to do this, we had to:

  1. Stop code morphing GCC output in package.com and instead run a
     newly introduced FIXUPOBJ.COM command after GCC invocations.

  2. Disable all the crumby Python unit tests that do things like create
     files in the current directory, or rename() files between folders.
     This ended up being a lot of tests, but most of them are still ok.

  3. Introduce an .UNSANDBOXED variable to GNU Make to disable Landlock.
     We currently only do this for things like `make tags`.

  4. This change deletes some GNU Make code that was preventing the
     execve() optimization from working. This means it should no longer
     be necessary in most cases for command invocations to be indirected
     through the cocmd interpreter.

  5. Missing dependencies had to be declared in certain places, in cases
     where they couldn't be automatically determined by MKDEPS.COM

  6. The libcxx header situation has finally been tamed. One of the
     things that makes this difficult is MKDEPS.COM only wants to
     consider the first 64kb of a file, in order to go fast. But libcxx
     likes to have #include lines buried after huge documentation.

  7. An .UNVEIL variable has been introduced to GNU Make just in case
     we ever wish to explicitly specify additional things that need to
     be whitelisted which aren't strictly prerequisites. This works in
     a manner similar to the recently introduced .EXTRA_PREREQS feature.

There's now a new build/bootstrap/make.com prebuilt binary available. It
should no longer be possible to write invalid Makefile code.
2022-08-06 04:05:08 -07:00
..
test Revert whitespace fixes to third_party (#501) 2022-07-21 21:46:07 -07:00
cosmo.h Add pretty printing to redbean serializers 2022-07-22 10:10:33 -07:00
lapi.c Polish redbean serialization 2022-04-29 06:10:10 -07:00
lapi.h Make improvements 2022-04-24 10:06:05 -07:00
lauxlib.c Pledge and unveil redbean's unit tests 2022-07-23 07:22:19 -07:00
lauxlib.h Include variables in redbean lua traceback 2022-04-16 12:49:34 -07:00
lbaselib.c Make improvements 2022-04-24 10:06:05 -07:00
lcode.c Make improvements 2022-04-24 10:06:05 -07:00
lcode.h Make improvements 2022-04-24 10:06:05 -07:00
lcorolib.c Make improvements 2022-04-24 10:06:05 -07:00
lctype.h Polish redbean serialization 2022-04-29 06:10:10 -07:00
ldblib.c Make improvements 2022-04-24 10:06:05 -07:00
ldebug.c Make improvements 2022-04-24 10:06:05 -07:00
ldebug.h Make improvements 2022-04-24 10:06:05 -07:00
ldo.c Make fixes and improvements 2022-06-18 01:46:12 -07:00
ldo.h Make improvements 2022-04-24 10:06:05 -07:00
ldump.c Make improvements 2022-04-24 10:06:05 -07:00
lfunc.c Make improvements 2022-04-24 10:06:05 -07:00
lfunc.h Make improvements 2022-04-24 10:06:05 -07:00
lgc.c Make improvements 2022-04-24 10:06:05 -07:00
lgc.h Make improvements 2022-04-24 10:06:05 -07:00
linit.c Make improvements 2022-04-24 10:06:05 -07:00
liolib.c Add raw memory visualization tool to redbean 2022-05-14 04:33:58 -07:00
ljumptab.inc Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
llex.c Make improvements 2022-04-24 10:06:05 -07:00
llex.h Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
llimits.h Make improvements 2022-04-26 16:46:15 -07:00
llock.c Bump redbean to 2.0.9 2022-07-09 05:50:05 -07:00
lmathlib.c Make improvements 2022-04-24 10:06:05 -07:00
lmem.c Add raw memory visualization tool to redbean 2022-05-14 04:33:58 -07:00
lmem.h Make improvements 2022-04-24 10:06:05 -07:00
loadlib.c Make improvements 2022-04-24 10:06:05 -07:00
lobject.c Fix Lua type of zero 2022-07-08 10:12:19 -07:00
lobject.h Make improvements 2022-04-24 10:06:05 -07:00
lopcodes.c Make improvements 2022-04-24 10:06:05 -07:00
lopcodes.h Make improvements 2022-04-24 10:06:05 -07:00
lopnames.inc Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
loslib.c Make improvements 2022-04-24 10:06:05 -07:00
lparser.c Make improvements 2022-04-24 10:06:05 -07:00
lparser.h Make improvements 2022-04-24 10:06:05 -07:00
lprefix.h Make improvements 2022-04-24 10:06:05 -07:00
lrepl.c Bump redbean to 2.0.9 2022-07-09 05:50:05 -07:00
lrepl.h Strengthen the pledge() polyfill 2022-06-27 13:02:17 -07:00
lstate.c Make improvements 2022-04-24 10:06:05 -07:00
lstate.h Make improvements 2022-04-24 10:06:05 -07:00
lstring.c Make improvements 2022-04-24 10:06:05 -07:00
lstring.h Make improvements 2022-04-24 10:06:05 -07:00
lstrlib.c Write more redbean unit tests 2022-07-08 23:10:02 -07:00
ltable.c Make improvements 2022-04-24 10:06:05 -07:00
ltable.h Make improvements 2022-04-24 10:06:05 -07:00
ltablib.c Make improvements 2022-04-24 10:06:05 -07:00
ltests.c Make improvements 2022-04-27 05:39:39 -07:00
ltests.h Make improvements 2022-04-24 10:06:05 -07:00
ltm.c Make improvements 2022-04-24 10:06:05 -07:00
ltm.h Make improvements 2022-04-24 10:06:05 -07:00
lua.h Revert adding lua array per discussion in #222 (#229) 2021-08-07 15:20:33 -07:00
lua.main.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
lua.mk Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
luac.main.c Reduce makefile dependencies by 10% 2022-06-08 20:01:28 -07:00
luacallwithtrace.c Update redbean to stringify error objects (#393) 2022-04-25 21:14:36 -07:00
luaconf.h Improve ZIP filesystem and change its prefix 2021-08-22 01:11:53 -07:00
luaencodejsondata.c Add pretty printing to redbean serializers 2022-07-22 10:10:33 -07:00
luaencodeluadata.c Have redbean Lua repl show utf-8 when it's valid 2022-07-23 07:22:19 -07:00
luaencodeurl.c Fix Redbean EncodeUrl params w/o values (#376) 2022-03-27 22:36:43 -07:00
luaformatstack.c Add pretty printing to redbean serializers 2022-07-22 10:10:33 -07:00
lualib.h Make improvements 2022-04-24 10:06:05 -07:00
luaparseurl.c Trim down redbean a little bit 2022-03-21 19:32:30 -07:00
luaprintstack.c Make improvements 2022-04-24 10:06:05 -07:00
luapushheader.c Trim down redbean a little bit 2022-03-21 19:32:30 -07:00
luapushheaders.c Trim down redbean a little bit 2022-03-21 19:32:30 -07:00
luapushlatin1.c Trim down redbean a little bit 2022-03-21 19:32:30 -07:00
luapushurlparams.c Trim down redbean a little bit 2022-03-21 19:32:30 -07:00
lundump.c Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
lundump.h Make improvements 2022-04-24 10:06:05 -07:00
lunix.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
lunix.h Make improvements 2022-07-21 03:36:42 -07:00
lutf8lib.c Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
lvm.c Make improvements 2022-04-24 10:06:05 -07:00
lvm.h Make improvements 2022-04-24 10:06:05 -07:00
lzio.c Make improvements 2022-04-24 10:06:05 -07:00
lzio.h Get Lua to build with all tests passing 2021-03-07 13:31:09 -08:00
README.cosmo Write more redbean unit tests 2022-07-08 23:10:02 -07:00
serialize.c Add pretty printing to redbean serializers 2022-07-22 10:10:33 -07:00
tms.h Add Lua compiler 2021-08-09 13:09:14 -07:00
visitor.c Further improve JSON serialization 2022-07-11 23:06:49 -07:00
visitor.h Further improve JSON serialization 2022-07-11 23:06:49 -07:00

DESCRIPTION

  Lua is a language designed for embedded use in native applications. It
  has an impossibly elegant C API and the Lua language itself feels more
  like Python compared to alternatives like Tcl except it's a great deal
  faster and doesn't have strong opinions about character encoding.

PROVENANCE

  https://github.com/lua/lua/

  commit e7803f7dbcdc966ab1f9db143424ee811ab1a398
  Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
  Date:   Wed Mar 3 09:44:20 2021 -0300

      New release number (5.4.3)

  luac.c needed to be sourced from:
  https://www.lua.org/ftp/lua-5.4.3.tar.gz

LOCAL MODIFICATIONS

  Lua now uses a bestline REPL with bash-style code completion.

  Integer literals such as `033` will now be interpreted as octal.

  Integer literals such as `0b10` will now be interpreted as binary.

  The `\e` string literal escape sequence has been added, which is
  equivalent to `\27` (the Lua version of `\033`) or the ASCII ESC
  character. It may be used for teletypewriter control like having
  bold text, which can be encoded elegantly as `\e[1mHELLO\e[0m`.

  Added luaL_traceback2() for function parameters in traceback.

  Added Python-like printf modulus operator for strings.

  Added Python-like printf multiply operator for strings.