/* 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; } ports-gnome/'>freebsd-ports-gnome
FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* - Convert USE_ICONV=yes to USES=iconvmva2013-04-271-1/+1
* Convert Makefile headers to the new format.olgeni2013-02-181-5/+1
* Upgrade to version 5.3.1.olgeni2012-11-083-46/+181
* Upgrade to version 5.3.olgeni2012-08-083-29/+307
* Actually commit the racket-textual Makefile...olgeni2012-04-171-23/+16
* Add the actual racket-textual port after repocopy. It provides aolgeni2012-04-173-15701/+6
* Upgrade to version 5.2.1.olgeni2012-02-143-186/+939
* Upgrade to version 5.2.olgeni2011-11-163-1176/+2294
* Add MAKE_JOBS_UNSAFE[1] and fix portlint warnings.olgeni2011-10-061-3/+5
* - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)amdmi32011-09-241-2/+0
* Set MANUAL_PACKAGE_BUILD when ARCH == i386.olgeni2011-09-121-0/+4
* Add a couple of missing entries to pkg-plist.olgeni2011-09-072-0/+3
* Upgrade to version 5.1.3.olgeni2011-08-303-3044/+4218
* Refactor and make X11 support optional.olgeni2011-02-023-36/+40
* Sync to new bsd.autotools.mkade2010-12-041-1/+1
* Upgrade to version 5.0.2.olgeni2010-11-083-16914/+17443
* Restore %%ARCH%% in PLIST.olgeni2010-08-101-6/+6
* Upgrade to version 5.0.1.olgeni2010-08-103-108/+1052
* Add a few missing files to pkg-plist.olgeni2010-08-092-0/+8
* Upgrade repocopied plt-scheme to Razor 5.0 and take over maintainership.olgeni2010-08-085-14664/+16001
* - update to 1.4.1dinoex2010-03-281-2/+2
* - update to jpeg-8dinoex2010-02-051-1/+2
* * Upgrade to version 4.2.4.olgeni2010-02-053-63/+308
* Upgrade to version 4.2.3.olgeni2010-01-063-1144/+2881
* -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-031-1/+1
* - update to jpeg7dinoex2009-07-181-2/+2
* - Update X.org ports to 7.4+ (few ports are more recent than the katamari).flz2009-01-241-0/+1
* - Update to 4.1.4amdmi32009-01-233-158/+463
* lang/plt-scheme: update from 4.0.2 to 4.1.2daichi2008-11-114-359/+865