Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2002:
[Freeciv-Dev] Re: client string options: choosing from a list (v2) (PR#1
Home

[Freeciv-Dev] Re: client string options: choosing from a list (v2) (PR#1

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: client string options: choosing from a list (v2) (PR#1856)
From: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Date: Fri, 2 Aug 2002 06:48:10 +0200

On Thu, Aug 01, 2002 at 03:24:43PM -0700, jdorje@xxxxxxxxxxxxxxxxxxxxx wrote:
> Here is a new version of the patch.
> 
> Changes:
> 
> - Fixed bugs when there are no available choices for
> the strings.
> 
> - Changed some char** to const char**.
> 
> - Added #defines for ".tilespec" and ".spec",
> simultaneously removing an arbitrary string-length
> restriction of 16.  (As a side note, I wish it were
> .sndspec instead of .spec for sound sets.  Changing
> this should now just require changing the #define, but
> backwards-compatability would be broken.)
> 
> - Instead of hard-coding the list of sound plugins,
> loop over the available plugins to assemble the list.

> - Removed the use of scandir().  glob() is now used
> instead.  This is at least a POSIX standard, although
> it may still not work on non-POSIX systems.  But what
> alternatives are there?

readdir(3) is in SVID 3, POSIX, BSD 4.3. You have to do the matching
by yourself however.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 Windows: Where do you want to go today?
 Linux: Where do you want to go tomorrow?
 BSD: Are you guys coming or what?


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