stylistic changes

removes comment from luaconf.h
add comment to signify filename
This commit is contained in:
takase1121 2021-11-08 12:17:26 +08:00
parent e785bbf1bf
commit 8bcc2d20f4
No known key found for this signature in database
GPG Key ID: 60EEFFC68EB3031B
1 changed files with 8 additions and 1 deletions

View File

@ -47,6 +47,9 @@ export_sym() {
} }
decl() { decl() {
echo "/** $(basename "$1") **/"
echo
header="$(uncomment $1 | discard_preprocessors)" header="$(uncomment $1 | discard_preprocessors)"
header1="$(onelineize <<< "$header")" header1="$(onelineize <<< "$header")"
@ -89,11 +92,15 @@ generate_header() {
echo "#include <stdarg.h>" echo "#include <stdarg.h>"
echo "#include <stdio.h> // for BUFSIZ? this is kinda weird" echo "#include <stdio.h> // for BUFSIZ? this is kinda weird"
echo echo
echo "/** luaconf.h **/"
echo
uncomment "$LUA_PATH/luaconf.h"
echo echo
cat "$LUA_PATH/luaconf.h"
decl "$LUA_PATH/lua.h" decl "$LUA_PATH/lua.h"
echo
decl "$LUA_PATH/lauxlib.h" decl "$LUA_PATH/lauxlib.h"
echo
echo "#define IMPORT_SYMBOL(name, ret, ...) name = (ret (*) (__VA_ARGS__)) symbol(#name)" echo "#define IMPORT_SYMBOL(name, ret, ...) name = (ret (*) (__VA_ARGS__)) symbol(#name)"
echo "static void lite_xl_plugin_init(void *XL) {" echo "static void lite_xl_plugin_init(void *XL) {"