Patch installed: convert scan.h & system.h to ISO C

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Mon Jun 16 19:48:00 GMT 2003


 > From: Zack Weinberg <zack@codesourcery.com>
 > 
 > "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> writes:
 > 
 > > Bootstrapped on sparc-sun-solaris2.7, installed as "obvious".
 > 
 > This raises the interesting question of whether we should expect a C90
 > _library_ from the host system.  If we do, then for instance we can
 > assume the existence of stdlib.h and string.h; we need not bother
 > including strings.h nor memory.h; we need not check in configure for
 > any C90 specified library function, nor provide fallback prototypes.
 > 
 > As far as I know we haven't decided on a definitive answer to this
 > question.
 > zw

Yup, we haven't addressed this.  I certainly think that's the
direction we're headed.  But I don't see any urgent need for it.

Reason being: the K&R C style was scattered throughout all of the
sources and uglified everything.  Whereas header and library stuff is
encapsulated in libiberty and system.h.  So it's not hurting anybody
by being there.

In fact, I'd prefer to do things one step at a time and actually
finish converting to ISO-style C before opening up more types of
conversion.  That way we won't end up with more half-way converted
stuff.  (Something I recall you mentioned in your maintenance
presentation.)

--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu



More information about the Gcc-patches mailing list