Home | History | Annotate | only in /src/share/examples/lua
History log of /src/share/examples/lua
RevisionDateAuthorComments
 1.1 15-Oct-2011  mbalmer Example files showing Lua module usage.
 1.1 15-Oct-2011  mbalmer Example files showing Lua module usage.
 1.4 10-May-2017  mbalmer Clarify gpio example.
 1.3 19-Jul-2014  lneto branches: 1.3.14;
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
 1.2 25-Feb-2012  mbalmer branches: 1.2.2; 1.2.8;
GPIO pins are 0 based when accessed from Lua, not 1 based like Lua usually
is. The pulse() has been removed, use gpiopwm(4) for that.
 1.1 15-Oct-2011  mbalmer branches: 1.1.2; 1.1.4;
Example files showing Lua module usage.
 1.1.4.1 25-Feb-2012  sborrill Pull up the following revisions(s) (requested by mbalmer in ticket #49):
share/examples/lua/gpio.lua: revision 1.2

GPIO pins are 0-based when accessed from Lua, not 1-based like Lua usually
is. The pulse() has been removed, use gpiopwm(4) for that.
 1.1.2.1 17-Apr-2012  yamt sync with head
 1.2.8.1 10-Aug-2014  tls Rebase.
 1.2.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.14.1 11-May-2017  pgoyette Sync with HEAD
 1.4 10-May-2017  mbalmer Fix flags for DB open.
 1.3 08-Dec-2015  kamil branches: 1.3.6;
Correct mistakes in the sqlite.lua example

Changes:
- The open flag: sqlite.OPEN_CREATE will open the DB for reading and
writing, adding sqlite.OPEN_READWRITE to sqlite.OPEN_CREATE will cause
the DB to not be created and prevent the script from continuing
- When using stmt:bind_parameter_index() the parameter needs to be
prefixed with ':' if that was used in the prepared statement,
otherwise the incorrect index of 0 is returned.
- The drop table statement has an "x" appended to the table name, looks
like a typo.

Patch by Travis Paul

Closes PR misc/50493
 1.2 19-Jul-2014  lneto 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
 1.1 15-Oct-2011  mbalmer branches: 1.1.8; 1.1.18;
Example files showing Lua module usage.
 1.1.18.1 10-Aug-2014  tls Rebase.
 1.1.8.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.6.1 11-May-2017  pgoyette Sync with HEAD

RSS XML Feed