#include #include #include #include "honeysuckle.h" #include "options.h" #include "bindings.h" struct settings { const char *template_dir; }; int main(int argc, char **argv) { struct argent_options opts; int error = parse_options(&opts, argc, argv); if (error) return 1; printf("configuration file: %s\n" "output directory: %s\n", opts.conf_filename, opts.output_dir); lua_State *L = luaL_newstate(); luaL_openlibs(L); hs_create_table (L, hs_str_cfunc("markdown", markdown) ); lua_setglobal(L, "argent"); error = luaL_loadfile(L, opts.conf_filename); if (error != 0) { fprintf(stderr, "error: %s\n", lua_tostring(L, -1)); lua_close(L); return error; } error = hs_call(L, 0, 1); if (error != 0) { fprintf(stderr, "error: %s\n", lua_tostring(L, -1)); lua_close(L); return error; } printf("here!\n"); lua_close(L); return 0; }