]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.8
authorfred <fred>
Tue, 5 Nov 1996 16:28:39 +0000 (16:28 +0000)
committerfred <fred>
Tue, 5 Nov 1996 16:28:39 +0000 (16:28 +0000)
lookupsyms.cc

index 294f2e9af48de818a57721e96f6994f33bd1e9d1..e6ad52ca5a717c600028e6617f07616ea6a418be 100644 (file)
@@ -3,6 +3,7 @@
 #include "symtable.hh"
 #include "dimen.hh"
 #include "tex.hh"
+
 void
 Lookup::parse(Text_db&t)
 {
@@ -55,6 +56,29 @@ Lookup::flag(int j)
     return (*symtables_)("flags")->lookup(j);
 }
 
+Symbol
+Lookup::streepjes(int i)
+{
+    assert(i);
+    
+    int arg;
+    String idx ;
+    if (i<0) {
+       idx = "botlines";
+       arg = -i;
+    }else {
+       arg = i;
+       idx = "toplines";
+    }
+    Symbol ret = (*symtables_)("streepjes")->lookup(idx);
+    
+    svec<String> a;
+    a.add(arg);
+    ret.tex = substitute_args(ret.tex, a);
+
+    return ret;
+}
+
 /****************************************************************/
 // bare bones.