diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-01 12:51:57 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-01 12:51:57 +0000 |
| commit | a3d3f23d495054b2e97c696f6eccb8be9188d15f (patch) | |
| tree | e135f8b8723c958f082da68db22c84c5970dc89c /include/util | |
| parent | ce259549bab8b0be5b91875137f25bf75e46e3a0 (diff) | |
inline update
Diffstat (limited to 'include/util')
| -rw-r--r-- | include/util/color.h | 4 | ||||
| -rw-r--r-- | include/util/io.h | 4 | ||||
| -rw-r--r-- | include/util/prompt.h | 14 |
3 files changed, 12 insertions, 10 deletions
diff --git a/include/util/color.h b/include/util/color.h index 707efb4..9e9ed27 100644 --- a/include/util/color.h +++ b/include/util/color.h @@ -12,7 +12,7 @@ std::string make_color(const std::string s, const std::string_view color); namespace ov4::color { -constexpr std::string_view +inline constexpr std::string_view black = "30", red = "31", green = "32", @@ -22,7 +22,7 @@ constexpr std::string_view cyan = "36", white = "37"; -constexpr std::string_view +inline constexpr std::string_view bright_black = "90", bright_red = "91", bright_green = "92", diff --git a/include/util/io.h b/include/util/io.h index e72082f..52984c5 100644 --- a/include/util/io.h +++ b/include/util/io.h @@ -22,8 +22,8 @@ namespace ov4 struct LogVoidify { void operator&(std::ostream&) const {} }; -constexpr int DECIMAL = 10; -constexpr int LENGTH = 32; +inline constexpr int DECIMAL = 10; +inline constexpr int LENGTH = 32; void safe_print(char *s, bool ignore_wrap = false); void safe_print(int x); diff --git a/include/util/prompt.h b/include/util/prompt.h index 6cdcfb8..a9eae46 100644 --- a/include/util/prompt.h +++ b/include/util/prompt.h @@ -6,11 +6,13 @@ namespace ov4 { - constexpr std::string_view prompt_normal = "$"; - constexpr std::string_view prompt_root = "#"; - constexpr size_t hostname_size = 128; - extern bool emit_prompt; - void print_prompt(); - std::string get_prompt(); +inline constexpr std::string_view prompt_normal = "$"; +inline constexpr std::string_view prompt_root = "#"; +inline constexpr size_t hostname_size = 128; +extern bool emit_prompt; + +void print_prompt(); +std::string get_prompt(); + } |
