www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/15/05:42:52

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro and random numbers.
Date: Tue, 15 Feb 2000 09:44:14 +0200
Organization: NetVision Israel
Lines: 14
Message-ID: <Pine.SUN.3.91.1000215094355.23996F-100000@is>
References: <38A020E4 DOT 9D28E963 AT tiscalinet DOT it> <Pine DOT SUN DOT 3 DOT 91 DOT 1000209091129 DOT 9816Q-100000 AT is> <enr5assmagdrd6u5i93ugel0425kkc1qhe AT 4ax DOT com> <Pine DOT SUN DOT 3 DOT 91 DOT 1000213095950 DOT 29873Q-100000 AT is> <r9dfas0inrcsphav4rg2earar9tihg2nps AT 4ax DOT com>
NNTP-Posting-Host: is.elta.co.il
Mime-Version: 1.0
X-Trace: news.netvision.net.il 950600840 5987 199.203.121.2 (15 Feb 2000 07:47:20 GMT)
X-Complaints-To: abuse AT netvision DOT net DOT il
NNTP-Posting-Date: 15 Feb 2000 07:47:20 GMT
X-Sender: eliz AT is
In-Reply-To: <r9dfas0inrcsphav4rg2earar9tihg2nps@4ax.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 14 Feb 2000, Damian Yerrick wrote:

> So I can include DJGPP's random() (with the ad clause removed) in my
> GPL'd game, and it will work on other 32-bit compilers?

Yes.

> What about collisions with other compilers' libc

Don't call the functions `random', `srandom', etc.  Rename them to
`my_random' or something, and you don't have to worry about name-space
collisions.  If only a specific module uses an RNG, you can simply
make them static, then even renaming isn't necessary.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019