]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.27
authorfred <fred>
Sun, 24 Mar 2002 19:30:10 +0000 (19:30 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:30:10 +0000 (19:30 +0000)
hdr/scriptdef.hh
hdr/textitem.hh
src/scriptdef.cc

index fb1dc4317f07833fe0e0ad715da4b9ec7c78e617..423860a89505245232fd5e291139fe4582373e3a 100644 (file)
@@ -15,6 +15,7 @@ struct Script_def{
     String symidx;
 
     /****************/
+    int compare(Script_def const &);
     void print() const;
     Script_def(String, int, int ,bool);
 };
index ebf7656276a8233fa890436f05f6ac87697066a1..c563fc80ca7f6a2ff070348098b518b79bac41eb 100644 (file)
 #include "item.hh"
   
 struct Text_item : Item {
-    const char * name() const;
     int pos_i_;
     int staffsize_i_;
     int dir_i_;
     Text_def* tdef_l_;
     
     /****************/
-    
+    const char * name() const;    
     virtual void set_default_pos();
     Molecule* brew_molecule_p() const;
     void do_pre_processing();
index cc7d70087e311df4ad82381145fd89173bbb9cef..1e11de72c29934611a0ee275584e9e97afb2c432 100644 (file)
@@ -14,3 +14,11 @@ Script_def::print() const
     mtor << "idx: " << symidx;
     mtor << "direction, stem: " << stemdir << " staff : " << staffdir;
 }
+int
+Script_def::compare(Script_def const & c)
+{
+    return (symidx == c.symidx &&
+       stemdir == c.stemdir&&
+       staffdir == c.staffdir&&
+       invertsym == c.invertsym);
+}