diff options
author | Bruno Haible <bruno@clisp.org> | 2003-01-14 12:44:42 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2003-01-14 12:44:42 +0000 |
commit | f60e559cfa329bc7ee25132b1a589327eb240404 (patch) | |
tree | b01cbb0d6a611ec0cdffbf16644e00dc9425de2d /src/main.cc | |
parent | 741d34fb0701ce8d2784fd210f2b5284b3496a91 (diff) | |
download | gperf-f60e559cfa329bc7ee25132b1a589327eb240404.tar.gz |
Comments.
Diffstat (limited to 'src/main.cc')
-rw-r--r-- | src/main.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main.cc b/src/main.cc index ad98d91..c55901a 100644 --- a/src/main.cc +++ b/src/main.cc @@ -27,6 +27,8 @@ #include "output.h" +/* ------------------------------------------------------------------------- */ + /* This Keyword factory produces KeywordExt instances. */ class KeywordExt_Factory : public Keyword_Factory @@ -41,6 +43,7 @@ KeywordExt_Factory::create_keyword (const char *allchars, int allchars_length, c return new KeywordExt (allchars, allchars_length, rest); } +/* ------------------------------------------------------------------------- */ int main (int argc, char *argv[]) @@ -48,12 +51,12 @@ main (int argc, char *argv[]) /* Set the Options. Open the input file and assign stdin to it. */ option.parse_options (argc, argv); - /* Initialize the key word list. */ + /* Initialize the keyword list. */ KeywordExt_Factory factory; Input inputter (stdin, &factory); inputter.read_keys (); /* We can cast the keyword list to KeywordExt_List* because its list - elements were created by KeywordExt_Factory. */ + elements were created by KeywordExt_Factory. */ KeywordExt_List* list = static_cast<KeywordExt_List*>(inputter._head); /* Search for a good hash function. */ @@ -76,11 +79,11 @@ main (int argc, char *argv[]) searcher._asso_values); outputter.output (); - /* Check for write error on stdout. */ + /* Check for write error on stdout. */ int status = 0; if (fflush (stdout) || ferror (stdout)) status = 1; - /* Don't use exit() here, it skips the destructors. */ + /* Don't use exit() here, it skips the destructors. */ return status; } |