X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=lily%2Finclude%2Fkeyword.hh;h=3a8a287f7ce418130c13baa2f355e36a1dd0bc34;hb=0fdc16375c79b31150cfe459b3388ee3c7784553;hp=74bcc33c48427d6868021452570ee4a1617c4004;hpb=fd7e615444cf58b38283a59b56d3457c07778397;p=lilypond.git diff --git a/lily/include/keyword.hh b/lily/include/keyword.hh index 74bcc33c48..3a8a287f7c 100644 --- a/lily/include/keyword.hh +++ b/lily/include/keyword.hh @@ -1,27 +1,31 @@ /* keyword.hh -- part of GNU LilyPond - (c) 1996--1999 Han-Wen Nienhuys + (c) 1996--2007 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; + vector table_; + Keyword_table (Keyword_ent *); - int lookup (char const *s) const; + vsize lookup (char const *s) const; }; - #endif // KEYWORD_HH