Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2005:
[Freeciv-Dev] Re: (PR#11213) Making client headers compatible with C++
Home

[Freeciv-Dev] Re: (PR#11213) Making client headers compatible with C++

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] Re: (PR#11213) Making client headers compatible with C++
From: "Frédéric Brière" <fbriere@xxxxxxxxxxx>
Date: Thu, 31 Mar 2005 14:11:32 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11213 >

On Thu, Mar 31, 2005 at 01:13:53PM -0800, Benoit Hudson wrote:
> On Thu, Mar 31, 2005 at 09:55:05AM -0800, Jason Short wrote:
> > And here's a patch.

Well, I'll be!

> At least mention that we stutter on C++ keywords (this becomes tthis;
> I'm not sure there are any other instances, but it's a simple rule to

It does seem to be the only instance.  (And it was part of a mass
rename, so one may wonder whether or not it's still a consensus.)

FWIW, other examples include renaming this to this_something
(client/tilespec.c), new to newsomething (client/climisc.c) and *try to
*ptry (server/civserver.c).

Obviously, the best policy is to avoid such names in the first place.
See <http://david.tribble.com/text/cdiffs.htm#C99-cpp-keyword> to
refresh your memory, if need be.


-- 
             Frédéric Brière    <*>    fbriere@xxxxxxxxxxx

 =>  <fbriere@xxxxxxxxxx> IS NO MORE:  <http://www.abacomsucks.com>  <=





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