nonportable function used in GNU Fortran

Fred Fish fnf@ninemoons.com
Sun Sep 7 08:31:00 GMT 1997


The isascii function is not ANSI-C.  I don't know if it is in posix or
not.  I'm building on a system that does not have it.  The following
patch will work, but is probably not the best way to solve this
problem.  I'd recommend either reworking the code to use only ANSI-C
is* functions or using configure to check for the availability of
isascii and then supplying this macro if HAVE_ISASCII is not defined.

-Fred

Index: f/proj.h
===================================================================
RCS file: /cvsroot/gg/egcs/gcc/f/proj.h,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 proj.h
*** proj.h	1997/09/04 04:44:27	1.1.1.1
--- proj.h	1997/09/07 15:33:08
***************
*** 99,102 ****
--- 99,106 ----
  #define dmpout stderr
  #endif
  
+ #ifndef isascii
+ #define isascii(c) ((unsigned char)(c) <= 0x3F)
+ #endif
+ 
  #endif



More information about the Gcc-bugs mailing list