/*
keyword.hh -- part of GNU LilyPond
- (c) 1996--2000 Han-Wen Nienhuys
+ (c) 1996--2009 Han-Wen Nienhuys
*/
#ifndef KEYWORD_HH
#define KEYWORD_HH
+#include "std-vector.hh"
+
/* for the keyword table */
struct Keyword_ent
{
- char const *name;
- int tokcode;
+ char const *name_;
+ int tokcode_;
};
/*
junkme, use hash table.
- */
+*/
struct Keyword_table
{
- Keyword_ent *table;
- int maxkey;
+ vector<Keyword_ent> table_;
+
Keyword_table (Keyword_ent *);
- int lookup (char const *s) const;
+ vsize lookup (char const *s) const;
};
-
#endif // KEYWORD_HH