mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 21:19:24 +00:00
Initialize the Keyword::_lineno field through the constructor.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
/* Keyword data.
|
||||
|
||||
Copyright (C) 1989-1998, 2000, 2002-2003 Free Software Foundation, Inc.
|
||||
Copyright (C) 1989-1998, 2000, 2002-2003, 2017 Free Software Foundation, Inc.
|
||||
Written by Douglas C. Schmidt <schmidt@ics.uci.edu>
|
||||
and Bruno Haible <bruno@clisp.org>.
|
||||
|
||||
@@ -33,7 +33,7 @@ struct Keyword
|
||||
{
|
||||
/* Constructor. */
|
||||
Keyword (const char *allchars, int allchars_length,
|
||||
const char *rest);
|
||||
const char *rest, unsigned int lineno);
|
||||
|
||||
/* Data members defined immediately by the input file. */
|
||||
/* The keyword as a string, possibly containing NUL bytes. */
|
||||
@@ -51,7 +51,7 @@ struct KeywordExt : public Keyword
|
||||
{
|
||||
/* Constructor. */
|
||||
KeywordExt (const char *allchars, int allchars_length,
|
||||
const char *rest);
|
||||
const char *rest, unsigned int lineno);
|
||||
|
||||
/* Data members depending on the keyposition list. */
|
||||
/* The selected characters that participate for the hash function,
|
||||
@@ -97,7 +97,7 @@ public:
|
||||
/* Creates a new Keyword. */
|
||||
virtual /*abstract*/ Keyword *
|
||||
create_keyword (const char *allchars, int allchars_length,
|
||||
const char *rest) = 0;
|
||||
const char *rest, unsigned int lineno) = 0;
|
||||
};
|
||||
|
||||
/* A statically allocated empty string. */
|
||||
|
||||
Reference in New Issue
Block a user