Added a check for non-ascii characters in the description files.
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user