summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2025-02-06 17:27:18 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2025-02-06 17:27:18 +0100
commit608addf75a6283d6db9467dc27272a9e28fe4670 (patch)
tree68d63c29ede9d4eec64f3a0c8a2a7fdc651af738 /src/util.h
parentf3fedaf53ed90cb5f1eda704c6f199a8b34ecc96 (diff)
Add argsplit to support multiple arguments in CXXFLAGS, CFLAGS and LDFLAGS.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 0a90049..8b41014 100644
--- a/src/util.h
+++ b/src/util.h
@@ -28,3 +28,6 @@ std::vector<std::string> get_paths(const std::string& path_env = std::getenv("PA
std::string locate(const std::string& app,
const std::vector<std::string>& paths,
const std::string& arch = {});
+
+//! Splits string into tokens adhering to quotations " and '
+std::vector<std::string> argsplit(const std::string& str);