stylistic changes
removes comment from luaconf.h add comment to signify filename
This commit is contained in:
parent
e785bbf1bf
commit
8bcc2d20f4
|
@ -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) {"
|
||||||
|
|
Loading…
Reference in New Issue