diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-03 15:00:28 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-03 15:00:28 -0400 |
| commit | 82849ba783e2b8f8e3a040751cd964313470e7f2 (patch) | |
| tree | 89380c5026b4da43d88658a5acf4d2c656ead8fe /builtins/c_string.c | |
| parent | 29a87ff325b5d9682593d66bd17964e5c2447510 (diff) | |
Use Text("...") literal constructor instead of Text$from_str("...")
function call.
Diffstat (limited to 'builtins/c_string.c')
| -rw-r--r-- | builtins/c_string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtins/c_string.c b/builtins/c_string.c index 8abb2b9f..bd35b549 100644 --- a/builtins/c_string.c +++ b/builtins/c_string.c @@ -16,9 +16,9 @@ public Text_t CString$as_text(const void *c_string, bool colorize, const TypeInfo *info) { (void)info; - if (!c_string) return Text$from_str("CString"); + if (!c_string) return Text("CString"); Text_t text = Text$from_str(*(char**)c_string); - return Text$concat(Text$from_str(colorize ? "\x1b[34mCString\x1b[m(" : "CString("), Text$quoted(text, colorize), Text$from_str(")")); + return Text$concat(colorize ? Text("\x1b[34mCString\x1b[m(") : Text("CString("), Text$quoted(text, colorize), Text(")")); } public int CString$compare(const char **x, const char **y) |
