Branch: Tag:


2008-07-16 01:19:46 by Martin Stjernholm <>

Nicer if low_make_buf_space takes a signed amount to allow shrinking, than
that it's given a very large unsigned number that causes wrap-around.

Rev: src/dynamic_buffer.c:1.27
Rev: src/dynamic_buffer.h:1.22
Rev: src/program.c:1.737

2:   || 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.h,v 1.21 2006/07/05 02:17:09 mast Exp $ + || $Id: dynamic_buffer.h,v 1.22 2008/07/16 01:08:05 mast Exp $   */      #ifndef DYNAMIC_BUFFER_H
29:   PMOD_EXPORT extern dynamic_buffer pike_global_buffer;      /* Prototypes begin here */ - PMOD_EXPORT char *low_make_buf_space(size_t space, dynamic_buffer *buf); + PMOD_EXPORT char *low_make_buf_space(ptrdiff_t space, dynamic_buffer *buf);   PMOD_EXPORT void low_my_putchar(int b,dynamic_buffer *buf);   PMOD_EXPORT void low_my_binary_strcat(const char *b, size_t l, dynamic_buffer *buf);   PMOD_EXPORT void debug_initialize_buf(dynamic_buffer *buf);