From: nishi Date: Wed, 24 Apr 2024 00:22:51 +0000 (+0000) Subject: error message X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=596d98f82cf3339b9cf56ec26ae5da44dc6fd0b3;p=serenade.git error message git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@26 0f02c867-ac3d-714e-8a88-971ba1f6efcf --- diff --git a/Serenade/parser.c b/Serenade/parser.c index 12fdc21..fe92f98 100644 --- a/Serenade/parser.c +++ b/Serenade/parser.c @@ -125,7 +125,7 @@ struct sn_generic* sn_expr_parse(char* data, unsigned long long size) { } br--; } else { - if(c == ' ' || c == '\n') { + if(c == ' ' || c == '\n' || c == '\t') { if(strlen(argbuf) > 0) { push_stack(gn_stack[br - 1], argbuf, argbufmode); index_stack[br - 1]++; diff --git a/Serenade/run.c b/Serenade/run.c index f208f0e..ec74952 100644 --- a/Serenade/run.c +++ b/Serenade/run.c @@ -56,7 +56,7 @@ struct sn_generic* _sn_run(struct sn_interpreter* sn, struct sn_generic* gen) { r->type = SN_TYPE_VOID; if(op->type != SN_TYPE_FUNCTION) { - fprintf(stderr, "Cannot call non-function (%d)\n", op->type); + fprintf(stderr, "Cannot call non-function (Type %d)\n", op->type); free(args); return NULL; } else {