Re: Including in header files

2003-08-21 Thread Andre Poenitz
On Thu, Aug 21, 2003 at 06:49:22PM +0200, Lars Gullik Bjønnes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > >> If we also have a rule that all .C files should include config.h > >> first. > > > | Ah, you mean that the .C is compiles, pulls in config.h and than its own > | headers? > | >

Re: Including in header files

2003-08-21 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: >> If we also have a rule that all .C files should include config.h >> first. > | Ah, you mean that the .C is compiles, pulls in config.h and than its own | headers? > | Could work, but would you call that 'nice and self contained'? Perhaps not, but you s

Re: Including in header files

2003-08-20 Thread Andre Poenitz
On Wed, Aug 20, 2003 at 11:42:21AM +0200, Lars Gullik Bjønnes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > | On Tue, Aug 19, 2003 at 11:37:42PM +, Angus Leeming wrote: > >> This is wrong, right? > > > | I have no idea what config.h is good for if I don't need it. But people > | kept

Re: Including in header files

2003-08-20 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Tue, Aug 19, 2003 at 11:37:42PM +, Angus Leeming wrote: >> This is wrong, right? > | I have no idea what config.h is good for if I don't need it. But people | kept telling me to include it, so I did. > >> Angus >> >> $ grep config.h `find . -name

Re: Including in header files

2003-08-20 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | This is wrong, right? | Angus Not necessarily... On most cases it will be wrong, so it should be looked at. -- Lgb

Re: Including in header files

2003-08-20 Thread Angus Leeming
Andre Poenitz wrote: > On Tue, Aug 19, 2003 at 11:37:42PM +, Angus Leeming wrote: >> This is wrong, right? > > I have no idea what config.h is good for if I don't need it. But > people kept telling me to include it, so I did. > >> Angus >> >> $ grep config.h `find . -name "*.h"` >> ./LStrin

Re: Including in header files

2003-08-20 Thread Andre Poenitz
On Tue, Aug 19, 2003 at 11:37:42PM +, Angus Leeming wrote: > This is wrong, right? I have no idea what config.h is good for if I don't need it. But people kept telling me to include it, so I did. > Angus > > $ grep config.h `find . -name "*.h"` > ./LString.h:#error The header should always

Including in header files

2003-08-19 Thread Angus Leeming
This is wrong, right? Angus $ grep config.h `find . -name "*.h"` ./LString.h:#error The header should always be included before LString.h ./kbsequence.h:#include ./rowpainter.h:#include ./toc.h:#include ./frontends/qt2/QtView.h:#include ./frontends/qt2/floatplacement.h:#include ./frontends/