From aa0d78815004ae6b0c4a42b0e024f5c4ef555ae2 Mon Sep 17 00:00:00 2001 From: dacctal Date: Sun, 24 May 2026 10:23:38 +0000 Subject: c rewrite --- include/lua_state.hh | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 include/lua_state.hh (limited to 'include/lua_state.hh') diff --git a/include/lua_state.hh b/include/lua_state.hh deleted file mode 100644 index 0261e13..0000000 --- a/include/lua_state.hh +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef LUA_STATE -#define LUA_STATE - -#include -#include -extern "C" { -#include -#include -#include -} - -typedef struct { - std::string key; - std::string value; -} url; - -typedef struct { - std::string url; - std::string version; -} dependency; - -typedef struct { - url source; - std::unordered_map dependencies; - int build; - int pre_install; - int install; - int post_install; -} repo; - -extern std::unordered_map cached_install_directories; -extern std::unordered_map cached_repos; -extern std::unordered_map cached_build_systems; - - -void push_lua_path(lua_State *L, const char *new_path); -void init_lua_state(); -void free_lua_state(); -lua_State* get_lua_state(); - -void cache_install_directories(); -bool repo_build(const char* repoository); -bool bldit(const char* target); -bool config_build(const char* path); -void cache_repos(); -void cache_build_systems(); - -#endif \ No newline at end of file -- cgit v1.2.3