From: nishi Date: Thu, 23 May 2024 10:34:27 +0000 (+0000) Subject: maybe a fix X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=f5fc7d2e1f8b09d7936de992e338c6132d3378cc;p=dataworks.git maybe a fix git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@93 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- diff --git a/Client/main.c b/Client/main.c index ec56b77..5dc7efd 100644 --- a/Client/main.c +++ b/Client/main.c @@ -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) { diff --git a/Library/parser.c b/Library/parser.c index 222c617..8a4151f 100644 --- a/Library/parser.c +++ b/Library/parser.c @@ -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) {