Commit Graph

77 Commits

Author SHA1 Message Date
alnsn
325d3ebb6c Don't use $NetBSD$ in a sentence, refer to them as 'RCS identifiers'. 2018-08-04 17:53:29 +00:00
alnsn
64f8b7ae34 README.import with step-by-step import instruction. 2018-08-04 17:47:26 +00:00
alnsn
2bf4ff61c1 Resolve conflicts. 2018-08-04 17:30:01 +00:00
alnsn
174af426a0 Remove files imported to a wrong directory. 2018-07-29 22:46:13 +00:00
alnsn
e552f68674 Import Lua 5.3.5. 2018-07-29 19:45:46 +00:00
mbalmer
62e2d99666 Apply bugfix #7 from lua.org/bugs.html: Memory-allocation error when resizing
a table can leave it in an inconsistent state.
2018-07-01 10:08:38 +00:00
alnsn
1a047feb17 Change LUAL_BUFFERSIZE from 4-8K to 128 bytes for kernel-side Lua.
LUAL_BUFFERSIZE defines how much luaL_Buffer allocates from
the stack. Apparently, 4-8K is too much for the kernel stack.
2018-05-26 20:17:56 +00:00
mbalmer
0f9874ac8b Apply a bugfix from lua.org/bugs,html:
lua_pushcclosure should not call the garbage collector when n is zero.
2017-12-13 13:00:14 +00:00
mbalmer
c2c3ba2051 Apply bug fix from lua.org/bugs.html (dead keys with nil values can stay
in weak tables).
2017-09-07 12:52:29 +00:00
mbalmer
efe7e63653 Apply a bug fix from lua.org/bugs.html: Lua does not check GC when creating
error messages.
2017-08-03 13:40:07 +00:00
mbalmer
af23b2a18b don't spam the console, just output the Lua version information as lua(1) does 2017-05-20 10:12:29 +00:00
mbalmer
fd9f13421f Fix a bug that gerenates wrong code for a goto followed by a label inside an
'if' (see https://www.lua.org/bugs.html).
2017-05-07 08:14:06 +00:00
mbalmer
3c57efcb0b kernel mode lua has no floating point available 2017-04-26 13:53:18 +00:00
mbalmer
b700cba4dc import conflict resolution 2017-04-26 13:09:12 +00:00
mbalmer
64f3190dec fix import conflicts 2017-04-26 13:00:46 +00:00
mbalmer
9e2f6347be resolve import conflicts 2017-04-26 12:49:34 +00:00
mbalmer
9e24523c19 after-import fixes, conflict resolution 2017-04-26 12:36:53 +00:00
mbalmer
abbbf966bd Lua 5.3.4 2017-04-26 11:38:37 +00:00
mbalmer
eeff2bf6a8 Remove a typo, %i is not conversion specification. 2016-09-10 09:31:24 +00:00
mbalmer
1c38c58ca4 Define LUA_STRFTIMEOPTIONS so that the conversion specifications of the Lua
os.date() function match the conversion specifications of the underlying
strftime() function.
2016-09-10 09:29:13 +00:00
salazar
b6231d31d5 fix code style issue 2016-09-08 21:19:44 +00:00
salazar
45e7e42b1d fix kernel Lua code style issues 2016-09-08 20:57:20 +00:00
salazar
da64b47369 fix bug 3 (for Lua.5.3.3) reported on www.lua.org/bugs.html 2016-09-08 02:57:32 +00:00
salazar
36b38267b2 fix bug 2 (for Lua.5.3.3) reported on www.lua.org/bugs.html 2016-09-08 02:55:50 +00:00
salazar
03a5d4850a fix bug 1 reported on www.lua.org/bugs.html 2016-09-08 02:53:39 +00:00
salazar
10422b434c fix misplaced kernel Lua ifndef 2016-09-08 02:51:53 +00:00
salazar
c7f896d7b5 merge Lua 5.3.3 2016-09-08 02:21:31 +00:00
mbalmer
fbad720175 Apply second and third patch from http://lua.org/bugs.html. 2016-03-25 08:15:20 +00:00
lneto
e9138ce741 fixed metatable access to deallocated field
author: Lua.org <team@lua.org>
see: http://www.lua.org/bugs.html#5.3.2-1
2016-01-28 17:23:21 +00:00
lneto
2d6cb6c23b lua: merged 5.3.2 2016-01-28 14:41:39 +00:00
christos
f5de81ed67 Add a coverity annotation; string bytes follow the struct. It would be
better to add a char bytes[]; at the end of the struct.
2015-10-14 01:49:46 +00:00
mbalmer
fd3d11729f no floating point in the kernel, also make sure we always return an int 2015-10-11 09:21:15 +00:00
mbalmer
339173929c fix macro usage 2015-10-11 09:06:21 +00:00
christos
aa6d45f9f5 Get rid of the sprintf() bogus macro and use lengths explicitly when buffers
are involved.
2015-10-11 01:01:45 +00:00
mbalmer
5f69bf5a0f fix kernel module build 2015-10-08 13:40:16 +00:00
mbalmer
bee0986226 update after conflict resolution 2015-10-08 13:21:00 +00:00
mbalmer
f03f2e0f6f update docs after conflict resolution 2015-10-08 12:46:20 +00:00
mbalmer
b2829499b0 Resolve conflicts. 2015-10-08 12:40:05 +00:00
mbalmer
21f9e8b0ed Lua 5.3.1 2015-10-08 12:25:22 +00:00
lneto
bfd43003e4 lua(4): small fixes in kernel Lua
* fixed hex parsing
* restored lua_isnumber
* removed unwanted macros from luaconf.h
* restored <stdarg.h> include in ldebug.c
* removed doubles from unions
* removed unused functions
2015-02-19 04:46:22 +00:00
christos
a230e8e5ec remove LINTFLAGS 2015-02-09 20:41:01 +00:00
christos
cf8359160b - use CPPFLAGS instead of CFLAGS for things that the c-preprocessor handle.
- add LUA_C89_NUMBERS for "long long" and don't depend on _NETBSD_SOURCE
  for defining this.
2015-02-09 16:47:17 +00:00
christos
0f74422800 Packages always build lib first even if it is built as part of the first
pass in the library builds. If we want to change this, we should change it
everywhere.
2015-02-09 16:44:53 +00:00
lneto
c4f5e3dda4 lua: fixed LUA_ROOT, LUA_PATH_DEFAULT and LUA_CPATH_DEFAULT
* reverted from r1.8 (mbalmer)
2015-02-04 04:47:57 +00:00
lneto
730082507e lua: updated from 5.3 work3 to 5.3.0
* improved the overall kernel Lua patch; fixed coercion
* updated lua/syslog
* updated luapmf and luasystm Makefiles
2015-02-02 14:03:05 +00:00
lneto
28a92413eb imported Lua 5.3.0 2015-02-02 02:01:06 +00:00
lneto
789f0f4f81 lua(4): fixed Lua stack size 2014-11-30 19:00:46 +00:00
lneto
e40402f997 imported Lua 5.3 work3 2014-07-20 23:17:27 +00:00
lneto
6953723d32 lua(4): fixed ldblib.c
* for some reason it wasn't added on my last commit
2014-07-19 19:37:31 +00:00
lneto
4ab4902eb2 lua: updated from 5.1 to 5.3 work3
* lua(1):
  - changed lua_Integer to intmax_t
  - updated distrib/sets/lists and etc/mtree
  - updated bsd.lua.mk
  - fixed bozohttpd (lua-bozo.c)
  - compatibilized bindings: gpio, sqlite
* lua(4):
  - removed floating-point and libc dependencies using '#ifndef _KERNEL'
  - fixed division by zero and exponentiation
  - libkern: added isalnum(), iscntrl(), isgraph(), isprint() and ispunct()
  - acpica: removed isprint() from acnetbsd.h
  - libc: moved strcspn.c, strpbrk.c and strspn.c to common
  - removed stub headers
  - compatibilized bindings: luapmf, luasystm
* reorganized luaconf.h
* updated doc/CHANGES and doc/RESPONSIBLE
2014-07-19 18:38:33 +00:00