gsn definitions
"Davion Kalhen" <[email protected]> Tue, 13 Feb 2007 11:48:36 -0800
| Newsgroups | gmane.games.devel.mud.rom |
|---|---|
| Message-ID | <[email protected]> |
On 2/13/07, Keith Mervine <[email protected]> wrote: > You know, I had always wondered that as well. But I do know that it won't > compile without it. An answer would make my day as well. > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf Of Sandi Fallon > Sent: Tuesday, February 13, 2007 9:53 AM > To: [email protected] > Subject: [ROM] gsn definitions > > So... > > I was wondering why the gsns are defined in merc.h AND db.c > > Is it really necessary to have them in both places? > > > > Sandi > -- > ROM mailing list > [email protected] > Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date: 2/12/2007 > 1:23 PM > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date: 2/12/2007 > 1:23 PM > > > -- > ROM mailing list > [email protected] > Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom > They definitely aren't defined in both. They are defined in db.c. In merc.h you'll notice prior to the definition you have 'extern'. This allows you to use these variables in different files other than db.c. Davion -- A MudBytes Administrator http://www.mudbytes.net - A Code Repository -- ROM mailing list [email protected] Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom