diff options
| author | frosty <gabriel@bwaaa.monster> | 2026-04-22 22:30:21 -0400 |
|---|---|---|
| committer | dacctal <dacctalyt@gmail.com> | 2026-04-24 03:39:52 +0000 |
| commit | f1d7a1903e49c75f9965693247e8d102a96b482c (patch) | |
| tree | 1edd5ebe0a62c00353f824581a24e0afa305873f /include | |
| parent | 0b9cc83f71399a41cf4e93ef82af7c8ba5c2ab96 (diff) | |
misc optimisations and QoL improvements
Diffstat (limited to 'include')
| -rw-r--r-- | include/lua_state.hh | 18 | ||||
| -rw-r--r-- | include/vars.hh | 6 |
2 files changed, 21 insertions, 3 deletions
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 <luajit-2.1/lua.h> +#include <luajit-2.1/lauxlib.h> +#include <luajit-2.1/lualib.h> +} + +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 <string> #include <filesystem> -#include <map> +#include <unordered_map> -extern std::map<std::string, std::string> repos; -extern std::map<std::string, std::string> install_directories; +extern std::unordered_map<std::string, std::string> repos; +extern std::unordered_map<std::string, std::string> install_directories; extern bool is_symlink_install; extern bool is_verbose; |
