Searched refs:ptr (Results 1 - 25 of 209) sorted by relevance

123456789

/PHP_TRUNK/ext/bcmath/libbcmath/src/
H A Dstr2num.c47 char *ptr, *nptr; local
54 ptr = str;
58 if ( (*ptr == '+') || (*ptr == '-')) ptr++; /* Sign */
59 while (*ptr == '0') ptr++; /* Skip leading zeros. */
60 while (isdigit((int)*ptr)) ptr++, digits++; /* digits */
61 if (*ptr
[all...]
/PHP_TRUNK/ext/gd/libgd/
H A Dgdhelpers.h17 #define gdRealloc(ptr, size) erealloc(ptr, size)
18 #define gdEstrdup(ptr) estrdup(ptr)
19 #define gdFree(ptr) efree(ptr)
20 #define gdPMalloc(ptr) pemalloc(ptr, 1)
21 #define gdPFree(ptr) pefree(ptr,
[all...]
/PHP_TRUNK/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_allocators.c79 static void *__mbfl__realloc(void *ptr, unsigned int sz) argument
81 return realloc(ptr, sz);
89 static void __mbfl__free(void *ptr) argument
91 free(ptr);
/PHP_TRUNK/ext/mbstring/oniguruma/
H A Dst.c203 register st_table_entry *ptr, *next; local
207 ptr = table->bins[i];
208 while (ptr != 0) {
209 next = ptr->next;
210 free(ptr);
211 ptr = next;
218 #define PTR_NOT_EQUAL(table, ptr, hash_val, key) \
219 ((ptr) != 0 && (ptr->hash != (hash_val) || !EQUAL((table), (key), (ptr)
246 register st_table_entry *ptr; local
285 register st_table_entry *ptr; local
317 register st_table_entry *ptr, *next, **new_bins; local
344 st_table_entry *ptr, *entry; local
388 register st_table_entry *ptr; local
430 register st_table_entry *ptr; local
483 st_table_entry *ptr, *last, *tmp; local
[all...]
/PHP_TRUNK/Zend/
H A Dzend_ptr_stack.c43 va_list ptr; local
48 va_start(ptr, count);
50 elem = va_arg(ptr, void *);
55 va_end(ptr);
61 va_list ptr; local
64 va_start(ptr, count);
66 elem = va_arg(ptr, void **);
71 va_end(ptr);
H A Dzend_arena.h29 char *ptr; member in struct:_zend_arena
38 arena->ptr = (char*) arena + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena));
58 char *ptr = arena->ptr; local
62 if (EXPECTED(size <= (size_t)(arena->end - ptr))) {
63 arena->ptr = ptr + size;
71 ptr = (char*) new_arena + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena));
72 new_arena->ptr = (char*) new_arena + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena)) + size;
78 return (void*) ptr;
[all...]
H A Dzend_alloc.h60 ZEND_API void ZEND_FASTCALL _efree(void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
62 ZEND_API void* ZEND_FASTCALL _erealloc(void *ptr, size_t size, int allow_failure ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_ALLOC_SIZE(2);
63 ZEND_API void* ZEND_FASTCALL _safe_erealloc(void *ptr, size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
64 ZEND_API void* ZEND_FASTCALL _safe_realloc(void *ptr, size_t nmemb, size_t size, size_t offset);
67 ZEND_API size_t ZEND_FASTCALL _zend_mem_block_size(void *ptr TSRMLS_DC ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
107 # define _ZEND_BIN_DEALLOCATOR_SELECTOR_START(_num, _size, _elements, _pages, ptr, size) \
108 if (size <= _size) { _efree_ ## _size(ptr); } else
110 # define ZEND_DEALLOCATOR(ptr, size) \
111 ZEND_MM_BINS_INFO(_ZEND_BIN_DEALLOCATOR_SELECTOR_START, ptr, size) \
112 if (size <= ZEND_MM_MAX_LARGE_SIZE) { _efree_large(ptr, siz
[all...]
H A Dzend_highlight.c59 const unsigned char *ptr = (const unsigned char*)s, *end = ptr + len; local
64 LANG_SCNG(output_filter)(&filtered, &filtered_len, ptr, len TSRMLS_CC);
65 ptr = filtered;
69 while (ptr<end) {
70 if (*ptr==' ') {
72 zend_html_putc(*ptr);
73 } while ((++ptr < end) && (*ptr==' '));
75 zend_html_putc(*ptr
[all...]
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_alloc.h38 void * (*m_erealloc)(void *ptr, size_t new_size MYSQLND_MEM_D);
39 void * (*m_perealloc)(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D);
40 void (*m_efree)(void *ptr MYSQLND_MEM_D);
41 void (*m_pefree)(void *ptr, zend_bool persistent MYSQLND_MEM_D);
44 void * (*m_realloc)(void *ptr, size_t new_size MYSQLND_MEM_D);
45 void (*m_free)(void *ptr MYSQLND_MEM_D);
46 char * (*m_pestrndup)(const char * const ptr, size_t size, zend_bool persistent MYSQLND_MEM_D);
47 char * (*m_pestrdup)(const char * const ptr, zend_bool persistent MYSQLND_MEM_D);
59 PHPAPI void * _mysqlnd_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D);
60 PHPAPI void * _mysqlnd_perealloc(void *ptr, size_
[all...]
H A Dmysqlnd_block_alloc.c38 if (chunk->ptr == (pool->arena + (pool->arena_size - pool->free_size - chunk->size))) {
41 a bit of memory from the pool. Next time we will return from the same ptr.
47 mnd_free(chunk->ptr);
63 if (chunk->ptr == (pool->arena + (pool->arena_size - pool->free_size - chunk->size))) {
66 a bit of memory from the pool. Next time we will return from the same ptr.
74 memcpy(new_ptr, chunk->ptr, chunk->size);
75 chunk->ptr = new_ptr;
94 memcpy(new_ptr, chunk->ptr, chunk->size);
95 chunk->ptr = new_ptr;
102 zend_uchar *new_ptr = mnd_realloc(chunk->ptr, siz
[all...]
H A Dmysqlnd_alloc.c105 TRACE_ALLOC_INF_FMT("size=%lu ptr=%p", size, ret);
145 TRACE_ALLOC_INF_FMT("size=%lu ptr=%p persistent=%u", size, ret, persistent);
190 TRACE_ALLOC_INF_FMT("size=%lu ptr=%p", size, ret);
228 TRACE_ALLOC_INF_FMT("size=%lu ptr=%p", size, ret);
243 void * _mysqlnd_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D) argument
247 size_t old_size = collect_memory_statistics && ptr? *(size_t *) (((char*)ptr) - sizeof(size_t)) : 0;
259 TRACE_ALLOC_INF_FMT("ptr=%p old_size=%lu, new_size=%lu", ptr, old_size, new_size);
265 ret = _erealloc(REAL_PTR(ptr), REAL_SIZ
284 _mysqlnd_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D) argument
359 _mysqlnd_pefree(void *ptr, zend_bool persistent MYSQLND_MEM_D) argument
469 _mysqlnd_realloc(void *ptr, size_t new_size MYSQLND_MEM_D) argument
546 _mysqlnd_pestrndup(const char * const ptr, size_t length, zend_bool persistent MYSQLND_MEM_D) argument
582 _mysqlnd_pestrdup(const char * const ptr, zend_bool persistent MYSQLND_MEM_D) argument
679 mysqlnd_zend_mm_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D) argument
687 mysqlnd_zend_mm_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D) argument
703 mysqlnd_zend_mm_pefree(void * ptr, zend_bool persistent MYSQLND_MEM_D) argument
727 mysqlnd_zend_mm_realloc(void * ptr, size_t new_size MYSQLND_MEM_D) argument
743 mysqlnd_zend_mm_pestrndup(const char * const ptr, size_t length, zend_bool persistent MYSQLND_MEM_D) argument
751 mysqlnd_zend_mm_pestrdup(const char * const ptr, zend_bool persistent MYSQLND_MEM_D) argument
[all...]
/PHP_TRUNK/main/streams/
H A Dphp_streams_int.h29 #define erealloc_rel_orig(ptr, size) \
31 ? _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \
32 : _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) )
35 #define perealloc_rel_orig(ptr, size, persistent) ((persistent) ? realloc((ptr), (size)) : erealloc_rel_orig((ptr), (size)))
38 # define perealloc_rel_orig(ptr, size, persistent) perealloc((ptr), (size), (persistent))
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_btree.h28 void *ptr; member in struct:__anon2
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_BTREE_INSERT)
62 #define phpdbg_btree_update(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG_BTREE_UPDATE)
63 #define phpdbg_btree_overwrite(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG_BTREE_OWERWRITE)
/PHP_TRUNK/ext/pcre/pcrelib/
H A Dpcre_compile.c974 chptr. On entry, ptr is pointing at the \. On exit, it is on the final
997 const pcre_uchar *ptr = *ptrptr + 1; local
1002 GETCHARINCTEST(c, ptr); /* Get character value, increment pointer */
1003 ptr--; /* Set pointer back to the last byte */
1048 if (MAX_255(ptr[1]) && (digitab[ptr[1]] & ctype_xdigit) != 0
1049 && MAX_255(ptr[2]) && (digitab[ptr[2]] & ctype_xdigit) != 0
1050 && MAX_255(ptr[3]) && (digitab[ptr[
1488 const pcre_uchar *ptr = *ptrptr; local
3855 check_posix_syntax(const pcre_uchar *ptr, const pcre_uchar **endptr) argument
3899 check_posix_name(const pcre_uchar *ptr, int len) argument
3949 pcre_uchar *ptr = group; local
4000 auto_callout(pcre_uchar *code, const pcre_uchar *ptr, compile_data *cd) argument
4028 complete_callout(pcre_uchar *previous_callout, const pcre_uchar *ptr, compile_data *cd) argument
4399 const pcre_uchar *ptr = *ptrptr; local
8020 const pcre_uchar *ptr = *ptrptr; local
8772 const pcre_uchar *ptr; local
[all...]
H A Dpcre_newline.c60 /* It is guaranteed that the initial value of ptr is less than the end of the
64 ptr pointer to possible newline
74 PRIV(is_newline)(PCRE_PUCHAR ptr, int type, PCRE_PUCHAR endptr, int *lenptr, argument
82 GETCHAR(c, ptr);
86 c = *ptr;
93 case CHAR_CR: *lenptr = (ptr < endptr - 1 && ptr[1] == CHAR_LF)? 2 : 1;
110 *lenptr = (ptr < endptr - 1 && ptr[1] == CHAR_LF)? 2 : 1;
135 /* It is guaranteed that the initial value of ptr i
149 was_newline(PCRE_PUCHAR ptr, int type, PCRE_PUCHAR startptr, int *lenptr, BOOL utf) argument
[all...]
/PHP_TRUNK/ext/soap/
H A Dphp_schema.h36 void delete_restriction_var_int(sdlRestrictionIntPtr ptr);
37 void delete_restriction_var_int_persistent(sdlRestrictionIntPtr ptr);
39 void delete_restriction_var_char_int(sdlRestrictionCharPtr ptr);
41 void delete_restriction_var_char_persistent_int(sdlRestrictionCharPtr ptr);
/PHP_TRUNK/ext/intl/
H A Dintl_common.h35 # define eurealloc(ptr, size) (UChar*)erealloc((ptr), size * sizeof(UChar))
/PHP_TRUNK/ext/mysqli/
H A Dmysqli_prop.c35 if (!obj->ptr || ((MYSQLI_RESOURCE *)obj->ptr)->status < value ) { \
43 if (!obj->ptr || !(MY_MYSQL *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { \
49 p = (MYSQL *)((MY_MYSQL *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr)->mysql;\
54 if (!obj->ptr) { \
60 p = (MYSQL_RES *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; \
[all...]
H A Dmysqli_warning.c186 if (obj->ptr) {
196 ((MYSQLI_RESOURCE *)(obj->ptr))->ptr = w;
210 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) {
214 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr;
226 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))
[all...]
/PHP_TRUNK/ext/sysvshm/
H A Dsysvshm.c119 static int php_put_shm_data(sysvshm_chunk_head *ptr, zend_long key, const char *data, zend_long len);
120 static zend_long php_check_shm_data(sysvshm_chunk_head *ptr, zend_long key);
121 static int php_remove_shm_data(sysvshm_chunk_head *ptr, zend_long shm_varpos);
127 sysvshm_shm *shm_ptr = (sysvshm_shm *) rsrc->ptr;
128 shmdt((void *) shm_ptr->ptr);
198 shm_list_ptr->ptr = chunk_ptr;
267 ret = php_put_shm_data(shm_list_ptr->ptr, shm_key, shm_var.s? shm_var.s->val : NULL, shm_var.s? shm_var.s->len : 0);
299 shm_varpos = php_check_shm_data((shm_list_ptr->ptr), shm_key);
305 shm_var = (sysvshm_chunk*) ((char *)shm_list_ptr->ptr + shm_varpos);
329 RETURN_BOOL(php_check_shm_data(shm_list_ptr->ptr, shm_ke
359 php_put_shm_data(sysvshm_chunk_head *ptr, zend_long key, const char *data, zend_long len) argument
388 php_check_shm_data(sysvshm_chunk_head *ptr, zend_long key) argument
415 php_remove_shm_data(sysvshm_chunk_head *ptr, zend_long shm_varpos) argument
[all...]
/PHP_TRUNK/ext/date/lib/
H A Dparse_date.re102 #define YYMARKER s->ptr
118 #define TIMELIB_INIT s->cur = cursor; str = timelib_string(s); ptr = str
151 uchar *lim, *str, *ptr, *cur, *tok, *pos;
298 char *ptr = s;
299 while (ptr[0] == ' ' || ptr[0] == '\t') {
300 ptr++;
302 return ptr;
313 s->ptr -= cnt;
322 s->ptr
[all...]
H A Dparse_iso_intervals.re67 #define YYMARKER s->ptr
74 #define TIMELIB_INIT s->cur = cursor; str = timelib_string(s); ptr = str
89 uchar *lim, *str, *ptr, *cur, *tok, *pos;
131 static timelib_sll timelib_get_nr(char **ptr, int max_length)
137 while ((**ptr < '0') || (**ptr > '9')) {
138 if (**ptr == '\0') {
141 ++*ptr;
143 begin = *ptr;
144 while ((**ptr >
[all...]
H A Dparse_iso_intervals.c69 #define YYMARKER s->ptr
76 #define TIMELIB_INIT s->cur = cursor; str = timelib_string(s); ptr = str
91 uchar *lim, *str, *ptr, *cur, *tok, *pos; member in struct:Scanner
133 static timelib_sll timelib_get_nr(char **ptr, int max_length) argument
139 while ((**ptr < '0') || (**ptr > '9')) {
140 if (**ptr == '\0') {
143 ++*ptr;
145 begin = *ptr;
146 while ((**ptr >
158 timelib_get_unsigned_nr(char **ptr, int max_length) argument
179 timelib_eat_spaces(char **ptr) argument
186 timelib_eat_until_separator(char **ptr) argument
193 timelib_get_zone(char **ptr, int *dst, timelib_time *t, int *tz_not_found, const timelib_tzdb *tzdb) argument
246 char *str, *ptr = NULL; local
[all...]
/PHP_TRUNK/ext/xmlwriter/
H A Dphp_xmlwriter.c96 if (intern->ptr) {
97 xmlFreeTextWriter(intern->ptr);
98 intern->ptr = NULL;
687 intern = (xmlwriter_object *) rsrc->ptr;
696 xmlTextWriterPtr ptr; local
719 ptr = intern->ptr;
721 if (ptr) {
722 retval = internal_function(ptr, (xmlChar *) name);
735 xmlTextWriterPtr ptr; local
770 xmlTextWriterPtr ptr; local
834 xmlTextWriterPtr ptr; local
876 xmlTextWriterPtr ptr; local
918 xmlTextWriterPtr ptr; local
969 xmlTextWriterPtr ptr; local
1027 xmlTextWriterPtr ptr; local
1079 xmlTextWriterPtr ptr; local
1147 xmlTextWriterPtr ptr; local
1189 xmlTextWriterPtr ptr; local
1254 xmlTextWriterPtr ptr; local
1304 xmlTextWriterPtr ptr; local
1350 xmlTextWriterPtr ptr; local
1396 xmlTextWriterPtr ptr; local
1451 xmlTextWriterPtr ptr; local
1508 xmlTextWriterPtr ptr; local
1549 xmlTextWriterPtr ptr; local
1596 xmlTextWriterPtr ptr; local
1644 xmlTextWriterPtr ptr; local
1697 xmlTextWriterPtr ptr; local
1740 xmlTextWriterPtr ptr; local
[all...]
/PHP_TRUNK/main/
H A Dfopen_wrappers.c86 char **p, *pathbuf, *ptr, *end; local
114 ptr = pathbuf = estrdup(new_value->val);
115 while (ptr && *ptr) {
116 end = strchr(ptr, DEFAULT_DIR_SEPARATOR);
121 if (php_check_open_basedir_ex(ptr, 0 TSRMLS_CC) != 0) {
126 ptr = end;
298 char *ptr; local
311 ptr = pathbuf;
313 while (ptr
487 const char *ptr, *end, *p; local
623 char *pathbuf, *ptr, *end; local
[all...]

Completed in 23 milliseconds

123456789