]> Nishi Git Mirror - dataworks.git/commitdiff
maybe a fix
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Thu, 23 May 2024 10:34:27 +0000 (10:34 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Thu, 23 May 2024 10:34:27 +0000 (10:34 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@93 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

Client/main.c
Library/parser.c

index ec56b778324a250f9d10a3fa25c4531b38c6ce78..5dc7efda669ea6962d28b132bf5f04b64cb632b7 100644 (file)
@@ -227,6 +227,7 @@ int main(int argc, char** argv) {
                                free(tmp);
                                int i;
                                while(true) {
+                                       bool breakit = true;
                                        for(i = 0; linebuf[i] != 0; i++) {
                                                if(linebuf[i] == ';') {
                                                        char* line = malloc(i + 1);
@@ -251,10 +252,10 @@ int main(int argc, char** argv) {
                                                                free(linebuf);
                                                                linebuf = newbuf;
                                                        }
-                                                       continue;
+                                                       breakit = false;
                                                }
                                        }
-                                       break;
+                                       if(breakit) break;
                                }
                        }
                        if(fprog == NULL) {
index 222c61741d38c9f18feebe6be3e0e89d5a8a6b37..8a4151f14d9a10b2c0feeffb535005b52000beb0 100644 (file)
@@ -118,7 +118,6 @@ struct __dw_token* __dw_parser_parse(const char* str) {
                                                comma = __dw_strcat(tmp, cbuf);
                                                free(tmp);
                                        } else if(c == 0 || c == ',') {
-                                                       printf("[%s]\n", comma);
                                                if(strlen(comma) > 0){
                                                        j = 0;
                                                        if(token->token != NULL) {