Home
last modified time | relevance | path

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

/PHP-8.3/ext/fileinfo/libmagic/
H A Dapprentice.c1231 if (mset[i].me == NULL || mset[i].count == mset[i].max) { in addentry()
1243 mset[i].me = mp; in addentry()
1247 mset[i].me[mset[i].count++] = *me; in addentry()
1466 memset(mset, 0, sizeof(mset)); in apprentice_load()
1539 i = set_text_binary(ms, mset[j].me, mset[j].count, i); in apprentice_load()
1541 if (mset[j].me) in apprentice_load()
1542 qsort(mset[j].me, mset[j].count, sizeof(*mset[j].me), in apprentice_load()
1549 set_last_default(ms, mset[j].me, mset[j].count); in apprentice_load()
1552 if (mset[j].count == 0) in apprentice_load()
1555 if (coalesce_entries(ms, mset[j].me, mset[j].count, in apprentice_load()
[all …]
/PHP-8.3/ext/fileinfo/
H A Dlibmagic.patch280 size_t incr = mset[i].max + ALLOC_INCR;
282 - realloc(mset[i].me, sizeof(*mp) * incr))) ==
283 + erealloc(mset[i].me, sizeof(*mp) * incr))) ==
289 struct magic_entry_set *mset)
324 (void)addentry(ms, &me, mset);
361 struct magic_entry_set mset[MAGIC_SETS];
368 memset(mset, 0, sizeof(mset));
439 load_1(ms, action, filearr[i], &errs, mset);
448 load_1(ms, action, fn, &errs, mset);
455 magic_entry_free(mset[j].me, mset[j].count);

Completed in 19 milliseconds