From f1d7a1903e49c75f9965693247e8d102a96b482c Mon Sep 17 00:00:00 2001 From: frosty Date: Wed, 22 Apr 2026 22:30:21 -0400 Subject: misc optimisations and QoL improvements --- include/lua_state.hh | 18 ++++++++++++++++++ include/vars.hh | 6 +++--- 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 include/lua_state.hh (limited to 'include') diff --git a/include/lua_state.hh b/include/lua_state.hh new file mode 100644 index 0000000..a8dfed8 --- /dev/null +++ b/include/lua_state.hh @@ -0,0 +1,18 @@ +#ifndef LUA_STATE +#define LUA_STATE + +extern "C" { +#include +#include +#include +} + +void init_lua_state(); +void free_lua_state(); +lua_State* get_lua_state(); + +void cache_install_directories(); +void cache_repos(); +void cache_build_systems(); + +#endif \ No newline at end of file diff --git a/include/vars.hh b/include/vars.hh index 71045ee..b70615b 100644 --- a/include/vars.hh +++ b/include/vars.hh @@ -3,10 +3,10 @@ #include #include -#include +#include -extern std::map repos; -extern std::map install_directories; +extern std::unordered_map repos; +extern std::unordered_map install_directories; extern bool is_symlink_install; extern bool is_verbose; -- cgit v1.2.3