Searched refs:newsize (Results 1 – 8 of 8) sorted by path
/PHP-7.4/ext/pcre/pcre2lib/ |
H A D | pcre2_compile.c | 4577 uint32_t newsize = cb->named_group_list_size * 2; in parse_regex() local 4579 cb->cx->memctl.malloc(newsize * sizeof(named_group), in parse_regex() 4593 cb->named_group_list_size = newsize; in parse_regex()
|
H A D | pcre2_dfa_match.c | 429 uint32_t newsize = (rws->size >= UINT32_MAX/2)? UINT32_MAX/2 : rws->size * 2; in more_workspace() local 430 uint32_t newsizeK = newsize/(1024/sizeof(int)); in more_workspace() 434 newsize = newsizeK*(1024/sizeof(int)); in more_workspace() 436 if (newsize < RWS_RSIZE + ovecsize + RWS_ANCHOR_SIZE) in more_workspace() 438 new = mb->memctl.malloc(newsize*sizeof(int), mb->memctl.memory_data); in more_workspace() 442 new->size = newsize; in more_workspace()
|
H A D | pcre2_match.c | 654 PCRE2_SIZE newsize = mb->frame_vector_size * 2; in match() local 657 if ((newsize / 1024) > mb->heap_limit) in match() 661 newsize = maxsize; in match() 664 new = mb->memctl.malloc(newsize, mb->memctl.memory_data); in match() 674 mb->match_frames_top = (heapframe *)((char *)mb->match_frames + newsize); in match() 675 mb->frame_vector_size = newsize; in match()
|
/PHP-7.4/ext/xmlrpc/libxmlrpc/ |
H A D | simplestring.c | 197 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*)erealloc(target->str, newsize); in simplestring_addn() 223 target->size = target->str ? newsize : 0; in simplestring_addn()
|
/PHP-7.4/main/ |
H A D | php_streams.h | 431 PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize);
|
/PHP-7.4/main/streams/ |
H A D | memory.c | 234 size_t newsize; in php_stream_memory_set_option() local 246 newsize = *(size_t*)ptrparam; in php_stream_memory_set_option() 247 if (newsize <= ms->fsize) { in php_stream_memory_set_option() 248 if (newsize < ms->fpos) { in php_stream_memory_set_option() 249 ms->fpos = newsize; in php_stream_memory_set_option() 252 ms->data = erealloc(ms->data, newsize); in php_stream_memory_set_option() 253 memset(ms->data+ms->fsize, 0, newsize - ms->fsize); in php_stream_memory_set_option() 254 ms->fsize = newsize; in php_stream_memory_set_option() 256 ms->fsize = newsize; in php_stream_memory_set_option()
|
H A D | streams.c | 1411 PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize) in _php_stream_truncate_set_size() argument 1413 …_stream_set_option(stream, PHP_STREAM_OPTION_TRUNCATE_API, PHP_STREAM_TRUNCATE_SET_SIZE, &newsize); in _php_stream_truncate_set_size()
|
/PHP-7.4/win32/ |
H A D | glob.c | 713 u_int newsize, len; local 717 newsize = sizeof(*pathv) * (2 + pglob->gl_pathc + pglob->gl_offs); 718 pathv = pglob->gl_pathv ? realloc((char *)pglob->gl_pathv, newsize) : 719 malloc(newsize); 751 newsize + *limitp >= ARG_MAX) {
|
Completed in 74 milliseconds