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