Searched refs:vector_size (Results 1 - 2 of 2) sorted by relevance

/PHP_TRUNK/main/
H A Dphp_scandir.c64 int vector_size = 0; local
85 if (nfiles == vector_size) {
87 if (vector_size == 0) {
88 vector_size = 10;
90 vector_size *= 2;
93 newv = (struct dirent **) realloc (vector, vector_size * sizeof (struct dirent *));
/PHP_TRUNK/main/streams/
H A Dstreams.c2264 unsigned int vector_size = 0; local
2277 if (nfiles == vector_size) {
2278 if (vector_size == 0) {
2279 vector_size = 10;
2281 if(vector_size*2 < vector_size) {
2287 vector_size *= 2;
2289 vector = (zend_string **) safe_erealloc(vector, vector_size, sizeof(char *), 0);
2295 if(vector_size < 10 || nfiles == 0) {

Completed in 6 milliseconds