bydgoszcz

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

commit cb2f38d3f159fb00adf7d5d8c74bfb70f41f81c0
parent 394bfe868553ef7f96729c04c4fa7307fcdb5467
Author: kocotian <kocotian@kocotian.pl>
Date:   Fri, 28 May 2021 13:28:39 +0200

Better C insertion

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

diff --git a/compile.c b/compile.c @@ -423,10 +423,7 @@ tester: g_type(f, &type); str->len = (size_t)snprintf(str->data, MAX_EXPRESSIONSIZE, "(%.*s)(%.*s)", Strevalf(type), Strevalf(expr)); - } else if (!Strccmp(t->c, "wsadz")) { - t = enextToken(f, TokenIdentifier); - if (Strccmp(t->c, "c")) - errwarn(*f, 1, "unexpected identifier (expected c)"); + } else if (!Strccmp(t->c, "__c")) { t = enextToken(f, TokenString); strncpy(str->data, t->c.data + 1, t->c.len - 2); str->len = t->c.len - 2;