Home
last modified time | relevance | path

Searched refs:newsize (Results 1 – 7 of 7) sorted by relevance

/PHP-5.5/ext/xmlrpc/libxmlrpc/
H A Dsimplestring.c197 size_t newsize = target->size, incr = 0; in simplestring_addn() local
210 newsize = target->len + add_len + 1; in simplestring_addn()
215 newsize = newsize - (newsize % incr) + incr; in simplestring_addn()
217 if(newsize < (target->len + add_len + 1)) { in simplestring_addn()
221 target->str = (char*)realloc(target->str, newsize); in simplestring_addn()
223 target->size = target->str ? newsize : 0; in simplestring_addn()
/PHP-5.5/main/streams/
H A Dmemory.c250 size_t newsize; in php_stream_memory_set_option() local
262 newsize = *(size_t*)ptrparam; in php_stream_memory_set_option()
263 if (newsize <= ms->fsize) { in php_stream_memory_set_option()
264 if (newsize < ms->fpos) { in php_stream_memory_set_option()
265 ms->fpos = newsize; in php_stream_memory_set_option()
268 ms->data = erealloc(ms->data, newsize); in php_stream_memory_set_option()
269 memset(ms->data+ms->fsize, 0, newsize - ms->fsize); in php_stream_memory_set_option()
270 ms->fsize = newsize; in php_stream_memory_set_option()
272 ms->fsize = newsize; in php_stream_memory_set_option()
H A Dstreams.c1385 PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize TSRMLS_DC) in _php_stream_truncate_set_size()
1387 …_stream_set_option(stream, PHP_STREAM_OPTION_TRUNCATE_API, PHP_STREAM_TRUNCATE_SET_SIZE, &newsize); in _php_stream_truncate_set_size()
/PHP-5.5/ext/mbstring/oniguruma/
H A Dst.c115 int newsize; local
117 for (i = 0, newsize = MINSIZE;
119 i++, newsize <<= 1)
121 if (newsize > size) return primes[i];
/PHP-5.5/win32/
H A Dglob.c722 u_int newsize, len; local
726 newsize = sizeof(*pathv) * (2 + pglob->gl_pathc + pglob->gl_offs);
727 pathv = pglob->gl_pathv ? realloc((char *)pglob->gl_pathv, newsize) :
728 malloc(newsize);
759 newsize + *limitp >= ARG_MAX) {
/PHP-5.5/ext/pcre/pcrelib/
H A Dpcre_compile.c924 int newsize = cd->workspace_size * 2; in expand_workspace() local
926 if (newsize > COMPILE_WORK_SIZE_MAX) newsize = COMPILE_WORK_SIZE_MAX; in expand_workspace()
928 newsize - cd->workspace_size < WORK_SIZE_SAFETY_MARGIN) in expand_workspace()
931 newspace = (PUBL(malloc))(IN_UCHARS(newsize)); in expand_workspace()
938 cd->workspace_size = newsize; in expand_workspace()
7161 int newsize = cd->named_group_list_size * 2; in compile_branch() local
7163 (newsize * sizeof(named_group)); in compile_branch()
7176 cd->named_group_list_size = newsize; in compile_branch()
/PHP-5.5/main/
H A Dphp_streams.h418 PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize TSRMLS_DC);

Completed in 55 milliseconds