summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-01-22 12:03:19 +0000
committerBruno Haible <bruno@clisp.org>2003-01-22 12:03:19 +0000
commit83440a2aed0e8b914e5278666d7f2cfec13c50ab (patch)
tree19fbb27abf26f3f125cce91deb37a8918ef194c0 /src/main.cc
parentd3a9c2f7ade30d8d77be7c66d746c1fa5aa8dce1 (diff)
downloadgperf-83440a2aed0e8b914e5278666d7f2cfec13c50ab.tar.gz
Rewrite the input routines.
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/main.cc b/src/main.cc
index 22ebd46..0c03bfe 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -64,7 +64,7 @@ main (int argc, char *argv[])
/* Initialize the keyword list. */
KeywordExt_Factory factory;
Input inputter (stdin, &factory);
- inputter.read_keys ();
+ inputter.read_input ();
/* We can cast the keyword list to KeywordExt_List* because its list
elements were created by KeywordExt_Factory. */
KeywordExt_List* list = static_cast<KeywordExt_List*>(inputter._head);
@@ -75,11 +75,15 @@ main (int argc, char *argv[])
/* Output the hash function code. */
Output outputter (searcher._head,
- inputter._array_type,
+ inputter._struct_decl,
inputter._return_type,
inputter._struct_tag,
- inputter._additional_code,
- inputter._include_src,
+ inputter._verbatim_declarations,
+ inputter._verbatim_declarations_end,
+ inputter._verbatim_declarations_lineno,
+ inputter._verbatim_code,
+ inputter._verbatim_code_end,
+ inputter._verbatim_code_lineno,
searcher._total_keys,
searcher._total_duplicates,
searcher._max_key_len,