Home
last modified time | relevance | path

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

123456789

/PHP-5.5/ext/bcmath/libbcmath/src/
H A Dstr2num.c54 ptr = str; in bc_str2num()
58 if ( (*ptr == '+') || (*ptr == '-')) ptr++; /* Sign */ in bc_str2num()
59 while (*ptr == '0') ptr++; /* Skip leading zeros. */ in bc_str2num()
60 while (isdigit((int)*ptr)) ptr++, digits++; /* digits */ in bc_str2num()
61 if (*ptr == '.') ptr++; /* decimal point */ in bc_str2num()
62 while (isdigit((int)*ptr)) ptr++, strscale++; /* digits */ in bc_str2num()
79 ptr = str; in bc_str2num()
80 if (*ptr == '-') in bc_str2num()
83 ptr++; in bc_str2num()
88 if (*ptr == '+') ptr++; in bc_str2num()
[all …]
/PHP-5.5/ext/mbstring/oniguruma/
H A Dst.c219 ((ptr) != 0 && (ptr->hash != (hash_val) || !EQUAL((table), (key), (ptr)->key)))
233 ptr = ptr->next;\
235 ptr = ptr->next;\
374 ptr = ptr->next;
407 for(; ptr->next != 0; ptr = ptr->next) {
410 ptr->next = ptr->next->next;
440 for(; ptr != 0; ptr = ptr->next) {
445 ptr->key = ptr->record = never;
489 for(ptr = table->bins[i]; ptr != 0;) {
506 ptr = ptr->next;
[all …]
/PHP-5.5/ext/mysqlnd/
H A Dmysqlnd_alloc.h40 void (*m_efree)(void *ptr MYSQLND_MEM_D);
45 void (*m_free)(void *ptr MYSQLND_MEM_D);
66 PHPAPI void _mysqlnd_free(void *ptr MYSQLND_MEM_D);
77 #define mnd_erealloc(ptr, new_size) mysqlnd_allocator.m_erealloc((ptr), (new_size) MYSQLND_MEM_C) argument
78 #define mnd_perealloc(ptr, new_size, p) mysqlnd_allocator.m_perealloc((ptr), (new_size), (p) MYSQLN… argument
79 #define mnd_efree(ptr) mysqlnd_allocator.m_efree((ptr) MYSQLND_MEM_C) argument
80 #define mnd_pefree(ptr, pers) mysqlnd_allocator.m_pefree((ptr), (pers) MYSQLND_MEM_C) argument
83 #define mnd_realloc(ptr, new_size) mysqlnd_allocator.m_realloc((ptr), (new_size) MYSQLND_MEM_C) argument
84 #define mnd_free(ptr) mysqlnd_allocator.m_free((ptr) MYSQLND_MEM_C) argument
85 #define mnd_pestrndup(ptr, size, pers) mysqlnd_allocator.m_pestrndup((ptr), (size), (pers) MYSQLND_… argument
[all …]
H A Dmysqlnd_alloc.c342 if (ptr) { in _mysqlnd_efree()
373 if (ptr) { in _mysqlnd_pefree()
525 if (ptr) { in _mysqlnd_free()
530 free(REAL_PTR(ptr)); in _mysqlnd_free()
563 char * p = (char *) ptr; in _mysqlnd_pestrndup()
586 const char * p = ptr; in _mysqlnd_pestrdup()
681 return erealloc(ptr, new_size); in mysqlnd_zend_mm_erealloc()
697 efree(ptr); in mysqlnd_zend_mm_efree()
705 pefree(ptr, persistent); in mysqlnd_zend_mm_pefree()
729 return realloc(ptr, new_size); in mysqlnd_zend_mm_realloc()
[all …]
H A Dmysqlnd_block_alloc.c38 if (chunk->ptr == (pool->arena + (pool->arena_size - pool->free_size - chunk->size))) { in mysqlnd_mempool_free_chunk()
47 mnd_free(chunk->ptr); in mysqlnd_mempool_free_chunk()
74 memcpy(new_ptr, chunk->ptr, chunk->size); in mysqlnd_mempool_resize_chunk()
75 chunk->ptr = new_ptr; in mysqlnd_mempool_resize_chunk()
94 memcpy(new_ptr, chunk->ptr, chunk->size); in mysqlnd_mempool_resize_chunk()
95 chunk->ptr = new_ptr; in mysqlnd_mempool_resize_chunk()
102 zend_uchar *new_ptr = mnd_realloc(chunk->ptr, size); in mysqlnd_mempool_resize_chunk()
106 chunk->ptr = new_ptr; in mysqlnd_mempool_resize_chunk()
133 chunk->ptr = mnd_malloc(size); in mysqlnd_mempool_get_chunk()
134 if (!chunk->ptr) { in mysqlnd_mempool_get_chunk()
[all …]
/PHP-5.5/Zend/
H A Dzend_alloc.h72 #define efree(ptr) _efree((ptr) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC) argument
74 #define erealloc(ptr, size) _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_C… argument
84 #define efree_rel(ptr) _efree((ptr) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC) argument
124 #define pefree(ptr, persistent) ((persistent)?free(ptr):efree(ptr)) argument
126 #define perealloc(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc((ptr)… argument
128 #define perealloc_recoverable(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):er… argument
133 #define pefree_rel(ptr, persistent) ((persistent)?free(ptr):efree_rel(ptr)) argument
135 #define perealloc_rel(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc_r… argument
136 …e perealloc_recoverable_rel(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):ere… argument
139 #define safe_estrdup(ptr) ((ptr)?(estrdup(ptr)):STR_EMPTY_ALLOC()) argument
[all …]
H A Dzend_ptr_stack.c43 va_list ptr; in zend_ptr_stack_n_push() local
48 va_start(ptr, count); in zend_ptr_stack_n_push()
50 elem = va_arg(ptr, void *); in zend_ptr_stack_n_push()
55 va_end(ptr); in zend_ptr_stack_n_push()
61 va_list ptr; in zend_ptr_stack_n_pop() local
64 va_start(ptr, count); in zend_ptr_stack_n_pop()
66 elem = va_arg(ptr, void **); in zend_ptr_stack_n_pop()
71 va_end(ptr); in zend_ptr_stack_n_pop()
H A Dzend_execute.c184 zval *ptr = EX_T(var).var.ptr; in _get_zval_ptr_var() local
187 return ptr; in _get_zval_ptr_var()
218 return *ptr; in _get_zval_cv_lookup()
230 return *ptr; in _get_zval_cv_lookup_BP_VAR_R()
242 return *ptr; in _get_zval_cv_lookup_BP_VAR_UNSET()
253 return *ptr; in _get_zval_cv_lookup_BP_VAR_IS()
270 return *ptr; in _get_zval_cv_lookup_BP_VAR_RW()
285 return *ptr; in _get_zval_cv_lookup_BP_VAR_W()
396 return *ptr; in _get_zval_ptr_ptr_cv()
406 return *ptr; in _get_zval_ptr_ptr_cv_BP_VAR_R()
[all …]
H A Dzend_highlight.c59 const unsigned char *ptr = (const unsigned char*)s, *end = ptr + len; in zend_html_puts() local
64 LANG_SCNG(output_filter)(&filtered, &filtered_len, ptr, len TSRMLS_CC); in zend_html_puts()
65 ptr = filtered; in zend_html_puts()
69 while (ptr<end) { in zend_html_puts()
70 if (*ptr==' ') { in zend_html_puts()
72 zend_html_putc(*ptr); in zend_html_puts()
73 } while ((++ptr < end) && (*ptr==' ')); in zend_html_puts()
75 zend_html_putc(*ptr++); in zend_html_puts()
/PHP-5.5/ext/pcre/pcrelib/
H A Dpcre_newline.c76 PRIV(is_newline)(PCRE_PUCHAR ptr, int type, PCRE_PUCHAR endptr, int *lenptr, in PRIV()
84 GETCHAR(c, ptr); in PRIV()
88 c = *ptr; in PRIV()
95 case CHAR_CR: *lenptr = (ptr < endptr - 1 && ptr[1] == CHAR_LF)? 2 : 1; in PRIV()
112 *lenptr = (ptr < endptr - 1 && ptr[1] == CHAR_LF)? 2 : 1; in PRIV()
156 ptr--; in PRIV()
160 BACKCHAR(ptr); in PRIV()
161 GETCHAR(c, ptr); in PRIV()
165 c = *ptr; in PRIV()
172 *lenptr = (ptr > startptr && ptr[-1] == CHAR_CR)? 2 : 1; in PRIV()
[all …]
H A Dpcre_compile.c1296 while (*ptr >= CHAR_0 && *ptr <= CHAR_7) ptr++; in check_escape()
1378 while (MAX_255(*ptr) && (digitab[*ptr] & ctype_xdigit) != 0) ptr++; in check_escape()
3937 for (++ptr; *ptr != CHAR_NULL; ptr++) in check_posix_syntax()
5299 while (*ptr == CHAR_BACKSLASH && ptr[1] == CHAR_E) ptr += 2; in compile_branch()
6538 while (*ptr != CHAR_NULL && *ptr != CHAR_RIGHT_PARENTHESIS) ptr++; in compile_branch()
6559 while (MAX_255(*ptr) && (cd->ctypes[*ptr] & ctype_letter) != 0) ptr++; in compile_branch()
6569 while (*ptr != CHAR_NULL && *ptr != CHAR_RIGHT_PARENTHESIS) ptr++; in compile_branch()
6791 if (*ptr == CHAR_MINUS || *ptr == CHAR_PLUS) refsign = *ptr++; in compile_branch()
6803 while (IS_DIGIT(*ptr)) ptr++; in compile_branch()
7091 while (MAX_255(*ptr) && (cd->ctypes[*ptr] & ctype_word) != 0) ptr++; in compile_branch()
[all …]
/PHP-5.5/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-5.5/ext/date/lib/
H A Dparse_date.re491 while ((**ptr != '.') && (**ptr != ':') && ((**ptr < '0') || (**ptr > '9'))) {
517 while (((**ptr < '0') || (**ptr > '9')) && (**ptr != '+') && (**ptr != '-')) {
541 while ((**ptr >= 'A' && **ptr <= 'Z') || (**ptr >= 'a' && **ptr <= 'z')) {
561 while (**ptr == ' ' || **ptr == '\t' || **ptr == '-' || **ptr == '/') {
574 while ((**ptr >= 'A' && **ptr <= 'Z') || (**ptr >= 'a' && **ptr <= 'z')) {
593 while (**ptr == ' ' || **ptr == '\t' || **ptr == '-' || **ptr == '.' || **ptr == '/') {
620 …while (**ptr != '\0' && **ptr != ' ' && **ptr != ',' && **ptr != '\t' && **ptr != ';' && **ptr != …
621 **ptr != '/' && **ptr != '.' && **ptr != '-' && **ptr != '(' && **ptr != ')' ) {
716 while (**ptr != '\0' && **ptr != ')' && **ptr != ' ') {
746 …if ((*ptr)[0] == 'G' && (*ptr)[1] == 'M' && (*ptr)[2] == 'T' && ((*ptr)[3] == '+' || (*ptr)[3] == …
[all …]
H A Dparse_iso_intervals.re137 while ((**ptr < '0') || (**ptr > '9')) {
141 ++*ptr;
145 ++*ptr;
160 while (((**ptr < '0') || (**ptr > '9')) && (**ptr != '+') && (**ptr != '-')) {
164 ++*ptr;
167 while (**ptr == '+' || **ptr == '-')
179 while (**ptr == ' ' || **ptr == '\t') {
197 while (**ptr == ' ' || **ptr == '\t' || **ptr == '(') {
200 …if ((*ptr)[0] == 'G' && (*ptr)[1] == 'M' && (*ptr)[2] == 'T' && ((*ptr)[3] == '+' || (*ptr)[3] == …
284 ptr++;
[all …]
H A Dparse_iso_intervals.c139 while ((**ptr < '0') || (**ptr > '9')) { in timelib_get_nr()
143 ++*ptr; in timelib_get_nr()
147 ++*ptr; in timelib_get_nr()
162 while (((**ptr < '0') || (**ptr > '9')) && (**ptr != '+') && (**ptr != '-')) { in timelib_get_unsigned_nr()
166 ++*ptr; in timelib_get_unsigned_nr()
169 while (**ptr == '+' || **ptr == '-') in timelib_get_unsigned_nr()
174 ++*ptr; in timelib_get_unsigned_nr()
181 while (**ptr == ' ' || **ptr == '\t') { in timelib_eat_spaces()
199 while (**ptr == ' ' || **ptr == '\t' || **ptr == '(') { in timelib_get_zone()
202 …if ((*ptr)[0] == 'G' && (*ptr)[1] == 'M' && (*ptr)[2] == 'T' && ((*ptr)[3] == '+' || (*ptr)[3] == … in timelib_get_zone()
[all …]
/PHP-5.5/ext/sysvshm/
H A Dsysvshm.c128 shmdt((void *) shm_ptr->ptr); in php_release_sysvshm()
198 shm_list_ptr->ptr = chunk_ptr; in PHP_FUNCTION()
368 php_remove_shm_data(ptr, shm_varpos); in php_put_shm_data()
371 if (ptr->free < total_size) { in php_put_shm_data()
375 shm_var = (sysvshm_chunk *) ((char *) ptr + ptr->end); in php_put_shm_data()
380 ptr->end += total_size; in php_put_shm_data()
381 ptr->free -= total_size; in php_put_shm_data()
393 pos = ptr->start; in php_check_shm_data()
396 if (pos >= ptr->end) { in php_check_shm_data()
424 ptr->free += chunk_ptr->next; in php_remove_shm_data()
[all …]
/PHP-5.5/ext/xmlwriter/
H A Dphp_xmlwriter.c770 ptr = intern->ptr; in php_xmlwriter_string_arg()
805 ptr = intern->ptr; in php_xmlwriter_end()
846 ptr = intern->ptr; in PHP_FUNCTION()
915 ptr = intern->ptr; in PHP_FUNCTION()
960 ptr = intern->ptr; in PHP_FUNCTION()
1005 ptr = intern->ptr; in PHP_FUNCTION()
1057 ptr = intern->ptr; in PHP_FUNCTION()
1118 ptr = intern->ptr; in PHP_FUNCTION()
1173 ptr = intern->ptr; in PHP_FUNCTION()
1244 ptr = intern->ptr; in PHP_FUNCTION()
[all …]
/PHP-5.5/main/streams/
H A Dphp_streams_int.h29 #define erealloc_rel_orig(ptr, size) \ argument
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… argument
38 # define perealloc_rel_orig(ptr, size, persistent) perealloc((ptr), (size), (persistent)) argument
/PHP-5.5/main/
H A Dfopen_wrappers.c115 while (ptr && *ptr) { in ZEND_INI_MH()
126 ptr = end; in ZEND_INI_MH()
298 char *ptr; local
313 while (ptr && *ptr) {
325 ptr = end;
510 ptr = path;
511 while (ptr && *ptr) {
529 memcpy(trypath, ptr, end-ptr);
542 ptr = NULL;
666 while (ptr && *ptr) {
[all …]
/PHP-5.5/ext/mysqli/
H A Dmysqli_warning.c192 if (obj->ptr) { in PHP_METHOD()
202 ((MYSQLI_RESOURCE *)(obj->ptr))->ptr = w; in PHP_METHOD()
217 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { in mysqli_warning_message()
221 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_message()
236 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { in mysqli_warning_sqlstate()
240 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_sqlstate()
255 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { in mysqli_warning_errno()
258 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_errno()
318 mysqli_resource->ptr = mysqli_resource->info = (void *)w;
324 ((mysqli_object *) zend_object_store_get_object(getThis() TSRMLS_CC))->ptr = mysqli_resource;
H A Dmysqli_prop.c44 if (!obj->ptr || !(MY_MYSQL *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { \
56 if (!obj->ptr) { \
62 p = (MYSQL_RES *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; \
167 mysql = (MY_MYSQL *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in link_affected_rows_read()
203 mysql = (MY_MYSQL *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in link_error_list_read()
269 mysql = (MY_MYSQL *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in MYSQLI_MAP_PROPERTY_FUNC_STRING()
298 p = (MYSQL_RES *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in result_type_read()
318 p = (MYSQL_RES *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in result_lengths_read()
349 p = (MY_STMT*)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in MYSQLI_MAP_PROPERTY_FUNC_LONG()
369 p = (MY_STMT *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in stmt_affected_rows_read()
[all …]
/PHP-5.5/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_allocators.c79 static void *__mbfl__realloc(void *ptr, unsigned int sz) in __mbfl__realloc() argument
81 return realloc(ptr, sz); in __mbfl__realloc()
89 static void __mbfl__free(void *ptr) in __mbfl__free() argument
91 free(ptr); in __mbfl__free()
/PHP-5.5/ext/standard/
H A Dcrypt_blowfish.c533 ptr += 2; \
541 ptr += 2; \
610 if (!*ptr) in BF_set_key()
611 ptr = key; in BF_set_key()
613 ptr++; in BF_set_key()
671 BF_word *ptr; in BF_crypt() local
716 ptr += 4; in BF_crypt()
720 *(ptr - 4) = L; in BF_crypt()
721 *(ptr - 3) = R; in BF_crypt()
726 *(ptr - 2) = L; in BF_crypt()
[all …]
/PHP-5.5/ext/ftp/
H A Dftp.c742 for (ptr = ftp->inbuf; *ptr && *ptr != '('; ptr++); in ftp_pasv()
747 for (n = 0; *ptr && n < 3; ptr++) { in ftp_pasv()
772 for (ptr = ftp->inbuf; *ptr && !isdigit(*ptr); ptr++); in ftp_pasv()
850 php_stream_write(outstream, ptr, (e - ptr)); in ftp_get()
851 ptr = e; in ftp_get()
853 while (e > ptr && (s = memchr(ptr, '\r', (e - ptr)))) { in ftp_get()
854 php_stream_write(outstream, ptr, (s - ptr)); in ftp_get()
863 php_stream_write(outstream, ptr, (e - ptr)); in ftp_get()
1003 for (ptr = ftp->inbuf; *ptr && !isdigit(*ptr); ptr++); in ftp_mdtm()
1663 for (ptr = data->buf; rcvd; rcvd--, ptr++) { in ftp_genlist()
[all …]
/PHP-5.5/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);

Completed in 107 milliseconds

123456789