/* Dump the hash tables from an ibex file. */ #include #include #include "ibex_internal.h" extern void ibex_hash_dump(struct _IBEXIndex *index); static void index_iterate(struct _IBEXIndex *index) { struct _IBEXCursor *idc; int len; char *key; int total = 0, totallen = 0; idc = index->klass->get_cursor(index); key = idc->klass->next_key(idc, &len); while (len) { total++; totallen += len; printf("%s\n", key); g_free(key); key = idc->klass->next_key(idc, &len); } g_free(key); idc->klass->close(idc); printf("Iterate Totals: %d items, total bytes %d\n", total, totallen); } int main(int argc, char **argv) { ibex *ib; #ifdef ENABLE_THREADS g_thread_init(0); #endif if (argc != 2) { printf("Usage: %s ibexfile\n", argv[0]); return 1; } ib = ibex_open(argv[1], O_RDONLY, 0); if (ib == NULL) { perror("Opening ibex file\n"); return 1; } /* force real-open of the ibex internals */ ibex_contains_name(ib, "dummy"); ibex_hash_dump(ib->words->wordindex); ibex_hash_dump(ib->words->nameindex); index_iterate(ib->words->wordindex); index_iterate(ib->words->nameindex); ibex_close(ib); return 0; } i/'>index : freebsd-ports-gnome
FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* - Add ignore for PHP 56joneum2018-12-211-0/+2
* - Add LICENSEjoneum2018-12-211-4/+3
* Remove version 7.0 from the IGNORE_WITH_PHP list.rene2018-12-061-1/+1
* Deprecate ports depending on php 5.6antoine2018-12-031-0/+3
* Fix some PKGNAME collisionsantoine2018-10-081-1/+1
* Introduce PHP flavors.mat2018-03-091-4/+4
* Note PHP ports that do not build with 7.2.mat2018-02-081-1/+1
* - Update maintainer addressjoneum2017-05-161-1/+1
* Mark ports not building with PHP 7.1.mat2017-02-071-1/+1
* Pass maintainership of PEAR ports to the submitterjbeich2016-11-031-1/+1
* Reset miwi@'s ports, he stepped down from the Ports Team.rene2016-07-261-1/+1
* Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.mat2016-04-011-4/+4
* - Ignore php70miwi2016-02-191-0/+2
* - Take Maintainershipmiwi2015-11-261-1/+1
* Reset miwi's maintainership per his demandbapt2014-11-181-1/+1
* Convert to USES=pearbapt2014-09-231-4/+2
* Stage support for non-IGNORED pear classesantoine2013-11-261-1/+0
* Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1
* - Convert to PEAR_AUTOINSTALLmiwi2013-03-171-9/+2