bydgoszcz

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

commit 3d91fca434173e1d133b07b1309fa29183e3fcf6
parent c06e2c90969010138b7d23da84d1808919b92528
Author: kocotian <kocotian@kocotian.pl>
Date:   Sat, 29 May 2021 00:08:19 +0200

cdn (variable argument length)

Diffstat:
Mcompile.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/compile.c b/compile.c @@ -660,7 +660,12 @@ g_miasto(File *f) } else if (!Strccmp(t->c, "przyjmuje")) { t = enextToken(f, TokenColon); while ((t = enextToken(f, TokenIdentifier))) { - if (!Strccmp(t->c, "koniec")) { + if (!Strccmp(t->c, "cdn")) { + args.len += (size_t)snprintf( + (char *)(args.data + strlen(args.data)), + MAX_TYPESIZE - strlen(args.data), + "..."); + t = enextToken(f, TokenSemicolon); break; } else { String argname;