Searched refs:mset (Results 1 – 2 of 2) sorted by relevance
/php-src/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 1232 if (mset[i].me == NULL || mset[i].count == mset[i].max) { in addentry() 1244 mset[i].me = mp; in addentry() 1248 mset[i].me[mset[i].count++] = *me; in addentry() 1467 memset(mset, 0, sizeof(mset)); in apprentice_load() 1540 i = set_text_binary(ms, mset[j].me, mset[j].count, i); in apprentice_load() 1542 if (mset[j].me) in apprentice_load() 1543 qsort(mset[j].me, mset[j].count, sizeof(*mset[0].me), in apprentice_load() 1550 set_last_default(ms, mset[j].me, mset[j].count); in apprentice_load() 1553 if (mset[j].count == 0) in apprentice_load() 1556 if (coalesce_entries(ms, mset[j].me, mset[j].count, in apprentice_load() [all …]
|
/php-src/ext/fileinfo/ |
H A D | libmagic.patch | 287 size_t incr = mset[i].max + ALLOC_INCR; 289 - realloc(mset[i].me, sizeof(*mp) * incr))) == 290 + erealloc(mset[i].me, sizeof(*mp) * incr))) == 296 struct magic_entry_set *mset) 331 (void)addentry(ms, &me, mset); 368 struct magic_entry_set mset[MAGIC_SETS]; 375 memset(mset, 0, sizeof(mset)); 446 load_1(ms, action, filearr[i], &errs, mset); 455 load_1(ms, action, fn, &errs, mset); 462 magic_entry_free(mset[j].me, mset[j].count);
|
Completed in 23 milliseconds