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/types.c | |
| parent | 29a87ff325b5d9682593d66bd17964e5c2447510 (diff) | |
Use Text("...") literal constructor instead of Text$from_str("...")
function call.
Diffstat (limited to 'builtins/types.c')
| -rw-r--r-- | builtins/types.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/builtins/types.c b/builtins/types.c index ab1b8013..c34882f0 100644 --- a/builtins/types.c +++ b/builtins/types.c @@ -14,13 +14,13 @@ public Text_t Type$as_text(const void *typeinfo, bool colorize, const TypeInfo *type) { - if (!typeinfo) return Text$from_str("TypeInfo"); + if (!typeinfo) return Text("TypeInfo"); if (colorize) return Text$concat( - Text$from_str("\x1b[36;1m"), + Text("\x1b[36;1m"), Text$from_str(type->TypeInfoInfo.type_str), - Text$from_str("\x1b[m")); + Text("\x1b[m")); else return Text$from_str(type->TypeInfoInfo.type_str); } @@ -40,7 +40,7 @@ public Text_t Func$as_text(const void *fn, bool colorize, const TypeInfo *type) (void)fn; Text_t text = Text$from_str(type->FunctionInfo.type_str); if (fn && colorize) - text = Text$concat(Text$from_str("\x1b[32;1m"), text, Text$from_str("\x1b[m")); + text = Text$concat(Text("\x1b[32;1m"), text, Text("\x1b[m")); return text; } |
