From e5f2c1de1a3f841a524c219f3f1a3eb3628eb50c Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Wed, 25 May 2016 15:20:48 -0400 Subject: [PATCH] tokenize_asoft: fix so it handles AT/ATN case properly a bit of a hack though --- asoft_basic-utils/tokenize_asoft.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/asoft_basic-utils/tokenize_asoft.c b/asoft_basic-utils/tokenize_asoft.c index 3f977aca..0d4ec9f1 100644 --- a/asoft_basic-utils/tokenize_asoft.c +++ b/asoft_basic-utils/tokenize_asoft.c @@ -89,6 +89,8 @@ static int getnum(void) { static int in_quotes=0,in_rem=0; +/* note: try to find longest possible token */ +/* otherwise ATN is turned into AT N */ static int find_token(void) { int ch,i; @@ -118,13 +120,16 @@ static int find_token(void) { /* don't tokenize if in quotes */ if ((!in_quotes)&&(!in_rem)) { - // fprintf(stderr,"%s",line_ptr); +// fprintf(stderr,"%s",line_ptr); for(i=0;i