]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/keyword.hh
release: 1.5.29
[lilypond.git] / lily / include / keyword.hh
index eec7c6f86ee641fc0111c55538c353b4cfa72fed..f8f9c75bb32afd8208a7ac6c4a5272efa2ec5aac 100644 (file)
@@ -1,25 +1,30 @@
 /*
   keyword.hh -- part of GNU LilyPond
 
-  (c) 1996--1999 Han-Wen Nienhuys
+  (c) 1996--2002 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;
-    Keyword_table (Keyword_ent *);
-    int     lookup (char const *s) const;
+  Array<Keyword_ent> table_;
+
+  Keyword_table (Keyword_ent *);
+  int     lookup (char const *s) const;
 };