pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2014-08-27
2014-08-27 06:47:24 by Stephen R. van den Berg <srb@cuci.nl>
61b7c8648da11fca18a21730c90e1aa61784eaa4 (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
8.0
Fix prototype, and do not second-guess the user for optimum size.
2983:
void f_Buffer_get( INT32 args ); void f_Buffer_add( INT32 args );
-
/*! @decl void create(int initial_size)
+
/*! @decl void create(
void|
int
(1..)
initial_size)
*! *! Initializes a new buffer. *!
2996:
{ struct Buffer_struct *str = THIS; init_string_builder_alloc(&str->str,
-
str->initial = size ?
MAXIMUM
(
size->u.integer,
512
) : 256 , 0);
+
str->initial = size ?
MINIMUM
(size->u.integer,
1
) : 256 , 0);
} /*! @decl string _sprintf( int flag, mapping flags )