X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fkeyword.hh;h=628ac1f59593091fe31183bba4a73cb160155891;hb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;hp=4b40a979fcfc85a1f0bf986bcca23593721ab05a;hpb=1a66290a98e7de8d6d41485b5b71a9f7e1fe35c7;p=lilypond.git diff --git a/lily/include/keyword.hh b/lily/include/keyword.hh index 4b40a979fc..628ac1f595 100644 --- a/lily/include/keyword.hh +++ b/lily/include/keyword.hh @@ -1,27 +1,31 @@ /* keyword.hh -- part of GNU LilyPond - (c) 1996,97 Han-Wen Nienhuys + (c) 1996--2008 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; - Keyword_table (Keyword_ent *); - int lookup (char const *s) const; -}; + vector table_; + Keyword_table (Keyword_ent *); + vsize lookup (char const *s) const; +}; #endif // KEYWORD_HH