Home
last modified time | relevance | path

Searched refs:mset (Results 1 – 2 of 2) sorted by relevance

/PHP-7.2/ext/fileinfo/libmagic/
H A Dapprentice.c1014 if (mset[i].count == mset[i].max) { in addentry()
1019 erealloc(mset[i].me, sizeof(*mp) * mset[i].max))) == in addentry()
1026 mset[i].me = mp; in addentry()
1028 mset[i].me[mset[i].count++] = *me; in addentry()
1240 memset(mset, 0, sizeof(mset)); in apprentice_load()
1311 i = set_text_binary(ms, mset[j].me, mset[j].count, i); in apprentice_load()
1313 if (mset[j].me) in apprentice_load()
1314 qsort(mset[j].me, mset[j].count, sizeof(*mset[j].me), in apprentice_load()
1321 set_last_default(ms, mset[j].me, mset[j].count); in apprentice_load()
1324 if (coalesce_entries(ms, mset[j].me, mset[j].count, in apprentice_load()
[all …]
/PHP-7.2/ext/fileinfo/
H A Dlibmagic.patch378 mset[i].max += ALLOC_INCR;
380 - realloc(mset[i].me, sizeof(*mp) * mset[i].max))) ==
381 + erealloc(mset[i].me, sizeof(*mp) * mset[i].max))) ==
383 file_oomem(ms, sizeof(*mp) * mset[i].max);
387 struct magic_entry_set *mset)
422 (void)addentry(ms, &me, mset);
459 struct magic_entry_set mset[MAGIC_SETS];
466 memset(mset, 0, sizeof(mset));
533 load_1(ms, action, filearr[i], &errs, mset);
540 load_1(ms, action, fn, &errs, mset);

Completed in 15 milliseconds