diff options
| author | dacctal <donotcontactmevia@email.invalid> | 2026-07-04 05:27:09 +0000 |
|---|---|---|
| committer | dacctal <donotcontactmevia@email.invalid> | 2026-07-04 05:27:09 +0000 |
| commit | 6a386ee203c609894dc6e6e97bf6d5c651ab3e37 (patch) | |
| tree | 72bdfc2a50c71d862ceea449a9f6260cfd7dc4ff /include | |
| parent | 0b53842c93697913704303ed1967150705359f35 (diff) | |
lua checkpoint!
Diffstat (limited to 'include')
| -rw-r--r-- | include/debug.h (renamed from include/lua_vars.h) | 10 | ||||
| -rw-r--r-- | include/pkgit_lua.h (renamed from include/lua_globs.h) | 20 |
2 files changed, 20 insertions, 10 deletions
diff --git a/include/lua_vars.h b/include/debug.h index 439a335..e74a099 100644 --- a/include/lua_vars.h +++ b/include/debug.h @@ -18,12 +18,10 @@ */ -#ifndef PKGIT_LUA_VARS_H -#define PKGIT_LUA_VARS_H -#include <lauxlib.h> -#include <lua.h> -#include <lualib.h> +#ifndef PKGIT_DEBUG_H +#define PKGIT_DEBUG_H + +void debug_print_inst_dirs(void); -void init_install_directories(void); #endif diff --git a/include/lua_globs.h b/include/pkgit_lua.h index 0a5426f..a06a995 100644 --- a/include/lua_globs.h +++ b/include/pkgit_lua.h @@ -18,8 +18,8 @@ */ -#ifndef PKGIT_LUA_GLOBALS_H -#define PKGIT_LUA_GLOBALS_H +#ifndef PKGIT_LUA_H +#define PKGIT_LUA_H #include <lua.h> #include <lauxlib.h> @@ -30,13 +30,25 @@ extern lua_State *L; extern lua_State *B; extern bool config_loaded; +// init void push_lua_path(lua_State *L, const char *new_path); void init_lua_state(void); -void init_bldit(void); +void init_bldit_state(void); void free_lua_state(void); - +void free_bldit_state(void); lua_State *get_lua_state(void); +lua_State *get_bldit_state(void); + +// gobal vars +void init_install_directories(void); +void init_prefix_directory(void); +// helpers void lua_isnt_type(char* variable, char* type); +bool lua_try_function(lua_State *L, char *lua_file, char *fname); +bool lua_try_table(lua_State *L, char *lua_file, char *tname); + +// install +void install_dependencies(lua_State *L); #endif |
