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() {
|
||||
register int token ;
|
||||
|
||||
if ( incore ) {
|
||||
if ( *inptr==0 ) return EOF ;
|
||||
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() {
|
||||
|
|
Loading…
Reference in a new issue