pike.git / src / dynamic_buffer.h

version» Context lines:

pike.git/src/dynamic_buffer.h:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/      /* -  * $Id: dynamic_buffer.h,v 1.7 2000/03/20 21:00:04 hubbe Exp $ +  * $Id: dynamic_buffer.h,v 1.8 2000/03/26 14:18:12 grubba Exp $    */   #ifndef DYNAMIC_BUFFER_H   #define DYNAMIC_BUFFER_H      #define BUFFER_BEGIN_SIZE 4080      struct string_s   {    char *str;    SIZE_T len;
pike.git/src/dynamic_buffer.h:47:   void init_buf(void);   void init_buf_with_string(string s);   char *debug_return_buf(void);   /* Prototypes end here */      #ifdef DEBUG_MALLOC   #define initialize_buf(X) \    do { dynamic_buffer *b_=(X); debug_initialize_buf(b_); \    debug_malloc_touch(b_->s.str); } while(0)   #define low_free_buf(X) \ -  ((struct pike_string *)debug_malloc_touch(debug_low_free_buf(X))) +  ((struct pike_string *)debug_malloc_pass(debug_low_free_buf(X)))      #define free_buf() \ -  ((struct pike_string *)debug_malloc_touch(debug_free_buf())) +  ((struct pike_string *)debug_malloc_pass(debug_free_buf()))      #define return_buf() \ -  ((char *)debug_malloc_touch(debug_return_buf())) +  ((char *)debug_malloc_pass(debug_return_buf()))      #else   #define initialize_buf debug_initialize_buf   #define low_free_buf debug_low_free_buf   #define free_buf debug_free_buf   #define return_buf debug_return_buf   #endif      #endif