]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/keyword.hh
* Another grand 2003 update.
[lilypond.git] / lily / include / keyword.hh
index 152d9dc15d8a178b61fb0dac55ace5ec53df3c57..707c0b48ed00774198cbbe9f5aebb3112e164a16 100644 (file)
@@ -1,25 +1,30 @@
 /*
-  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;
 };