allow runes >= 0x80 in symbols in #pragmas

R=ken
OCL=34975
CL=34975
This commit is contained in:
Russ Cox 2009-09-24 11:45:08 -07:00
parent a4d09c2aa3
commit 5de6096415
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ getsym(void)
char *cp;
c = getnsc();
if(!isalpha(c) && c != '_') {
if(!isalpha(c) && c != '_' && c < 0x80) {
unget(c);
return S;
}
@ -63,7 +63,7 @@ getsym(void)
if(cp <= symb+NSYMB-4)
*cp++ = c;
c = getc();
if(isalnum(c) || c == '_')
if(isalnum(c) || c == '_' || c >= 0x80)
continue;
unget(c);
break;