aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/plugins
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-04-17 18:39:40 +0100
committervaxerski <[email protected]>2023-04-17 18:39:40 +0100
commitb4f75525d9d11364a69944c48b5ace21dc229fca (patch)
tree20171a32f186ebf06f795d34af846b27b24a1e93 /src/plugins
parent8b3d8dc7927a77b615174b1241545023c554f97d (diff)
downloadHyprland-b4f75525d9d11364a69944c48b5ace21dc229fca.tar.gz
Hyprland-b4f75525d9d11364a69944c48b5ace21dc229fca.zip
pluginAPI: make symbols static
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/PluginAPI.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/PluginAPI.cpp b/src/plugins/PluginAPI.cpp
index f26c7b9d..d8b3c82d 100644
--- a/src/plugins/PluginAPI.cpp
+++ b/src/plugins/PluginAPI.cpp
@@ -274,20 +274,20 @@ APICALL std::vector<SFunctionMatch> HyprlandAPI::findFunctionsByName(HANDLE hand
const auto FPATH = std::filesystem::canonical(exe);
#elif defined(__OpenBSD__)
// Neither KERN_PROC_PATHNAME nor /proc are supported
- const auto FPATH = std::filesystem::canonical("/usr/local/bin/Hyprland");
+ const auto FPATH = std::filesystem::canonical("/usr/local/bin/Hyprland");
#else
const auto FPATH = std::filesystem::canonical("/proc/self/exe");
#endif
#ifdef __clang__
- const auto SYMBOLS = execAndGet(("llvm-nm -D -j " + FPATH.string()).c_str());
- const auto SYMBOLSDEMANGLED = execAndGet(("llvm-nm -D -j --demangle " + FPATH.string()).c_str());
+ static const auto SYMBOLS = execAndGet(("llvm-nm -D -j " + FPATH.string()).c_str());
+ static const auto SYMBOLSDEMANGLED = execAndGet(("llvm-nm -D -j --demangle " + FPATH.string()).c_str());
#else
- const auto SYMBOLS = execAndGet(("nm -D -j " + FPATH.string()).c_str());
- const auto SYMBOLSDEMANGLED = execAndGet(("nm -D -j --demangle=auto " + FPATH.string()).c_str());
+ static const auto SYMBOLS = execAndGet(("nm -D -j " + FPATH.string()).c_str());
+ static const auto SYMBOLSDEMANGLED = execAndGet(("nm -D -j --demangle=auto " + FPATH.string()).c_str());
#endif
- auto demangledFromID = [&](size_t id) -> std::string {
+ auto demangledFromID = [&](size_t id) -> std::string {
size_t pos = 0;
size_t count = 0;
while (count < id) {