diff options
| author | Simon Tatham <anakin@pobox.com> | 1999-10-20 20:17:18 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 1999-10-20 20:17:18 +0000 |
| commit | 8511f4ae900f48999617bc8384e9c327673e2196 (patch) | |
| tree | d24d0a7d8cc217bf6d864157c3b08e05ed59868f /main.c | |
| parent | e44f985bd4f796d4c4b11eb3555436dbaa2d163b (diff) | |
| download | halibut-8511f4ae900f48999617bc8384e9c327673e2196.zip halibut-8511f4ae900f48999617bc8384e9c327673e2196.tar.gz halibut-8511f4ae900f48999617bc8384e9c327673e2196.tar.bz2 halibut-8511f4ae900f48999617bc8384e9c327673e2196.tar.xz | |
First backend! Text output now pretty much works.
[originally from svn r240]
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -17,6 +17,7 @@ int main(int argc, char **argv) { int nogo; int errs; int reportcols; + int debug; /* * Set up initial (default) parameters. @@ -26,6 +27,7 @@ int main(int argc, char **argv) { nfiles = 0; nogo = errs = FALSE; reportcols = 0; + debug = 0; if (argc == 1) { usage(); @@ -85,6 +87,7 @@ int main(int argc, char **argv) { case 'V': case 'L': case 'P': + case 'd': /* * Option requiring no parameter. */ @@ -104,6 +107,9 @@ int main(int argc, char **argv) { case 'P': reportcols = 1; break; + case 'd': + debug = TRUE; + break; } break; case 'o': @@ -193,10 +199,14 @@ int main(int argc, char **argv) { index_merge(idx, TRUE, p->keyword, p->words); build_index(idx); - index_debug(idx); - dbg_prtkws(keywords); - dbg_prtsource(sourceform); + if (debug) { + index_debug(idx); + dbg_prtkws(keywords); + dbg_prtsource(sourceform); + } + + text_backend(sourceform, keywords, idx); free_para_list(sourceform); free_keywords(keywords); |