pike.git / src / dynamic_buffer.c

version» Context lines:

pike.git/src/dynamic_buffer.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: dynamic_buffer.c,v 1.27 2008/07/16 01:08:05 mast Exp $ + || $Id$   */      #include "global.h"   #include "dynamic_buffer.h"   #include "stralloc.h"   #include "pike_error.h"   #include "pike_memory.h"      PMOD_EXPORT dynamic_buffer pike_global_buffer;   
pike.git/src/dynamic_buffer.c:23:    if(buf->s.len+space >= buf->bufsize)    {    if(!buf->bufsize) buf->bufsize=1;       do{    buf->bufsize*=2;    }while(buf->s.len+space >= buf->bufsize);       buf->s.str=(char *)realloc(buf->s.str, buf->bufsize);    if(!buf->s.str) -  Pike_error("Out of memory.\n"); +  Pike_fatal("Out of memory.\n");    }    ret = buf->s.str + buf->s.len;    buf->s.len += space;    return ret;   }      PMOD_EXPORT void low_my_putchar(int b,dynamic_buffer *buf)   {   #ifdef PIKE_DEBUG    if(!buf->s.str)