aboutsummaryrefslogtreecommitdiff
path: root/src/eclat.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-10-12 17:29:14 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2012-10-12 17:29:14 +0300
commit75f2669bf1b62b441002ac361e245254e9ad7330 (patch)
tree16e6af51b24d9a86d5cdefcc58723582c404d22c /src/eclat.c
parentdfa58f8b8ebf024c2ec678a836adcd055e4bc052 (diff)
downloadeclat-75f2669bf1b62b441002ac361e245254e9ad7330.tar.gz
eclat-75f2669bf1b62b441002ac361e245254e9ad7330.tar.bz2
Implement sequence map.
* doc/eclat.conf.5: Document sequence maps. * lib/Makefile.am: Add new files. * lib/libeclat.h (eclat_map_drv_seq): New extern. * lib/seqmap.c: New file. * src/eclat.c: Minor fixes. * tests/Makefile.am: Add new testcase. * tests/testsuite.at: Likewise. * tests/seqmap.at: New file.
Diffstat (limited to 'src/eclat.c')
-rw-r--r--src/eclat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/eclat.c b/src/eclat.c
index 181391e..ed9e3ae 100644
--- a/src/eclat.c
+++ b/src/eclat.c
@@ -393,7 +393,7 @@ list_filters(FILE *fp)
col = fprintf(fp, " %-24s ", flt->name);
if (col > 26) {
col = start = 26;
- fprintf(fp, "\n%*.*s", start, start, "");
+ fprintf(fp, "\n%*.*s", (int)start, (int)start, "");
}
if (flt->type != FILTER_ENUM)
fprintf(fp, "%s", aws_typestr[flt->type]);
@@ -409,7 +409,7 @@ list_filters(FILE *fp)
len = strlen(delim) + strlen(flt->avail[i]);
if (col + len >= ncols) {
fprintf(fp, ",\n%*.*s",
- start, start, "");
+ (int)start, (int)start, "");
col = start;
delim = "";
}
@@ -563,6 +563,7 @@ main(int argc, char **argv)
eclat_map_init();
eclat_map_drv_register(&eclat_map_drv_null);
eclat_map_drv_register(&eclat_map_drv_file);
+ eclat_map_drv_register(&eclat_map_drv_seq);
#ifdef WITH_GDBM
eclat_map_drv_register(&eclat_map_drv_gdbm);
#endif

Return to:

Send suggestions and report system problems to the System administrator.