Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2000:
[Freeciv-Dev] Re: [PATCH] The Freeciv motto. (PR#547)
Home

[Freeciv-Dev] Re: [PATCH] The Freeciv motto. (PR#547)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Jeff Mallatt <jjm@xxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH] The Freeciv motto. (PR#547)
From: gs234@xxxxxxxxx (Gaute (B) Strokkenes)
Date: 03 Sep 2000 19:20:40 +0200

Jeff Mallatt <jjm@xxxxxxxxxxxx> writes:

> At 2000/09/03 09:25 , Gaute (B) Strokkenes wrote:
> >
> >This patch replaces the function freeciv_motto() in common/shared.c
> >with an equivalent string in client/climisc.c.  Updates the gtk and
> >xaw clients; other clients should be trivial.  Tested on the xaw
> >client.
> 
> I prefer the way it is.  What reason(s) do you propose for making
> this change?

1) This is (gui-independent) client-only code, not common code.
   Therefore, it belongs in client/ rather than common/, not so much
   because of the bloat but because it makes the code harder to
   understand.

2) There is absolutely no reason why the motto needs to be wrapped in
   a function.  It's not done that way anywhere else in Freeciv, and
   there's no reason to do it that way here.  If the motto needs to be
   changed you can change the string as easily in climisc.c as you
   could within a function.  Unless I am gravely mistaken, there will
   not be any need to generate the motto on the fly, either.  Again,
   the issue is not the bloat, but the added complexity.

Are there any disadvantages to doing it this way that I have
overlooked?

-- 
Big Gaute (not to be confused with LG)
..The TENSION mounts as I MASSAGE your RIGHT ANKLE according to
 ancient Tibetan ACCOUNTING PROCEDURES..are you NEUROTIC yet??



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