1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 21:19:24 +00:00

Portability fixes.

This commit is contained in:
Bruno Haible
2003-03-03 14:28:09 +00:00
parent ea37cea17b
commit 9fa3ac42b3
8 changed files with 34 additions and 16 deletions

View File

@@ -33,11 +33,11 @@ class Positions
friend class PositionIterator;
public:
/* Denotes the last char of a keyword, depending on the keyword's length. */
static const int LASTCHAR = 0;
enum { LASTCHAR = 0 };
/* Maximum key position specifiable by the user.
Note that this must fit into the element type of _positions[], below. */
static const int MAX_KEY_POS = 255;
enum { MAX_KEY_POS = 255 };
/* Constructors. */
Positions ();
@@ -89,7 +89,7 @@ public:
PositionIterator (Positions const& positions);
/* End of iteration marker. */
static const int EOS = -1;
enum { EOS = -1 };
/* Retrieves the next position, or EOS past the end. */
int next ();