Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2000:
[Freeciv-Dev] Re: the things i dislike about freeciv
Home

[Freeciv-Dev] Re: the things i dislike about freeciv

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Jamie Kawabata" <kawabata@xxxxxxxxxxxxxxxxx>, <stuckey@xxxxxxxxxxxxxxxxx>
Cc: <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: the things i dislike about freeciv
From: "SamBC" <sambc@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 25 Oct 2000 08:46:55 +0100

----- 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




[Prev in Thread] Current Thread [Next in Thread]