Re: [code] [newbie] abbreviation snippet

From: Sammy (samedi@clark.net)
Date: 10/28/96


On Wed, 28 Oct 1981, scottb wrote:

- In adding the Abbreviations snippet I ran accross something I haven't 
- seen in the other snippets (yet):
- 	In 'handler.c', change isname() to this:
- 	#define WHITESPACE " \t"
-        -followed by the main body of the code.
- My question is basically, does the #define statement actually get placed 
- in handler.c or does it go in some other file? (for some reason I'm 
- thinking it might go in handler.h)

It can go in either.  Since it's only used in the new isname function, the
author put it before the function probably because it's easier to add and
it's a little more clear what it's for.  The defines in .h files are
generally used in more than one function.

Sam

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST