Fixed a bug where three of the new pragmas parsed spaces wrong
This commit is contained in:
parent
cfb36025b5
commit
dd7529b42c
|
@ -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"))
|
||||
|
@ -1049,14 +1050,14 @@ static int command(void)
|
|||
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<sizeof sname && alphanum(*lptr); i++,lptr++)
|
||||
sname[i]=*lptr;
|
||||
sname[i] = '\0';
|
||||
if (!sname[1])
|
||||
{
|
||||
error(28);
|
||||
error(45);
|
||||
} else {
|
||||
sname[0] = '_';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user