-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds wax.os.setenv() * Adds wax.lazy() - for modules with lazy loadable functions * Project tree changed to accomodate C sources and Lua files under the same directory * Adds support for C functions as submodules inside project * Changed the module configuration file format (etc/config.lua) * Adds SPDX tag across the project * Docs for wax C helper headers
- Loading branch information
Showing
76 changed files
with
6,130 additions
and
4,687 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
/lua | ||
/lua_modules | ||
/.luarocks | ||
/wax | ||
/out | ||
/tree | ||
**/*.o | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,53 @@ | ||
-- SPDX-License-Identifier: AGPL-3.0-or-later | ||
-- Copyright 2022-2023 - Thadeu de Paula and contributors | ||
|
||
rockspec = 'wax-latest-1.rockspec' | ||
|
||
|
||
bin = { } | ||
modules = { | ||
['wax'] = { | ||
init = 'wax/init.lua', | ||
args = 'wax/args.lua', | ||
lazy = 'wax/lazy.lua', | ||
compat = 'wax/compat.lua', | ||
html = 'wax/html.lua', | ||
table = 'wax/table.lua', | ||
template = 'wax/template.lua', | ||
was = 'wax/was.lua', | ||
}, | ||
|
||
-- clib paths have are relative to `./src/` | ||
-- ./src/ext - External dependencies (from other projects) | ||
-- ./src/lib - The C code containing the Lua C Api logic | ||
-- ./src/macros | ||
clib = { | ||
{ | ||
mod = "wax.csv", | ||
src = { "csv.c" } | ||
}, | ||
{ | ||
mod = "wax.fs", | ||
src = { "fs.c" } | ||
}, | ||
{ | ||
mod = "wax.json", | ||
src = { "ext/json/cJSON.c", "json.c" } | ||
}, | ||
{ | ||
mod = "wax.os", | ||
src = { "os.c" } | ||
}, | ||
{ | ||
mod = "wax.sql", | ||
src = {"sql.c"}, | ||
lflags = "-lsqlite3" | ||
}, | ||
{ | ||
mod = "wax.user", | ||
src = { "user.c" } | ||
}, | ||
} | ||
cbin = { | ||
-- {'target', 'code.c' } | ||
['wax.csv'] = { | ||
init = 'csv/init.lua', | ||
initc = 'csv/init.c', | ||
}, | ||
|
||
['wax.fs'] = { | ||
init = 'fs/init.lua', | ||
initc = 'fs/init.c', | ||
}, | ||
|
||
['wax.json'] = { | ||
init = 'json/init.lua', | ||
initc = { 'json/_cjson/cJSON.c', 'json/init.c' }, | ||
}, | ||
|
||
['wax.os'] = { | ||
init = 'os/init.lua', | ||
initc = 'os/init.c', | ||
}, | ||
|
||
['wax.sql'] = { | ||
init = 'sql/init.lua', | ||
initc = {'sql/init.c', lflags='-lsqlite3'} | ||
}, | ||
|
||
['wax.user'] = { | ||
init = 'user/init.lua', | ||
initc = 'user/init.c' | ||
} | ||
} | ||
|
||
|
||
cbin = { --[[{'target', 'code.c' }]] } | ||
|
||
bin = { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
-- SPDX-License-Identifier: AGPL-3.0-or-later | ||
-- Copyright 2022-2023 - Thadeu de Paula and contributors | ||
|
||
howl_index = { | ||
{doc='intro', src='/doc/intro.md'}, | ||
{doc='wax_arg', src='test/wax/arg.lua'}, | ||
{doc='wax_csv', src='test/wax/csv.lua'}, | ||
{doc='wax_fs', src='test/wax/fs.lua'}, | ||
{doc='wax_html', src='test/wax/html.lua'}, | ||
{doc='wax_json', src='test/wax/json.lua'}, | ||
{doc='wax_os', src='test/wax/os.lua'}, | ||
{doc='wax_sql', src='test/wax/sql.lua'}, | ||
{doc='wax_table', src='test/wax/table.lua'}, | ||
{doc='wax_template', src='test/wax/template.lua'}, | ||
{doc='wax_user', src='test/wax/user.lua'}, | ||
|
||
{doc='clib_wax', src='doc/lib_cool.md'}, | ||
{doc='clib_wax_arr', src='src/wax/arr.h'}, | ||
|
||
{doc='clib_wax_lua', src='src/wax/lua.h'} | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.