Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2000:
[Freeciv-Dev] Re: jjm: Fix bug in recent transitive unit upgrade patch.
Home

[Freeciv-Dev] Re: jjm: Fix bug in recent transitive unit upgrade patch.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: jjm: Fix bug in recent transitive unit upgrade patch...
From: Jeff Mallatt <jjm@xxxxxxxxxxxx>
Date: Sun, 23 Apr 2000 16:45:36 -0400

At 2000/04/23 01:05 , David Pfitzner wrote:
>Anyway, while doing so I was disconcerted to find that we have two
>functions called "upgrade_unit":
>-- a "public" upgrade_unit() in server/unithand.h
>-- a static upgrade_unit() in cityturn.c (which doesn't include 
>   unithand.h)
>
>These functions have different signatures and very different effects
>(one returns a value, the other actually upgrades a unit), and I 
>think one of them should be renamed to avoid potential confusion.

Absolutely!  Here's a patch which renames the static one in cityturn.c.  It
also renames the static upgrade_improvement() in cityturn.c, in a manner
consistent with the renaming of upgrade_unit().

Attachment: rename-upgrade-unit-0.diff
Description: Text document

jjm

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