On Fri, Sep 05, 2003 at 03:51:38AM +0000, Angus Leeming spake thusly:
> 
> I thought I'd see if I could strip out the redundant #includes, 
> so wrote a little script to remove each one in turn from a file 
> and ascertain whether the thing would still compile. It's a bit 
> slow but the results for mathed are promising.
>

<algorithm> in biblio.C, frnt_lang.C, xfont_loader.C, graph.C,
texrow.C...
<utility> in Alert_pimpl.h, ...
<math.h> in Color.C, ColorHandler.C, ...
<cmath> in FontInfo.C...
<functional> in BranchList.C...
<stdio.h> in factory.Ci, vspace.C 
        (because of sscanf... isn't that plain C? Dump it instead)
<cerrno> in lyx_cb.C...
<sys/stat.h> in lyxserver.C... (and what about os2 support?)
<sys/time.h> in ispell.C (and look at that HP/UX thingy!)
<clocale> in text3.C...

...but otherwise everything is great. This is for gcc 2.95.2. 

Perhaps you should leave standard headers alone :-)

- Martin

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to