Commit Graph

32 Commits

Author SHA1 Message Date
tpaul 0b7d2ee43d Prevent Lua from crashing if clear_bindings() is called on a statement
that failed to prepare().

ok mbalmer@
2019-05-16 12:42:35 +00:00
sevan c38e7cc395 Hello bozohttpd(3lua) 2018-05-03 22:51:17 +00:00
mbalmer 0f3108288c Guard against double freeing of objects (explicit by the Lua program, then
later by the garbage collector).
This fixes PR bin/52218.
2017-05-10 07:36:01 +00:00
mbalmer 13a5a21897 Fix function name, no functional change.
Found by Travis Paul, (see PR/50786), thanks for reporting!
2016-02-15 15:56:33 +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 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
mbalmer d84d598888 Add the syslog(3) Lua binding to the build. 2013-11-13 09:49:08 +00:00
mbalmer f9cf0d6e6c Add a syslog(3) binding for Lua (not yet linked to the build.) 2013-11-12 14:32:03 +00:00
mbalmer e94b90148d More user friendly sqlite.open() function.
Add a few more symbols.
Register all function in the sqlite table.
2013-10-27 12:38:08 +00:00
mbalmer 36e5572b84 also register gpio_methods on the gpio table 2013-10-26 09:18:00 +00:00
mbalmer e98f41ae83 - Update to the version on github.com.
- Fix stmt_bind(): SQLite makes a copy of the string passed (which can be
  garbage collected).  Problem found by Kubo Takehiro.
2012-11-02 12:24:52 +00:00
joerg 66dd2755f5 Add __printflike attribution to use vprintf and friends with an argument
as format string.
2012-03-15 02:02:20 +00:00
mbalmer afd3d43b03 Add an empty line. 2012-03-03 11:32:14 +00:00
mbalmer afd38e42d9 Remove an unused constant. 2011-11-13 16:56:15 +00:00
mbalmer 6e210c20d3 Remove software pulsing. 2011-11-13 13:37:24 +00:00
mbalmer f660603483 Start numbering pions with 0, not 1. Ruined a demo, so it was a bad idea. 2011-11-13 09:46:11 +00:00
joerg 4ec2670ea3 Check MKPIC and don't hard-code m68k. 2011-11-08 01:52:05 +00:00
mbalmer 81d02375cb Fix dependency. 2011-10-16 00:45:54 +00:00
mbalmer d06854f919 Remove, has been moved to share/examples/lua. 2011-10-15 13:02:24 +00:00
mbalmer 9fb73f45a7 Add db:changes() 2011-10-15 12:58:20 +00:00
mbalmer c1c0ad71d4 Link the sqlite Lua module to the build and add it to the set lists. 2011-10-15 10:46:24 +00:00
mbalmer 78f8cb2089 Remove un-needed headers. 2011-10-15 10:35:06 +00:00
mbalmer 5dbf24395e A small test/demo program to show the sqlite Lua module usage. 2011-10-15 10:27:06 +00:00
mbalmer a4de1688e1 A Lua module to access SQLite databases. 2011-10-15 10:26:30 +00:00
plunky 7602c6b7f6 use WARNS?=4 for all Lua modules 2011-10-11 07:10:15 +00:00
christos 57ad8fd338 Handle sun2 2011-10-10 20:43:00 +00:00
christos 974dae711d turn on warnings, and fix compilation issues. 2011-10-10 20:41:05 +00:00
mbalmer 63bfe64311 Link the gpio(4) Lua module to the build and add it to the set lists.
(There is no manual page yet, since we have not yet decided where to put
them for Lua modules.)
2011-10-08 13:14:03 +00:00
mbalmer 66e9bcb443 Add NetBSD CVS marker, remove some whitespace. 2011-10-08 08:46:40 +00:00
mbalmer d525bcd694 Makefile to build gpio.so. 2011-10-08 08:36:27 +00:00
mbalmer 320efb436a Add stub Makefile, not yet called. 2011-10-07 21:23:32 +00:00
mbalmer 159188527b Interface gpio(4) from Lua. Not linked to the build. 2011-10-07 21:14:19 +00:00