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:124:    return q;   }      PMOD_EXPORT struct pike_string *debug_free_buf(dynamic_buffer *old_buf)   {    struct pike_string *res = low_free_buf(&pike_global_buffer);    pike_global_buffer = *old_buf;    return res;   }    + PMOD_EXPORT void abandon_buf(dynamic_buffer *old_buf) + { +  toss_buffer(&pike_global_buffer); +  pike_global_buffer = *old_buf; + } +    PMOD_EXPORT char *make_buf_space(INT32 space)   {    return low_make_buf_space(space,&pike_global_buffer);   }      PMOD_EXPORT void my_putchar(int b)   {    low_my_putchar(b,&pike_global_buffer);   }