From cbdd357b41b4685c669755bfdd29c822d5dcc8c6 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 9 Mar 2024 19:02:13 -0500 Subject: Deprecate secret langs (just use one-member structs) --- builtins/text.c | 2 +- builtins/types.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'builtins') diff --git a/builtins/text.c b/builtins/text.c index 70d9be57..4641bc1d 100644 --- a/builtins/text.c +++ b/builtins/text.c @@ -25,7 +25,7 @@ public CORD Text__as_text(const void *text, bool colorize, const TypeInfo *info) { if (!text) return info->TextInfo.lang; - CORD ret = info->TextInfo.secret ? "(*****)" : Text__quoted(*(CORD*)text, colorize); + CORD ret = Text__quoted(*(CORD*)text, colorize); if (!streq(info->TextInfo.lang, "Text")) ret = colorize ? CORD_all("\x1b[1m$", info->TextInfo.lang, "\x1b[m", ret) : CORD_all("$", info->TextInfo.lang, ret); return ret; diff --git a/builtins/types.h b/builtins/types.h index 528701ff..d26c86be 100644 --- a/builtins/types.h +++ b/builtins/types.h @@ -29,7 +29,6 @@ typedef struct TypeInfo { } PointerInfo; struct { const char *lang; - bool secret; } TextInfo; struct { const struct TypeInfo *item; -- cgit v1.2.3