]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.6
authorfred <fred>
Fri, 1 Nov 1996 21:22:58 +0000 (21:22 +0000)
committerfred <fred>
Fri, 1 Nov 1996 21:22:58 +0000 (21:22 +0000)
table.cc

index da2af9575ed504101855bbbc5aa5fe792dbdf9cd..53525743998509539178f72cc13b1f5947be88d1 100644 (file)
--- a/table.cc
+++ b/table.cc
@@ -1,12 +1,14 @@
 #include "glob.hh"
 #include "debug.hh"
 #include "string.hh"
+#include "identifier.hh"
 #include "keyword.hh"
 #include "parser.hh"
 
 static Keyword_ent  the_key_tab[]={
     "voice", VOICE,
     "rhythmstaff", RHYTHMSTAFF,
+    "melodicstaff", MELODICSTAFF,
     "score", SCORE,
     "bar", BAR,
     "output", OUTPUT,
@@ -20,6 +22,7 @@ static Keyword_ent  the_key_tab[]={
     "unitspace", UNITSPACE,
     "skip", SKIP,
     "commands", COMMANDS,
+    "staff", STAFF,
     0,0
 } ;
 
@@ -37,7 +40,13 @@ Identifier*
 lookup_identifier(String s)
 {
     if (!the_id_tab.elt_query(s))
-        the_id_tab[s]= new Identifier;
+       return 0;
     
     return the_id_tab[s];
 }
+
+void
+add_identifier(Identifier*i)
+{    
+    the_id_tab[i->name] = i;
+}