Re: Buffers

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 08/19/97


On Wed, 20 Aug 1997, Andrew Helm wrote:

>In buffer.h and buffer.c you use __FUNCTION__ a couple of times.
>It appears that __FUNCTION__ isn't ansi standard.... my compiler

AIX gcc 2.7.2 and Linux gcc 2.7.2.2 are ok with it...maybe it's a GNU
extension...__FILE__ works fine though.  Just #define __FUNCTION__ __FILE__

>BTW, have you profiled a mud with the buffer code yet? I'd be

Not as of yet.  I want to use inline functions but I know that some
compilers don't like them.

>Also, how about adding the ability to collect statistics on
>buffer usage? (ie- ratio of small buffers to players, ratio
>Once again, thanks for the cool patch. =)

show buffers ?

Not quite everything you want but still interesting.  Statistics isn't
really a priority though... :)

The best part about this patch is that it does things that I didn't even
think of when I started it:  Buffer corruption and snprintf() support.

--
greerga@muohio.edu me@null.net | Genius may have its limitations, but stupidity
http://www.muohio.edu/~greerga | is not thus handicapped. -- Elbert Hubbard


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



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