X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=phpstr%2Fphpstr.h;fp=phpstr%2Fphpstr.h;h=40e2e32f92587be8c9bef0aa260e737986be532f;hp=ac58c1d320f95c974080a693a24dfbce75a2561d;hb=31092c29dba06404d2f0d856d5a89f0b28be6f0b;hpb=e617c45f50c2233376a2cac393da1f0d03965a5c;ds=sidebyside diff --git a/phpstr/phpstr.h b/phpstr/phpstr.h index ac58c1d..40e2e32 100644 --- a/phpstr/phpstr.h +++ b/phpstr/phpstr.h @@ -105,8 +105,8 @@ PHPSTR_API phpstr *phpstr_init_ex(phpstr *buf, size_t chunk_size, int flags); PHPSTR_API phpstr *phpstr_from_string_ex(phpstr *buf, const char *string, size_t length); /* usually only called from within the internal functions */ -#define phpstr_resize(b, s) phpstr_resize_ex((b), (s), 0) -PHPSTR_API size_t phpstr_resize_ex(phpstr *buf, size_t len, size_t override_size); +#define phpstr_resize(b, s) phpstr_resize_ex((b), (s), 0, 0) +PHPSTR_API size_t phpstr_resize_ex(phpstr *buf, size_t len, size_t override_size, int allow_error); /* shrink memory chunk to actually used size (+1) */ PHPSTR_API size_t phpstr_shrink(phpstr *buf);