]> Nishi Git Mirror - serenade.git/commitdiff
error message
authornishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Wed, 24 Apr 2024 00:22:51 +0000 (00:22 +0000)
committernishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Wed, 24 Apr 2024 00:22:51 +0000 (00:22 +0000)
git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@26 0f02c867-ac3d-714e-8a88-971ba1f6efcf

Serenade/parser.c
Serenade/run.c

index 12fdc212ef73c2ee6681ba046970eb12297ec86a..fe92f98b8d372eee6d43dc143e255a97658afcb8 100644 (file)
@@ -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]++;
index f208f0ec6e5ef63db838a20942d0bd5a8f48bc63..ec74952bfbec163de6236471fd90cb6cb349fef2 100644 (file)
@@ -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 {