bydgoszcz

simple, fast and efficient programming language
git clone git://git.kocotian.pl/bydgoszczscript.git
Log | Files | Refs | README | LICENSE

commit c06e2c90969010138b7d23da84d1808919b92528
parent f489acb87cec06856667264b6ed56a3846f4fd84
Author: kocotian <kocotian@kocotian.pl>
Date:   Fri, 28 May 2021 19:42:03 +0200

prawda / nieprawda (boolean constants)

Diffstat:
Mcompile.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/compile.c b/compile.c @@ -276,6 +276,10 @@ g_expression(File *f, ExpressionString *str) v == 1 ? "++" : v == 2 ? "--" : "", Strevalf(expr), v == 3 ? "++" : v == 4 ? "--" : ""); + } else if (!Strccmp(t->c, "prawda")) { + str->len = (size_t)snprintf(str->data, MAX_EXPRESSIONSIZE, "1"); + } else if (!Strccmp(t->c, "nieprawda")) { + str->len = (size_t)snprintf(str->data, MAX_EXPRESSIONSIZE, "0"); } else if (!Strccmp(t->c, "ustaw")) { ExpressionString what, as; t = enextToken(f, TokenNULL);