From dd7529b42ca4ae4673fec5a674f22f664a1369ce Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 10 May 2006 04:51:07 +0000 Subject: [PATCH] Fixed a bug where three of the new pragmas parsed spaces wrong --- compiler/libpc300/sc2.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/compiler/libpc300/sc2.c b/compiler/libpc300/sc2.c index f18f6bb4..41fae03f 100755 --- a/compiler/libpc300/sc2.c +++ b/compiler/libpc300/sc2.c @@ -1026,6 +1026,7 @@ static int command(void) char name[sNAMEMAX+1],sname[sNAMEMAX+1]; const char *prefix = ""; sname[0] = '\0'; + sname[1] = '\0'; if (!strcmp(str, "reqlib")) prefix = "?rl_"; else if (!strcmp(str, "reqclass")) @@ -1048,16 +1049,16 @@ static int command(void) name[i]=*lptr; name[i]='\0'; if (!strncmp(str, "exp", 3) || !strncmp(str, "def", 3)) - { - while (*lptr && isalpha(*lptr)) + { + while (*lptr && isspace(*lptr)) lptr++; for (i=1; i