[Freeciv-Dev] Re: the things i dislike about freeciv
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
----- Original Message -----
From: "Jamie Kawabata" <kawabata@xxxxxxxxxxxxxxxxx>
To: <stuckey@xxxxxxxxxxxxxxxxx>
Cc: <freeciv-dev@xxxxxxxxxxx>
Sent: Friday, October 13, 2000 3:00 PM
Subject: [Freeciv-Dev] the things i dislike about freeciv
>
> 2.b. header files include other header files. circular references, if any
are almost guaranteed to cause problems. if a.h needs to include b.h, and
b.h needs to include a.h, then what happens is a.h includes b.h, and b.h
attempts to include a.h, which is a no-op, since FC__A_H is defined, and so
b.h has all kinds of undefined references, unknown types, etc.
I always use reciprocally-included headers, and have never had this problem.
Indeed, if b.h has been included by a.h, the declarations are alread in the
preprocessed file.
Just my 2p
SamBC
- [Freeciv-Dev] Re: the things i dislike about freeciv, (continued)
[Freeciv-Dev] Re: the things i dislike about freeciv, Gaute Strokkenes, 2000/10/13
[Freeciv-Dev] Re: the things i dislike about freeciv, Falk Hueffner, 2000/10/13
[Freeciv-Dev] Re: the things i dislike about freeciv, Reinier Post, 2000/10/14
[Freeciv-Dev] Re: the things i dislike about freeciv, David Pfitzner, 2000/10/14
[Freeciv-Dev] Re: the things i dislike about freeciv, Jarda Benkovsky, 2000/10/17
[Freeciv-Dev] Re: the things i dislike about freeciv,
SamBC <=
|
|