Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 252) sorted by relevance

1234567891011

/php-src/ext/date/lib/
H A Dparse_posix.c69 (*ptr)++; in read_description_numeric_abbr()
71 while (**ptr != '\0' && **ptr != '>') { in read_description_numeric_abbr()
72 (*ptr)++; in read_description_numeric_abbr()
80 (*ptr)++; in read_description_numeric_abbr()
97 while ((**ptr >= 'A' && **ptr <= 'Z') || (**ptr >= 'a' && **ptr <= 'z')) { in read_description_abbr()
98 (*ptr)++; in read_description_abbr()
145 while (**ptr >= '0' && **ptr <= '9') { in read_number()
211 (*ptr)++; in read_trans_spec_mwd()
222 (*ptr)++; in read_trans_spec_mwd()
233 (*ptr)++; in read_trans_spec_mwd()
[all …]
H A Dparse_date.re526 while ((**ptr != '.') && (**ptr != ':') && ((**ptr < '0') || (**ptr > '9'))) {
533 while ((**ptr == '.') || (**ptr == ':') || ((**ptr >= '0') && (**ptr <= '9'))) {
552 while (((**ptr < '0') || (**ptr > '9')) && (**ptr != '+') && (**ptr != '-')) {
608 while ((**ptr >= 'A' && **ptr <= 'Z') || (**ptr >= 'a' && **ptr <= 'z')) {
628 while (**ptr == ' ' || **ptr == '\t' || **ptr == '-' || **ptr == '/') {
641 while ((**ptr >= 'A' && **ptr <= 'Z') || (**ptr >= 'a' && **ptr <= 'z')) {
660 while (**ptr == ' ' || **ptr == '\t' || **ptr == '-' || **ptr == '.' || **ptr == '/') {
699 …while (**ptr != '\0' && **ptr != ' ' && **ptr != ',' && **ptr != '\t' && **ptr != ';' && **ptr != …
700 **ptr != '/' && **ptr != '.' && **ptr != '-' && **ptr != '(' && **ptr != ')' ) {
822 **ptr == '/' || **ptr == '_' || **ptr == '-' || **ptr == '+'
[all …]
H A Dparse_iso_intervals.re113 while ((**ptr < '0') || (**ptr > '9')) {
117 ++*ptr;
121 ++*ptr;
136 while (((**ptr < '0') || (**ptr > '9')) && (**ptr != '+') && (**ptr != '-')) {
140 ++*ptr;
143 while (**ptr == '+' || **ptr == '-')
212 ptr++;
249 ptr++;
290 ptr++;
292 ptr++;
[all …]
/php-src/Zend/
H A Dzend_map_ptr.h31 #define ZEND_MAP_PTR(ptr) \ argument
32 ptr ## __ptr
40 ZEND_MAP_PTR(ptr) = (val); \
42 #define ZEND_MAP_PTR_NEW(ptr) do { \ argument
54 # define ZEND_MAP_PTR_GET(ptr) \ argument
55 ((ZEND_MAP_PTR_IS_OFFSET(ptr) ? \
56 ZEND_MAP_PTR_GET_IMM(ptr) : \
57 ((void*)(ZEND_MAP_PTR(ptr)))))
58 # define ZEND_MAP_PTR_GET_IMM(ptr) \ argument
62 ZEND_MAP_PTR_SET_IMM(ptr, val); \
[all …]
H A Dzend_alloc.h130 _efree(ptr); \
134 efree_size(ptr, size)
139 efree(ptr)
141 efree_rel(ptr)
155 #define efree(ptr) _efree((ptr) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC) argument
191 #define pefree(ptr, persistent) ((persistent)?free(ptr):efree(ptr)) argument
194 free(ptr); \
196 efree_size(ptr, size);\
204 #define perealloc_recoverable(ptr, size, persistent) ((persistent)?realloc((ptr), (size)):erealloc_… argument
210 #define pefree_rel(ptr, persistent) ((persistent)?free(ptr):efree_rel(ptr)) argument
[all …]
H A Dzend_arena.h29 char *ptr; member
56 char *ptr = arena->ptr; in zend_arena_alloc() local
61 arena->ptr = ptr + size; in zend_arena_alloc()
76 return (void*) ptr; in zend_arena_alloc()
96 return arena->ptr; in zend_arena_checkpoint()
116 if ((char*)ptr > (char*)arena && (char*)ptr <= arena->ptr) { in zend_arena_contains()
132 void **ptr; member
154 void **ptr; in zend_arena_destroy() local
155 for (ptr = arena->ptrs; ptr < arena->ptr; ptr++) { in zend_arena_destroy()
156 efree(*ptr); in zend_arena_destroy()
[all …]
H A Dzend_alloc.c503 return ptr; in zend_mm_mmap_fixed()
523 return ptr; in zend_mm_mmap_fixed()
539 return ptr; in zend_mm_mmap()
541 void *ptr; in zend_mm_mmap()
569 return ptr; in zend_mm_mmap()
781 ptr = (void*)((char*)ptr + alignment - offset);
790 ptr = (char*)ptr + offset;
1844 list->ptr = ptr;
1862 if (list->ptr == ptr) {
1885 if (list->ptr == ptr) {
[all …]
/php-src/ext/hash/murmur/
H A DPMurHash128.c272 for( ; ptr < end ; ptr+=16) { in PMurHash128x86_Process()
294 for( ; ptr < end ; ptr+=16) { in PMurHash128x86_Process()
306 for( ; ptr < end ; ptr+=16) { in PMurHash128x86_Process()
322 for( ; ptr < end ; ptr+=16) { in PMurHash128x86_Process()
334 for( ; ptr < end ; ptr+=16) { in PMurHash128x86_Process()
350 for( ; ptr < end ; ptr+=16) { in PMurHash128x86_Process()
362 for( ; ptr < end ; ptr+=16) { in PMurHash128x86_Process()
377 for( ; ptr < end ; ptr+=16) { in PMurHash128x86_Process()
551 for( ; ptr < end ; ptr+=16) { in PMurHash128x64_Process()
571 for( ; ptr < end ; ptr+=16) { in PMurHash128x64_Process()
[all …]
H A DPMurHash.c83 #define READ_UINT32(ptr) getblock32((uint32_t *)ptr, 0) argument
144 end = ptr + (len & ~3); in PMurHash32_Process()
145 for( ; ptr < end ; ptr+=4) { in PMurHash32_Process()
160 end = ptr + (len & ~3); in PMurHash32_Process()
163 for( ; ptr < end ; ptr+=4) { in PMurHash32_Process()
169 for( ; ptr < end ; ptr+=4) { in PMurHash32_Process()
171 c = READ_UINT32(ptr); in PMurHash32_Process()
177 for( ; ptr < end ; ptr+=4) { in PMurHash32_Process()
179 c = READ_UINT32(ptr); in PMurHash32_Process()
185 for( ; ptr < end ; ptr+=4) { in PMurHash32_Process()
[all …]
/php-src/ext/pcre/pcre2lib/
H A Dpcre2_newline.c85 if (utf) { GETCHAR(c, ptr); } else c = *ptr; in PRIV()
88 c = *ptr; in PRIV()
98 *lenptr = (ptr < endptr - 1 && ptr[1] == CHAR_LF)? 2 : 1; in PRIV()
119 *lenptr = (ptr < endptr - 1 && ptr[1] == CHAR_LF)? 2 : 1; in PRIV()
173 ptr--; in PRIV()
178 BACKCHAR(ptr); in PRIV()
179 GETCHAR(c, ptr); in PRIV()
181 else c = *ptr; in PRIV()
184 c = *ptr; in PRIV()
190 *lenptr = (ptr > startptr && ptr[-1] == CHAR_CR)? 2 : 1; in PRIV()
[all …]
H A Dpcre2_substitute.c87 for (; ptr < ptrend; ptr++) in find_text_end()
91 if (ptr[0] == CHAR_BACKSLASH && ptr < ptrend - 1 && ptr[1] == CHAR_E) in find_text_end()
94 ptr += 1; in find_text_end()
108 if (ptr < ptrend - 1 && ptr[1] == CHAR_LEFT_CURLY_BRACKET) in find_text_end()
111 ptr += 1; in find_text_end()
121 if (ptr < ptrend - 1) switch (ptr[1]) in find_text_end()
127 ptr += 1; in find_text_end()
161 *ptrptr = ptr; in find_text_end()
525 if (ptr[0] == CHAR_BACKSLASH && ptr < repend - 1 && ptr[1] == CHAR_E) in pcre2_substitute()
590 while (++ptr < repend && *ptr >= CHAR_0 && *ptr <= CHAR_9); in pcre2_substitute()
[all …]
H A Dpcre2_compile.c1917 while (ptr < ptrend && (*ptr == CHAR_SPACE || *ptr == CHAR_HT)) ptr++; in PRIV()
1926 while (ptr < ptrend && *ptr >= CHAR_0 && *ptr <= CHAR_7) in PRIV()
1943 while (ptr < ptrend && (*ptr == CHAR_SPACE || *ptr == CHAR_HT)) ptr++; in PRIV()
1947 while (ptr < ptrend && *ptr >= CHAR_0 && *ptr <= CHAR_7) ptr++; in PRIV()
1992 while (ptr < ptrend && (*ptr == CHAR_SPACE || *ptr == CHAR_HT)) ptr++; in PRIV()
2022 while (ptr < ptrend && (*ptr == CHAR_SPACE || *ptr == CHAR_HT)) ptr++; in PRIV()
2028 while (ptr < ptrend && XDIGIT(*ptr) != 0xff) ptr++; in PRIV()
2382 for (; ptrend - ptr >= 2; ptr++) in check_posix_syntax()
2473 while (ptr < ptrend && (*ptr == CHAR_SPACE || *ptr == CHAR_HT)) ptr++; in read_name()
2555 while (ptr < ptrend && (*ptr == CHAR_SPACE || *ptr == CHAR_HT)) ptr++; in read_name()
[all …]
/php-src/ext/gd/libgd/
H A Dgdhelpers.h17 #define gdRealloc(ptr, size) erealloc(ptr, size) argument
18 #define gdEstrdup(ptr) estrdup(ptr) argument
19 #define gdFree(ptr) efree(ptr) argument
20 #define gdPMalloc(ptr) pemalloc(ptr, 1) argument
21 #define gdPFree(ptr) pefree(ptr, 1) argument
22 #define gdPEstrdup(ptr) pestrdup(ptr, 1) argument
/php-src/ext/mysqlnd/
H A Dmysqlnd_alloc.c157 …size_t old_size = collect_memory_statistics && ptr? *(size_t *) (((char*)ptr) - sizeof(size_t)) : … in _mysqlnd_erealloc()
210 if (ptr) { in _mysqlnd_efree()
215 efree_rel(REAL_PTR(ptr)); in _mysqlnd_efree()
241 if (ptr) { in _mysqlnd_pefree()
276 memcpy(dest, ptr, length); in _mysqlnd_pememdup()
307 char * p = (char *) ptr; in _mysqlnd_pestrndup()
334 const char * p = ptr; in _mysqlnd_pestrdup()
415 efree_rel(ptr); in mysqlnd_zend_mm_efree()
423 pefree_rel(ptr, persistent); in mysqlnd_zend_mm_pefree()
433 memcpy(dest, ptr, length); in mysqlnd_zend_mm_pememdup()
[all …]
H A Dmysqlnd_alloc.h32 void * (*m_erealloc)(void *ptr, size_t new_size MYSQLND_MEM_D);
34 void (*m_efree)(void *ptr MYSQLND_MEM_D);
35 void (*m_pefree)(void *ptr, bool persistent MYSQLND_MEM_D);
38 char * (*m_pestrdup)(const char * const ptr, bool persistent MYSQLND_MEM_D);
47 #define mnd_erealloc(ptr, new_size) mysqlnd_allocator.m_erealloc((ptr), (new_size) MYSQLND_MEM_C) argument
48 #define mnd_perealloc(ptr, new_size, p) mysqlnd_allocator.m_perealloc((ptr), (new_size), (p) MYSQLN… argument
49 #define mnd_efree(ptr) mysqlnd_allocator.m_efree((ptr) MYSQLND_MEM_C) argument
50 #define mnd_pefree(ptr, pers) mysqlnd_allocator.m_pefree((ptr), (pers) MYSQLND_MEM_C) argument
51 #define mnd_pememdup(ptr, size, pers) mysqlnd_allocator.m_pememdup((ptr), (size), (pers) MYSQLND_ME… argument
52 #define mnd_pestrndup(ptr, size, pers) mysqlnd_allocator.m_pestrndup((ptr), (size), (pers) MYSQLND_… argument
[all …]
/php-src/ext/sysvshm/
H A Dsysvshm.c62 if (sysvshm->ptr) { in sysvshm_free_obj()
197 if (!shm_list_ptr->ptr) { in PHP_FUNCTION()
203 shm_list_ptr->ptr = NULL; in PHP_FUNCTION()
220 if (!shm_list_ptr->ptr) { in PHP_FUNCTION()
387 shm_var = (sysvshm_chunk *) ((char *) ptr + ptr->end); in php_put_shm_data()
392 ptr->end += total_size; in php_put_shm_data()
393 ptr->free -= total_size; in php_put_shm_data()
404 ZEND_ASSERT(ptr); in php_check_shm_data()
406 pos = ptr->start; in php_check_shm_data()
409 if (pos >= ptr->end) { in php_check_shm_data()
[all …]
/php-src/ext/pcre/pcre2lib/sljit/allocator_src/
H A DsljitWXExecAllocatorPosix.c68 #define SLJIT_WX_IS_BLOCK(ptr, size) generic_check_is_wx_block(ptr, size) argument
72 if (SLJIT_LIKELY(!mprotect(ptr, size, PROT_EXEC))) in generic_check_is_wx_block()
73 return !!mprotect(ptr, size, PROT_READ | PROT_WRITE); in generic_check_is_wx_block()
85 sljit_uw* ptr; in sljit_malloc_exec() local
97 if (ptr == MAP_FAILED) in sljit_malloc_exec()
102 wx_block = SLJIT_WX_IS_BLOCK(ptr, size); in sljit_malloc_exec()
105 munmap((void *)ptr, size); in sljit_malloc_exec()
110 *ptr++ = size; in sljit_malloc_exec()
111 return ptr; in sljit_malloc_exec()
117 SLJIT_API_FUNC_ATTRIBUTE void sljit_free_exec(void* ptr) in sljit_free_exec() argument
[all …]
H A DsljitWXExecAllocatorWindows.c58 sljit_uw *ptr; in sljit_malloc_exec() local
61 ptr = (sljit_uw*)VirtualAlloc(NULL, size, in sljit_malloc_exec()
64 if (!ptr) in sljit_malloc_exec()
67 *ptr++ = size; in sljit_malloc_exec()
69 return ptr; in sljit_malloc_exec()
72 SLJIT_API_FUNC_ATTRIBUTE void sljit_free_exec(void* ptr) in sljit_free_exec() argument
74 sljit_uw start = (sljit_uw)ptr - sizeof(sljit_uw); in sljit_free_exec()
/php-src/ext/xmlwriter/
H A Dphp_xmlwriter.c38 ptr = obj->ptr; \
39 if (!ptr) { \
50 if (intern->ptr) { in xmlwriter_destroy_libxml_objects()
53 intern->ptr = NULL; in xmlwriter_destroy_libxml_objects()
226 xmlTextWriterPtr ptr; in ZEND_GET_MODULE() local
831 if (!ptr) { in PHP_FUNCTION()
837 ze_obj->ptr = ptr; in PHP_FUNCTION()
842 ze_obj->ptr = ptr; in PHP_FUNCTION()
932 if (! ptr) { in PHP_FUNCTION()
938 ze_obj->ptr = ptr; in PHP_FUNCTION()
[all …]
/php-src/ext/mysqli/
H A Dmysqli_warning.c127 if (obj->ptr) { in PHP_METHOD()
132 ((MYSQLI_RESOURCE *)(obj->ptr))->ptr = w; in PHP_METHOD()
145 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { in mysqli_warning_message()
153 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_message()
165 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { in mysqli_warning_sqlstate()
173 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_sqlstate()
185 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { in mysqli_warning_errno()
193 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_errno()
/php-src/sapi/phpdbg/
H A Dphpdbg_io.c73 PHPDBG_API int phpdbg_mixed_read(int fd, char *ptr, int len, int tmo) { in phpdbg_mixed_read() argument
77 ret = read(fd, ptr, len); in phpdbg_mixed_read()
83 static int phpdbg_output_pager(int fd, const char *ptr, int len) { in phpdbg_output_pager() argument
85 const char *p = ptr, *endp = ptr + len; in phpdbg_output_pager()
92 bytes += write(fd, ptr + bytes, (p - ptr) - bytes); in phpdbg_output_pager()
106 bytes += write(fd, ptr + bytes, len - bytes); in phpdbg_output_pager()
108 bytes += write(fd, ptr, len); in phpdbg_output_pager()
113 PHPDBG_API int phpdbg_mixed_write(int fd, const char *ptr, int len) { in phpdbg_mixed_write() argument
117 return phpdbg_output_pager(fd, ptr, len); in phpdbg_mixed_write()
120 return write(fd, ptr, len); in phpdbg_mixed_write()
H A Dphpdbg_btree.h26 void *ptr; member
60 int phpdbg_btree_insert_or_update(phpdbg_btree *tree, zend_ulong idx, void *ptr, int flags);
61 #define phpdbg_btree_insert(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG_BT… argument
62 #define phpdbg_btree_update(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG_BT… argument
63 #define phpdbg_btree_overwrite(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG… argument
/php-src/main/streams/
H A Dphp_streams_int.h26 #define erealloc_rel_orig(ptr, size) \ argument
28 ? _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \
29 : _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) )
32 #define perealloc_rel_orig(ptr, size, persistent) ((persistent) ? realloc((ptr), (size)) : erealloc… argument
35 # define perealloc_rel_orig(ptr, size, persistent) perealloc((ptr), (size), (persistent)) argument
/php-src/ext/pcre/pcre2lib/sljit/
H A DsljitSerialize.c133 sljit_u8 *ptr; in sljit_serialize_compiler() local
178 ptr = result; in sljit_serialize_compiler()
222 *(sljit_uw*)ptr = used_size; in sljit_serialize_compiler()
223 ptr += sizeof(sljit_uw); in sljit_serialize_compiler()
225 ptr += SLJIT_SERIALIZE_ALIGN(used_size); in sljit_serialize_compiler()
309 sljit_u8 *ptr = (sljit_u8*)buffer; in sljit_deserialize_compiler() local
310 sljit_u8 *end = ptr + size; in sljit_deserialize_compiler()
356 ptr += aligned_size; in sljit_deserialize_compiler()
376 used_size = *(sljit_uw*)ptr; in sljit_deserialize_compiler()
378 ptr += sizeof(sljit_uw); in sljit_deserialize_compiler()
[all …]
/php-src/ext/bcmath/libbcmath/src/
H A Dstr2num.c112 const char *ptr = str; in bc_str2num() local
120 if ((*ptr == '+') || (*ptr == '-')) { in bc_str2num()
122 ptr++; in bc_str2num()
125 while (*ptr == '0') { in bc_str2num()
126 ptr++; in bc_str2num()
128 const char *integer_ptr = ptr; in bc_str2num()
130 ptr = bc_count_digits(ptr, end); in bc_str2num()
131 size_t digits = ptr - integer_ptr; in bc_str2num()
133 const char *decimal_point = (*ptr == '.') ? ptr : NULL; in bc_str2num()
136 if (UNEXPECTED(!decimal_point && *ptr != '\0')) { in bc_str2num()

Completed in 144 milliseconds

1234567891011