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

12345678

/PHP_5_3/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_5_3/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_5_3/ext/intl/
H A Dintl_common.h35 # define eurealloc(ptr, size) (UChar*)erealloc((ptr), size * sizeof(UChar))
/PHP_5_3/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_5_3/ext/mbstring/libmbfl/tests/
H A Dconv_encoding.c13 static void hexdump(const mbfl_string *ptr) argument
17 for (i = 0; i < ptr->len; i++) {
18 printf("%%%02x", ptr->val[i]);
21 printf(" (%u)\n", ptr->len);
/PHP_5_3/ext/mbstring/oniguruma/
H A Dst.c219 register st_table_entry *ptr, *next; local
223 ptr = table->bins[i];
224 while (ptr != 0) {
225 next = ptr->next;
226 free(ptr);
227 ptr = next;
234 #define PTR_NOT_EQUAL(table, ptr, hash_val, key) \
235 ((ptr) != 0 && (ptr->hash != (hash_val) || !EQUAL((table), (key), (ptr)
262 register st_table_entry *ptr; local
301 register st_table_entry *ptr; local
333 register st_table_entry *ptr, *next, **new_bins; local
360 st_table_entry *ptr, *entry; local
404 register st_table_entry *ptr; local
446 register st_table_entry *ptr; local
494 st_table_entry *ptr, *last, *tmp; local
[all...]
/PHP_5_3/TSRM/
H A Dtsrm_nw.c58 char *ptr = NULL; local
127 ptr = tsrm_strtok_r((char*)commandline, WHITESPACE, NULL);
128 ptrLen = strlen(ptr);
136 strcpy (command, ptr);
138 ptr = tsrm_strtok_r(NULL, WHITESPACE, NULL);
139 while (ptr && (argc < MAX_ARGS)) {
140 ptrLen = strlen(ptr);
156 strcpy (argv[argc], ptr);
158 ptr = tsrm_strtok_r(NULL, WHITESPACE, NULL);
/PHP_5_3/ext/mysqli/
H A Dmysqli_prop.c34 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;\
55 if (!obj->ptr) { \
61 p = (MYSQL_RES *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; \
[all...]
H A Dmysqli_report.h48 #define MYSQLI_PROFILER_STARTTIME(ptr) if (MyG(profiler.mode)) gettimeofday(&ptr.starttime, NULL)
49 #define MYSQLI_PROFILER_ENDTIME(ptr) if (MyG(profiler.mode)) gettimeofday(&ptr.endtime, NULL)
50 #define MYSQLI_PROFILER_REPORT(_type, _time, ptr) if (MyG(profiler.mode)) php_mysqli_profiler_report(_type, _time, (void *)ptr)
H A Dmysqli_warning.c192 if (obj->ptr) {
202 ((MYSQLI_RESOURCE *)(obj->ptr))->ptr = w;
217 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) {
221 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr;
236 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))
[all...]
/PHP_5_3/ext/sysvshm/
H A Dsysvshm.c119 static int php_put_shm_data(sysvshm_chunk_head *ptr, long key, const char *data, long len);
120 static long php_check_shm_data(sysvshm_chunk_head *ptr, long key);
121 static int php_remove_shm_data(sysvshm_chunk_head *ptr, 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.c, shm_var.len);
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, long key, const char *data, long len) argument
388 php_check_shm_data(sysvshm_chunk_head *ptr, long key) argument
415 php_remove_shm_data(sysvshm_chunk_head *ptr, long shm_varpos) argument
[all...]
/PHP_5_3/ext/xmlwriter/
H A Dphp_xmlwriter.c96 if (intern->ptr) {
97 xmlFreeTextWriter(intern->ptr);
98 intern->ptr = NULL;
737 intern = (xmlwriter_object *) rsrc->ptr;
746 xmlTextWriterPtr ptr; local
772 ptr = intern->ptr;
774 if (ptr) {
775 retval = internal_function(ptr, (xmlChar *) name);
788 xmlTextWriterPtr ptr; local
826 xmlTextWriterPtr ptr; local
893 xmlTextWriterPtr ptr; local
937 xmlTextWriterPtr ptr; local
982 xmlTextWriterPtr ptr; local
1035 xmlTextWriterPtr ptr; local
1095 xmlTextWriterPtr ptr; local
1150 xmlTextWriterPtr ptr; local
1221 xmlTextWriterPtr ptr; local
1265 xmlTextWriterPtr ptr; local
1333 xmlTextWriterPtr ptr; local
1386 xmlTextWriterPtr ptr; local
1434 xmlTextWriterPtr ptr; local
1483 xmlTextWriterPtr ptr; local
1541 xmlTextWriterPtr ptr; local
1601 xmlTextWriterPtr ptr; local
1646 xmlTextWriterPtr ptr; local
1698 xmlTextWriterPtr ptr; local
1749 xmlTextWriterPtr ptr; local
1836 xmlTextWriterPtr ptr; local
1889 xmlTextWriterPtr ptr; local
[all...]
H A Dphp_xmlwriter.h38 xmlTextWriterPtr ptr; member in struct:_xmlwriter_object
/PHP_5_3/main/
H A Dfopen_wrappers.c87 char **p, *pathbuf, *ptr, *end; local
115 ptr = pathbuf = estrdup(new_value);
116 while (ptr && *ptr) {
117 end = strchr(ptr, DEFAULT_DIR_SEPARATOR);
122 if (php_check_open_basedir_ex(ptr, 0 TSRMLS_CC) != 0) {
127 ptr = end;
299 char *ptr; local
312 ptr = pathbuf;
314 while (ptr
348 char *ptr; local
541 const char *ptr, *end, *p; local
681 char *pathbuf, *ptr, *end; local
[all...]
/PHP_5_3/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_5_3/Zend/
H A Dzend_alloc.h60 ZEND_API void _efree(void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
62 ZEND_API void *_erealloc(void *ptr, size_t size, int allow_failure ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
63 ZEND_API void *_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 *_safe_realloc(void *ptr, size_t nmemb, size_t size, size_t offset);
67 ZEND_API size_t _zend_mem_block_size(void *ptr TSRMLS_DC ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
72 #define efree(ptr) _efree((ptr) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
74 #define erealloc(ptr, size) _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
75 #define safe_erealloc(ptr, nmem
[all...]
H A Dzend_highlight.c59 const char *ptr=s, *end=s+len; local
67 ptr = filtered;
72 while (ptr<end) {
73 if (*ptr==' ') {
75 zend_html_putc(*ptr);
76 } while ((++ptr < end) && (*ptr==' '));
78 zend_html_putc(*ptr++);
H A Dzend_ptr_stack.c44 va_list ptr; local
49 va_start(ptr, count);
51 elem = va_arg(ptr, void *);
56 va_end(ptr);
62 va_list ptr; local
65 va_start(ptr, count);
67 elem = va_arg(ptr, void **);
72 va_end(ptr);
/PHP_5_3/ext/mysqlnd/
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_debug.h185 void * (*m_erealloc)(void *ptr, size_t new_size MYSQLND_MEM_D);
186 void * (*m_perealloc)(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D);
187 void (*m_efree)(void *ptr MYSQLND_MEM_D);
188 void (*m_pefree)(void *ptr, zend_bool persistent MYSQLND_MEM_D);
191 void * (*m_realloc)(void *ptr, size_t new_size MYSQLND_MEM_D);
192 void (*m_free)(void *ptr MYSQLND_MEM_D);
193 char * (*m_pestrndup)(const char * const ptr, size_t size, zend_bool persistent MYSQLND_MEM_D);
194 char * (*m_pestrdup)(const char * const ptr, zend_bool persistent MYSQLND_MEM_D);
204 PHPAPI void * _mysqlnd_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D);
205 PHPAPI void * _mysqlnd_perealloc(void *ptr, size_
[all...]
/PHP_5_3/ext/pcre/pcrelib/
H A Dpcre_compile.c758 On entry,ptr is pointing at the \. On exit, it is on the final character of the
781 const pcre_uchar *ptr = *ptrptr + 1; local
786 GETCHARINCTEST(c, ptr); /* Get character value, increment pointer */
787 ptr--; /* Set pointer back to the last byte */
831 if (MAX_255(ptr[1]) && (digitab[ptr[1]] & ctype_xdigit) != 0
832 && MAX_255(ptr[2]) && (digitab[ptr[2]] & ctype_xdigit) != 0
833 && MAX_255(ptr[3]) && (digitab[ptr[
1219 const pcre_uchar *ptr = *ptrptr; local
1399 pcre_uchar *ptr = *ptrptr; local
1633 pcre_uchar *ptr = (pcre_uchar *)cd->start_pattern; local
2717 check_posix_syntax(const pcre_uchar *ptr, const pcre_uchar **endptr) argument
2761 check_posix_name(const pcre_uchar *ptr, int len) argument
2811 pcre_uchar *ptr = group; local
2862 auto_callout(pcre_uchar *code, const pcre_uchar *ptr, compile_data *cd) argument
2890 complete_callout(pcre_uchar *previous_callout, const pcre_uchar *ptr, compile_data *cd) argument
3060 check_auto_possessive(const pcre_uchar *previous, BOOL utf, const pcre_uchar *ptr, int options, compile_data *cd) argument
3721 const pcre_uchar *ptr = *ptrptr; local
7103 const pcre_uchar *ptr = *ptrptr; local
7787 const pcre_uchar *ptr; local
[all...]
H A Dpcre_newline.c62 /* It is guaranteed that the initial value of ptr is less than the end of the
66 ptr pointer to possible newline
76 PRIV(is_newline)(PCRE_PUCHAR ptr, int type, PCRE_PUCHAR endptr, int *lenptr, argument
84 GETCHAR(c, ptr);
88 c = *ptr;
95 case CHAR_CR: *lenptr = (ptr < endptr - 1 && ptr[1] == CHAR_LF)? 2 : 1;
112 *lenptr = (ptr < endptr - 1 && ptr[1] == CHAR_LF)? 2 : 1;
137 /* It is guaranteed that the initial value of ptr i
151 was_newline(PCRE_PUCHAR ptr, int type, PCRE_PUCHAR startptr, int *lenptr, BOOL utf) argument
[all...]
/PHP_5_3/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;
300 char *ptr = s;
301 while (ptr[0] == ' ' || ptr[0] == '\t') {
302 ptr++;
304 return ptr;
315 s->ptr -= cnt;
324 s->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
135 static timelib_sll timelib_get_nr(char **ptr, int max_length) argument
141 while ((**ptr < '0') || (**ptr > '9')) {
142 if (**ptr == '\0') {
145 ++*ptr;
147 begin = *ptr;
148 while ((**ptr >
160 timelib_get_unsigned_nr(char **ptr, int max_length) argument
181 timelib_parse_tz_cor(char **ptr) argument
214 timelib_eat_spaces(char **ptr) argument
221 timelib_eat_until_separator(char **ptr) argument
228 timelib_get_zone(char **ptr, int *dst, timelib_time *t, int *tz_not_found, const timelib_tzdb *tzdb) argument
281 char *str, *ptr = NULL; local
[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;
133 static timelib_sll timelib_get_nr(char **ptr, int max_length)
139 while ((**ptr < '0') || (**ptr > '9')) {
140 if (**ptr == '\0') {
143 ++*ptr;
145 begin = *ptr;
146 while ((**ptr >
[all...]

Completed in 62 milliseconds

12345678