David Megginson writes:
>

> Norman Vine writes:
> 
>  > IMHO - If at all possible we don't want *more* headers to slow the already
>  > overly long compile times :-(
> 
> The best way to speed up compile times is to reduce unnecessary
> interdependencies.  Right now, a lot of header files include other
> headers that they don't actually need, so that a one-byte change to a
> seemingly innocuous *.hxx file can cause most of FlightGear to be
> rebuilt.  I'm trying to fix the problems as I find them.

Sounds good    

Here are a couple of obvious ones 

Norman

Index: fg_fx.hxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Sound/fg_fx.hxx,v
retrieving revision 1.1.1.1
diff -c -w -r1.1.1.1 fg_fx.hxx
*** fg_fx.hxx   10 Sep 2002 01:14:08 -0000      1.1.1.1
--- fg_fx.hxx   29 Dec 2002 22:09:25 -0000
***************
*** 24,33 ****
  #ifndef __FGFX_HXX
  #define __FGFX_HXX 1
  
! #include <simgear/compiler.h>
! 
! #include "fg_sound.hxx"
  
  
  /**
   * Generator for FlightGear sound effects.
--- 24,32 ----
  #ifndef __FGFX_HXX
  #define __FGFX_HXX 1
  
! #include <Main/fgfs.hxx>
  
+ class FGSound;
  
  /**
   * Generator for FlightGear sound effects.


Index: panel_io.hxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Cockpit/panel_io.hxx,v
retrieving revision 1.1.1.1
diff -c -w -r1.1.1.1 panel_io.hxx
*** panel_io.hxx        10 Sep 2002 01:14:00 -0000      1.1.1.1
--- panel_io.hxx        29 Dec 2002 22:10:01 -0000
***************
*** 33,40 ****
  
  #include STL_IOSTREAM
  
- #include "panel.hxx"
- 
  #if !defined (SG_HAVE_NATIVE_SGI_COMPILERS)
  SG_USING_STD(istream);
  #endif
--- 33,38 ----



_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to