/PHP-5.3/main/ |
H A D | mergesort.c | 133 setup(list1, list2, nmemb, size, cmp TSRMLS_CC); in php_mergesort() 147 if ((*cmp)(f1, f2 TSRMLS_CC) <= 0) { in php_mergesort() 166 (*cmp)(q, p TSRMLS_CC) <= sense) in php_mergesort() 180 if ((*cmp)(q, p = b + i TSRMLS_CC) <= sense) in php_mergesort() 187 if ((*cmp)(q, in php_mergesort() 272 insertionsort(list1, n, size, cmp TSRMLS_CC); in setup() 288 sense = (cmp(f1, f1 + size TSRMLS_CC) > 0); in setup() 293 if ((cmp(f2, f2+ size TSRMLS_CC) > 0) != sense) in setup() 306 if ((cmp(f2-size, f2 TSRMLS_CC) > 0) != sense) { in setup() 325 if (cmp (f1, f1 + size TSRMLS_CC) > 0) in setup() [all …]
|
H A D | php.h | 327 PHPAPI int php_mergesort(void *base, size_t nmemb, register size_t size, int (*cmp)(const void *, c…
|
/PHP-5.3/ext/standard/tests/array/ |
H A D | 003.phpt | 9 function cmp ($a, $b) { 18 uasort ($data, 'cmp'); 23 uksort ($data, 'cmp'); 27 usort ($data, 'cmp');
|
H A D | uasort_basic1.phpt | 13 /* Prototype : int cmp(mixed $value1, mixed $value2) 20 function cmp($value1, $value2) 35 var_dump( uasort($int_values, 'cmp') ); 41 var_dump( uasort($string_values, 'cmp') ); 47 var_dump( uasort($numeric_key_arg, 'cmp') ); 53 var_dump( uasort($string_key_arg, 'cmp') );
|
H A D | uasort_basic2.phpt | 13 /* Prototype : int cmp(mixed $value1, mixed $value2) 20 function cmp($value1, $value2) 35 var_dump( uasort($int_values1, 'cmp') ); 41 var_dump( uasort($int_values2, 'cmp') ); 47 var_dump( uasort($int_values3, 'cmp') );
|
H A D | usort_basic.phpt | 16 function cmp($value1, $value2) 32 var_dump( usort($int_values, 'cmp') ); 39 var_dump( usort($string_values, 'cmp') ); 46 var_dump( usort($numeric_key_arg, 'cmp') ); 53 var_dump( usort($string_key_arg, 'cmp') );
|
H A D | uasort_variation9.phpt | 16 /* Prototype : int cmp(mixed &$value1, mixed &$value2) 23 function cmp(&$value1, &$value2) 38 var_dump( uasort($int_values, 'cmp') ); 44 var_dump( uasort($string_values, 'cmp') );
|
H A D | uksort_basic.phpt | 9 function cmp($a, $b) { 16 uasort($a, "cmp");
|
H A D | uasort_variation11.phpt | 17 /* Prototype : int cmp(mixed $value1, mixed $value2) 24 function cmp($value1, $value2) 39 var_dump( uasort($array_arg, 'cmp') ); 45 var_dump( uasort($array_arg, 'cmp') );
|
H A D | usort_variation10.phpt | 16 function cmp($value1, $value2) 34 var_dump( usort($array_arg, 'cmp') ); 41 var_dump( usort($array_arg, 'cmp') );
|
H A D | uasort_error.phpt | 13 /* Prototype : int cmp(mixed $value1, mixed $value2) 20 function cmp($value1, $value2) 43 var_dump( uasort($array_arg, 'cmp', $extra_arg) );
|
H A D | usort_error2.phpt | 18 function cmp($value1, $value2)
|
H A D | uasort_object1.phpt | 18 /* Prototype : int cmp(mixed $value1, mixed $value2)
|
/PHP-5.3/ext/zip/lib/ |
H A D | zip_name_locate.c | 54 int (*cmp)(const char *, const char *); in _zip_name_locate() local 71 cmp = (flags & ZIP_FL_NOCASE) ? strcmpi : strcmp; in _zip_name_locate() 90 if (cmp(fname, fn) == 0) in _zip_name_locate()
|
/PHP-5.3/TSRM/ |
H A D | buildconf | 14 if cmp aclocal.m4.old aclocal.m4 > /dev/null 2>&1; then 27 if cmp configure.old configure > /dev/null 2>&1; then
|
/PHP-5.3/Zend/ |
H A D | buildconf | 14 if cmp aclocal.m4.old aclocal.m4 > /dev/null 2>&1; then 27 if cmp configure.old configure > /dev/null 2>&1; then
|
H A D | zend_strtod.c | 888 static int cmp(Bigint *a, Bigint *b) in cmp() function 927 i = cmp(a,b); in diff() 1343 if (cmp(b, S) >= 0) { in quorem() 1894 if (cmp(b,S) < 0) { in zend_dtoa() 1903 if (ilim < 0 || cmp(b,S = multadd(S,5,0)) <= 0) { in zend_dtoa() 1934 j = cmp(b, mlo); in zend_dtoa() 1936 j1 = delta->sign ? 1 : cmp(b, delta); in zend_dtoa() 1955 j1 = cmp(b, S); in zend_dtoa() 1995 j = cmp(b, S); in zend_dtoa() 2379 i = cmp(delta, bs); in zend_strtod() [all …]
|
H A D | zend_operators.h | 201 int cmp = strcmp(&ptr[-digits], long_min_digits); local 203 if (!(cmp < 0 || (cmp == 0 && *str == '-'))) {
|
/PHP-5.3/ext/spl/tests/ |
H A D | arrayObject_uasort_basic1.phpt | 15 function cmp($value1, $value2) { 27 $ao->uasort('cmp');
|
H A D | arrayObject_uksort_basic1.phpt | 14 function cmp($value1, $value2) { 26 $ao->uksort('cmp');
|
/PHP-5.3/ext/spl/ |
H A D | spl_heap.c | 62 spl_ptr_heap_cmp_func cmp; member 224 static spl_ptr_heap *spl_ptr_heap_init(spl_ptr_heap_cmp_func cmp, spl_ptr_heap_ctor_func ctor, spl_… in spl_ptr_heap_init() argument 230 heap->cmp = cmp; in spl_ptr_heap_init() 252 …for(i = heap->count++; i > 0 && heap->cmp(heap->elements[(i-1)/2], elem, cmp_userdata TSRMLS_CC) <… in spl_ptr_heap_insert() 292 …if(j != heap->count && heap->cmp(heap->elements[j+1], heap->elements[j], cmp_userdata TSRMLS_CC) >… in spl_ptr_heap_delete_top() 297 if(heap->cmp(bottom, heap->elements[j], cmp_userdata TSRMLS_CC) < 0) { in spl_ptr_heap_delete_top() 322 heap->cmp = from->cmp; in spl_ptr_heap_clone() 428 intern->heap->cmp = spl_ptr_pqueue_zval_cmp; in spl_heap_object_new_ex() 435 intern->heap->cmp = spl_ptr_heap_zval_min_cmp; in spl_heap_object_new_ex() 440 intern->heap->cmp = spl_ptr_heap_zval_max_cmp; in spl_heap_object_new_ex()
|
/PHP-5.3/ext/date/lib/ |
H A D | parse_tz.c | 274 int cmp = strcasecmp(timezone, tzdb->index[mid].id); in seek_to_tz_position() local 276 if (cmp < 0) { in seek_to_tz_position() 278 } else if (cmp > 0) { in seek_to_tz_position()
|
/PHP-5.3/ext/standard/ |
H A D | var_unserializer.re | 480 int cmp = strncmp(YYCURSOR - MAX_LENGTH_OF_LONG, long_min_digits, MAX_LENGTH_OF_LONG - 1); 482 if (!(cmp < 0 || (cmp == 0 && start[2] == '-'))) {
|
H A D | var_unserializer.c | 1048 int cmp = strncmp(YYCURSOR - MAX_LENGTH_OF_LONG, long_min_digits, MAX_LENGTH_OF_LONG - 1); in php_var_unserialize() local 1050 if (!(cmp < 0 || (cmp == 0 && start[2] == '-'))) { in php_var_unserialize()
|
/PHP-5.3/ext/json/ |
H A D | JSON_parser.c | 306 int cmp = strcmp(buf->c + (buf->c[0] == '-'), long_min_digits); in json_create_zval() local 308 if (!(cmp < 0 || (cmp == 0 && buf->c[0] == '-'))) { in json_create_zval()
|