Re: hmmm.... db.c:free_char()

From: George (greerga@CIRCLEMUD.ORG)
Date: 08/07/98

On Fri, 7 Aug 1998, Mark A. Heilpern wrote:

>On a side note, why would you ever want to enclose code within a "do { }
>while (0);"  block? If you've a legitimate need for a sub-block of code,
>such as to introduce some very temporary local variables, just use your
>braces and forget the do/while.



        { free(x); x = NULL; };

I forget all of the reasons, but CircleMUD's CREATE() macro does the
do...while too.

George Greer, | Genius may have its limitations, but (not done) | stupidity is not thus handicapped.    |                  -- Elbert Hubbard

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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