pike.git / src / dynamic_buffer.c

version» Context lines:

pike.git/src/dynamic_buffer.c:2:   ||| 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.   \*/   #include "global.h"   #include "dynamic_buffer.h"   #include "stralloc.h"   #include "error.h"   #include "pike_memory.h"    + RCSID("$Id: dynamic_buffer.c,v 1.8 1998/03/28 15:33:52 grubba Exp $"); +    static dynamic_buffer buff;      char *low_make_buf_space(INT32 space, dynamic_buffer *buf)   {    char *ret;   #ifdef DEBUG    if(!buf->s.str) fatal("ARRRRGH! Deadly Trap!\n");   #endif       if(buf->s.len+space >= buf->bufsize)