diff options
author | Bruno Haible <bruno@clisp.org> | 2017-04-16 17:39:15 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2017-04-16 17:39:15 +0200 |
commit | a459641a5356ff0f0350d69f4713eb416dbfde03 (patch) | |
tree | 629c809c26be2f03ce209cce3bc752ece19d85bf /src/main.cc | |
parent | 09cfae667ed8a7de8bdd64956abe5e55183a9d2c (diff) | |
download | gperf-a459641a5356ff0f0350d69f4713eb416dbfde03.tar.gz |
Initialize the Keyword::_lineno field through the constructor.
Diffstat (limited to 'src/main.cc')
-rw-r--r-- | src/main.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.cc b/src/main.cc index 34b59ee..009ff34 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,5 +1,5 @@ /* Driver program for the hash function generator - Copyright (C) 1989-1998, 2000, 2002-2003, 2009 Free Software Foundation, Inc. + Copyright (C) 1989-1998, 2000, 2002-2003, 2009, 2017 Free Software Foundation, Inc. Written by Douglas C. Schmidt <schmidt@ics.uci.edu> and Bruno Haible <bruno@clisp.org>. @@ -34,13 +34,14 @@ class KeywordExt_Factory : public Keyword_Factory { virtual Keyword * create_keyword (const char *allchars, int allchars_length, - const char *rest); + const char *rest, unsigned int lineno); }; Keyword * -KeywordExt_Factory::create_keyword (const char *allchars, int allchars_length, const char *rest) +KeywordExt_Factory::create_keyword (const char *allchars, int allchars_length, + const char *rest, unsigned int lineno) { - return new KeywordExt (allchars, allchars_length, rest); + return new KeywordExt (allchars, allchars_length, rest, lineno); } /* ------------------------------------------------------------------------- */ |