]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/keyword.hh
* The grand 2005-2006 replace.
[lilypond.git] / lily / include / keyword.hh
index 74bcc33c48427d6868021452570ee4a1617c4004..cd4fa00f9a7003a432f12e320a84ea180244a680 100644 (file)
@@ -1,27 +1,31 @@
 /*
   keyword.hh -- part of GNU LilyPond
 
-  (c) 1996--1999 Han-Wen Nienhuys
+  (c) 1996--2006 Han-Wen Nienhuys
 */
 
 #ifndef KEYWORD_HH
 #define KEYWORD_HH
 
+#include "array.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;
+  Array<Keyword_ent> table_;
+
   Keyword_table (Keyword_ent *);
-  int     lookup (char const *s) const;
+  int lookup (char const *s) const;
 };
 
-
 #endif // KEYWORD_HH