This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Some more fortran safe-ctype & cleanups


 > From: Neil Booth <neil@daikokuya.demon.co.uk>
 > 
 > Kaveh R. Ghazi wrote:-
 > 
 > > One note, there was no direct equivalent to is_hor_space in
 > > safe-ctype, so it became ISSPACE && != '\n'.
 > 
 > is_nvspace exists for this case ("is a non-vertical space").  Maybe
 > the Fortran front end doesn't handle the CR-LF etc. dilemma properly
 > at the moment; I know Java, C, ObjC and C++ do.
 > 
 > is_nvspace() is what cpplib uses.
 > Neil.

Yes but as I alluded to in my original posting, its not an exact
match, is_hor_space is true for ' ', '\t', '\v', '\f' and '\r' while
is_nvspace is true for ' ', '\t', '\v', '\f', and '\0'.

The difference is '\r' vs '\0'.

If is_nvspace is "good enough", I'm more than happy to use it instead.

		--Kaveh

PS: I'm not sure what you mean by the "CR-LF dilemma".

--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]