From 8bcc2d20f413818c75e6ed76843d22a1020529d3 Mon Sep 17 00:00:00 2001 From: takase1121 <20792268+takase1121@users.noreply.github.com> Date: Mon, 8 Nov 2021 12:17:26 +0800 Subject: [PATCH] stylistic changes removes comment from luaconf.h add comment to signify filename --- scripts/generate_header.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/generate_header.sh b/scripts/generate_header.sh index 94807472..c4f784de 100755 --- a/scripts/generate_header.sh +++ b/scripts/generate_header.sh @@ -47,6 +47,9 @@ export_sym() { } decl() { + echo "/** $(basename "$1") **/" + echo + header="$(uncomment $1 | discard_preprocessors)" header1="$(onelineize <<< "$header")" @@ -89,11 +92,15 @@ generate_header() { echo "#include " echo "#include // for BUFSIZ? this is kinda weird" echo + echo "/** luaconf.h **/" + echo + uncomment "$LUA_PATH/luaconf.h" echo - cat "$LUA_PATH/luaconf.h" decl "$LUA_PATH/lua.h" + echo decl "$LUA_PATH/lauxlib.h" + echo echo "#define IMPORT_SYMBOL(name, ret, ...) name = (ret (*) (__VA_ARGS__)) symbol(#name)" echo "static void lite_xl_plugin_init(void *XL) {"