Added a check for non-ascii characters in the description files.
This commit is contained in:
parent
1fe1bc8c09
commit
36c1f227ea
1 changed files with 7 additions and 1 deletions
|
@ -367,11 +367,17 @@ char *readline() {
|
||||||
}
|
}
|
||||||
|
|
||||||
int getinchar() {
|
int getinchar() {
|
||||||
|
register int token ;
|
||||||
|
|
||||||
if ( incore ) {
|
if ( incore ) {
|
||||||
if ( *inptr==0 ) return EOF ;
|
if ( *inptr==0 ) return EOF ;
|
||||||
return *inptr++ ;
|
return *inptr++ ;
|
||||||
}
|
}
|
||||||
return getc(infile) ;
|
token= getc(infile) ;
|
||||||
|
if ( (token>=0177 || token <=0 ) && token !=EOF ) {
|
||||||
|
fuerror("Non-ascii character in description file %s",inname);
|
||||||
|
}
|
||||||
|
return token ;
|
||||||
}
|
}
|
||||||
|
|
||||||
int getline() {
|
int getline() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue