From: nishi Date: Thu, 23 May 2024 10:29:00 +0000 (+0000) Subject: better debug X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=7af9f4d36ef9194c225ac6e576ac46ea77d3f5c8;p=dataworks.git better debug git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@90 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- diff --git a/Client/main.c b/Client/main.c index 0e003b7..ec56b77 100644 --- a/Client/main.c +++ b/Client/main.c @@ -54,7 +54,7 @@ void padleft(int leftpad, const char* str) { void print_recursive(struct __dw_token* token, int depth) { int i; for(i = 0; i < depth; i++) printf(" "); - printf("%d:%s\n", token->type, token->name == NULL ? "(null)" : token->name); + printf("%d:[%s]\n", token->type, token->name == NULL ? "(null)" : token->name); if(token->token != NULL) { for(i = 0; token->token[i] != NULL; i++) print_recursive(token->token[i], depth + 1); }