]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.43
authorfred <fred>
Sun, 24 Mar 2002 19:35:37 +0000 (19:35 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:35:37 +0000 (19:35 +0000)
36 files changed:
Documentation/CodingStyle.pod
Documentation/Makefile
lily/beam.cc
lily/clef-reg.cc
lily/dimen.cc
lily/idealspacing.cc
lily/include/class-name.hh
lily/include/idealspacing.hh
lily/include/input-score.hh
lily/include/input-staff.hh
lily/include/keyword.hh
lily/include/linespace.hh
lily/include/local-key-reg.hh
lily/include/p-col.hh
lily/include/p-score.hh
lily/include/p-staff.hh
lily/include/paper-def.hh
lily/include/qlpsolve.hh
lily/include/score.hh
lily/include/scoreline.hh
lily/include/staff-elem-info.hh
lily/include/staffeleminfo.hh
lily/input-score.cc
lily/key-item.cc
lily/key-reg.cc
lily/lily-version.cc
lily/linespace.cc
lily/local-key-reg.cc
lily/molecule.cc
lily/p-col.cc
lily/p-score.cc
lily/paper-def.cc
lily/stem-beam-reg.cc
lily/tex-stream.cc
lily/text-def.cc
lily/version.cc

index 8df4c8fd420e279c2622f25d34ce7b59200662ac..66ee04705f59eff746f3ebbdfc1ec86ae65bc0ef 100644 (file)
@@ -9,26 +9,29 @@ Please use these standards while doing programming for LilyPond
 Functions and methods do not return errorcodes, but use assert for
 checking status. 
 
-               A program should be light and agile, its subroutines
-       connected like a strings of pearls.  The spirit and intent of
-       the program should be retained throughout.  There should be
-       neither too little nor too much, neither needless loops nor
-       useless variables, neither lack of structure nor overwhelming
-       rigidity.
-
-               A program should follow the 'Law of Least
-       Astonishment'.  What is this law?  It is simply that the
-       program should always respond to the user in the way that
-       astonishes him least.
-
-               A program, no matter how complex, should act as a
-       single unit.  The program should be directed by the logic
-       within rather than by outward appearances.
-
-               If the program fails in these requirements, it will be
-       in a state of disorder and confusion.  The only way to correct
-       this is to rewrite the program.
-               -- Geoffrey James, "The Tao of Programming"
+=head2 Quote:
+
+A program should be light and agile, its subroutines
+connected like a strings of pearls.  The spirit and intent of
+the program should be retained throughout.  There should be
+neither too little nor too much, neither needless loops nor
+useless variables, neither lack of structure nor overwhelming
+rigidity.
+
+A program should follow the 'Law of Least
+Astonishment'.  What is this law?  It is simply that the
+program should always respond to the user in the way that
+astonishes him least.
+
+A program, no matter how complex, should act as a
+single unit.  The program should be directed by the logic
+within rather than by outward appearances.
+
+If the program fails in these requirements, it will be
+in a state of disorder and confusion.  The only way to correct
+this is to rewrite the program.
+
+-- Geoffrey James, "The Tao of Programming"
 
 =head2 INDENTATION
 
@@ -109,7 +112,7 @@ symbols. Staff is  the "brains" for PStaff
 NB: in PCursor (which is part of the library) P stands for PointerCursor
 
 
-=head2 MEMBERS(2)
+=head2 MEMBERS (2)
 
 Standard methods:
 
@@ -176,26 +179,33 @@ existed. I feel so stupid and ashamed!
 =over 5
 
 =item *
+
 more keystrokes (disk space!)
 
 =item *
+
 it looks silly C<get_slu_p()>
 
 =item *
+
 it looks like code from micro suckers
 
 =item *
+
 (which) might scare away some (otherwise good?)
 progammers, or make you a paria in the free
 software community
 
 =item *
+
 it has ambiguities
 
 =item *
+
 not very useful if not used consistently
 
 =item *
+
 usefullness in I<very large> 
 (but how many classes is very large?)
 remains an issue.
@@ -209,16 +219,20 @@ remains an issue.
 =over 5
 
 =item *
+
 learn about cut and paste / use emacs or vi
 or lean to type using ten fingers
 
 =item *
+
 Use emacs dabbrev-expand, with dabbrev-case-fold-search set to nil.
 
 =item *
+
 use no, or pick less silly, abbrvs.
 
 =item *
+
 use non-ambiguous postfixes C<identifier_name_type_modifier[_modifier]>
 =back
 
@@ -230,30 +244,41 @@ with the parts of the names separated by underscores.
 =over 5
 
 =item C<byte>
+
+
 unsigned char. (The postfix _by is ambiguous)
 
 =item C<b>
+
+
 bool
 
 =item C<bi>
+
 bit
 
 =item C<ch>
+
 char
 
 =item C<f>
+
 float
 
 =item C<i>
+
 signed integer
 
 =item C<str>
+
 string class
 
 =item C<sz>
+
 Zero terminated c string
 
 =item C<u>
+
 unsigned integer
 
 =back
@@ -275,21 +300,27 @@ These are precede the prefixes:
 =over 5
 
 =item C<a>
+
 array
 
 =item C<array>
+
 user built array.
 
 =item C<c>
-const
+
+const. Note that the proper order C<Type const> i.s.o. C<const Type>
 
 =item C<l>
+
 temporary pointer to object (link)
 
 =item C<p>
+
 pointer to newed object
 
 =item C<r>
+
 reference
 
 =back
@@ -297,24 +328,31 @@ reference
 =over 5
 
 =item C<loop_i>
+
 Variable loop: an integer
 
 =item C<u>
+
 Temporary variable: an unsigned integer
 
 =item C<test_ch>
+
 Variable test: a character
 
 =item C<first_name_str>
+
 Variable first_name: a String class object
 
 =item C<last_name_ch_a>
+
 Variable last_name: a C<char> array
 
 =item C<foo_i_p>
+
 Variable foo: an C<Int*> that you must delete
 
 =item C<bar_i_l>
+
 Variable bar: an C<Int*> that you must not delete
 
 =back
index 9f74fbb9a91b4208f1d6aa74f49d07c40f5c5996..272ea0d2799c04d09fc1dc1e09e9200f12deaa52 100644 (file)
@@ -8,22 +8,18 @@ depth = ..
 # identify module:
 #
 NAME = Documentation
-MAJOR_VERSION = $(TOPLEVEL_MAJOR_VERSION)
-MINOR_VERSION = $(TOPLEVEL_MINOR_VERSION)
-PATCH_LEVEL = $(TOPLEVEL_PATCH_LEVEL)
-# use to send patches, always empty for released version:
-MY_PATCH_LEVEL = $(TOPLEVEL_MY_PATCH_LEVEL)
-build = ./$(depth)/lily/$(outdir)/.build
+
 #
 
 # generic variables:
 #
 include ./$(depth)/make/Variables.make 
+include ./$(depth)/make/Version.make
+include ./$(depth)/make/Files.make 
 #
 
-# list of source files:
 #
-PODFILES = $(shell ls *.pod)
+
 OUTPODFILES = $(patsubst %,$(outdir)/%,$(PODFILES))
 TEXTFILES = $(OUTPODFILES:.pod=.text)
 GROFFFILES = $(OUTPODFILES:.pod=.1)
@@ -32,7 +28,7 @@ HTMLFILES = $(OUTPODFILES:.pod=.html)
 
 # list of distribution files:
 #
-DISTFILES = $(PODFILES) Makefile lelie_logo.gif
+EXTRA_DISTFILES = lelie_icon.gif lelie_logo.gif
 #
 
 default: do-doc
index 87e9114caf10d9355732fe32d64c5f7a3e40361d..9a07bcc6142979e35ba484c9cb0b3fa63e5ee86d 100644 (file)
@@ -24,10 +24,10 @@ struct Stem_info {
 
     
     Stem_info(){}
-    Stem_info(const Stem*);
+    Stem_info(Stem const *);
 };
 
-Stem_info::Stem_info(const Stem*s)
+Stem_info::Stem_info(Stem const *s)
 {
     x = s->hindex();
     int dir = s->dir;
index 791b72408347d00bc3f8fad4dfaa4738b1db2337..b4775721bb42992e7bb07ed9d7c8c32c31c838a1 100644 (file)
@@ -65,7 +65,7 @@ Clef_register::try_request(Request * r_l)
 void
 Clef_register::process_requests()
 {
-    const Time_description *time_l = get_staff_info().time_c_l_;
+    Time_description const *time_l = get_staff_info().time_c_l_;
     if (!clef_req_l_ && (!time_l->whole_in_measure_|| !time_l->when_)) {
        clef_p_ = new Clef_item;
        clef_p_->change = false;
index 9489ae9a1eef6d7f1e66275776037c1badf93d24..9e5fc2cea0abaa8186fc6f80f155ae092e0d9a62 100644 (file)
@@ -7,7 +7,7 @@ Real
 parse_dimen(String dim)
 {
     int i=dim.length_i()-1;
-    const char *s = dim;
+    char const *s = dim;
     while  (i > 0 && (isspace(s[i]) || isalpha(s[i])) ){
        i--;
     }
index 805cb3bebb34f9a163b51aefee0886a2552e146d..8437aabe223eacb46b094b317d9cc43be68f23bb 100644 (file)
@@ -14,7 +14,7 @@ Idealspacing::print() const
 #endif
 }
 
-Idealspacing::Idealspacing(const PCol * l,const PCol * r)
+Idealspacing::Idealspacing(PCol const * l,PCol const * r)
 {
     space = 0.0;
     hooke = 0.0;
index 26da52dc0e89c832db824bf8313ad3d8fe9b69d6..643959d620b17bb69cfc7747b0b32532480bcff4 100644 (file)
@@ -12,8 +12,8 @@
 
 /// a macro to declare the classes name as a static and virtual function.
 #define NAME_MEMBERS(c)        \
-static const char *static_name(){ return #c; }\
-virtual const char *name() const{ return c::static_name(); } \
+static char const *static_name(){ return #c; }\
+virtual char const *name() const{ return c::static_name(); } \
 int a_stupid_nonexistent_function_to_allow_the_semicolon_come_out()
     
 #endif // CLASS-NAME_HH
index 05f58ba9c8675a01b06e52037c0b74a6ea17eb43..6b6f40c01a82d526e2443aa819af09a9cf3434cd 100644 (file)
@@ -18,11 +18,11 @@ struct Idealspacing {
     Real hooke;
 
     /// the two columns
-    const PCol *left, *right;
+    PCol const *left, *right;
     
     void print()const;
     void OK() const ;
-    Idealspacing(const PCol *left,const PCol *right);    
+    Idealspacing(PCol const *left,PCol const *right);    
 };
 
 
index 4286f4b60b798023dd7daf4597c0bf7e63691203..a7468e03fa59f378cafb074089d3b2477e5b0374 100644 (file)
@@ -19,7 +19,7 @@
 /// the total music def of one movement
 struct Input_score {
     /// defined where?    
-    const char* defined_ch_c_l_;
+    char const * defined_ch_c_l_;
     int errorlevel_i_;
     
     /// paper_, staffs_ and commands_ form the problem definition.
@@ -27,7 +27,6 @@ struct Input_score {
     Midi_def* midi_p_;
     IPointerList<Input_staff*> staffs_;
 
-    Input_music * score_wide_music_p_;
     
     /* *************************************************************** */
     Input_score();
@@ -40,7 +39,6 @@ struct Input_score {
     void set(Midi_def* midi_p);
     void print() const;
     Score*parse();
-    void set(Input_music*);
 };
 
 #endif
index 3b874a1b393423e1c68eabb5fd79f3610e6c87aa..23495bd74400996583b4cc026cb0e1023c64407b 100644 (file)
 
 struct Input_staff {
     
-    const char * defined_ch_c_l_;
+    char const * defined_ch_c_l_;
     String type;
     
     IPointerList<Input_music*> music_;
-    Input_music * score_wide_music_p_;
     
     /* *************** */
     ~Input_staff();
     void add(Input_music*m);
     Input_staff(Input_staff const&);
     Input_staff(String);
-    void set_score_wide(Input_music*m);
-    Staff* parse(Score*, Input_music *score_wide);
+    Staff* parse(Score*);
     void print() const;
 };
 
index 152d9dc15d8a178b61fb0dac55ace5ec53df3c57..88ab9ffbe0de7ef61c3096286668ce8a6d1c501c 100644 (file)
@@ -10,7 +10,7 @@
 /* for the keyword table */
 struct Keyword_ent
 {
-    const char   *name;
+    char const *name;
     int     tokcode;
 };
 
@@ -19,7 +19,7 @@ struct Keyword_table
     Keyword_ent *table;
     int     maxkey;
     Keyword_table(Keyword_ent *);
-    int     lookup(const char *s) const;
+    int     lookup(char const *s) const;
 };
 
 
index 1479d1e9368db4d3d1135d78c2c5490887f91f45..2a9e655479bdc42d1ff0b2fe11fd71518f6b4ed9 100644 (file)
@@ -9,8 +9,8 @@
 
 /// helper struct for #Spacing_problem#
 struct Colinfo {
-    const PCol *pcol_;
-    const Real* fixpos;
+    PCol const *pcol_;
+    Real const * fixpos;
     Interval width;
     
     /* *************** */
@@ -18,7 +18,7 @@ struct Colinfo {
     void operator=(Colinfo const&);
     Colinfo(Colinfo const&);
     ~Colinfo();
-    Colinfo(const PCol*,const Real*);
+    Colinfo(PCol const *,Real const *);
     void print() const;
     bool fixed() const { return fixpos;}
     Real fixed_position()const { return *fixpos; }
@@ -47,11 +47,11 @@ struct Colinfo {
     springs. The lower the energy, the better the configuration.
 */
 class Spacing_problem {
-    Array<const Idealspacing*> ideals;
+    Array<Idealspacing const *> ideals;
     Array<Colinfo> cols;
 
     /// the index of #c# in #cols#
-    int col_id(const PCol *c) const;
+    int col_id(PCol const *c) const;
 
     /// generate an (nonoptimal) solution
     Vector find_initial_solution() const;
@@ -60,7 +60,7 @@ class Spacing_problem {
     bool check_feasible() const;
 
     /// does #this# contain the column #w#? 
-    bool contains(const PCol *w);
+    bool contains(PCol const *w);
 
     /// make the energy function
     void make_matrices(Matrix &quad, Vector &lin,Real&) const;
@@ -84,13 +84,13 @@ public:
     since they can be "summed" if the columns to which #i# refers are
     not in this problem, the spacing is ignored.
     */
-    void add_ideal(const Idealspacing *i);
+    void add_ideal(Idealspacing const *i);
     
     
     /** add a col to the problem. columns have to be added left to right. The column contains
       info on it's minimum width.
     */
-    void add_column(const PCol *, bool fixed=false, Real fixpos=0.0);
+    void add_column(PCol const *, bool fixed=false, Real fixpos=0.0);
  
 
 
@@ -99,7 +99,7 @@ public:
     Vector try_initial_solution() const;
     void OK() const;
     void print() const;
-    void print_ideal(const Idealspacing*)const;
+    void print_ideal(Idealspacing const *)const;
 };
 
 
index d0a2867a874eb393d861adcdb58116754c1aec45..9611449383c7f1dcf9d5ce2debf0c0c4ef4bb3d8 100644 (file)
@@ -13,7 +13,7 @@
 struct Local_key_register : Request_register {
     Local_key local_key_;
     Local_key_item* key_item_p_;
-    const Key *key_c_l_;
+    Key const *key_c_l_;
     /* *************** */
     virtual void process_requests();
     virtual void acknowledge_element(Staff_elem_info);
index 2641e64008d1420bcb69fee7d80cefa6a43159a3..48d6c62a1958e7c01287d9ff25336e0bc02d2890 100644 (file)
@@ -21,8 +21,8 @@
   */
 
 struct PCol { 
-    PointerList<const Item*> its;
-    PointerList<const Spanner*> stoppers, starters;
+    PointerList<Item const *> its;
+    PointerList<Spanner const *> stoppers, starters;
     
 
 
@@ -40,7 +40,7 @@ struct PCol {
     PCol *daddy_l_;
     
     /// if lines are broken then this column is in #line#
-    const Line_of_score *line_l_;
+    Line_of_score const *line_l_;
 
     /// if lines are broken then this column x-coord #hpos#
     Real hpos;
index eeec67e2fbaeaa4f4cd8dd8d476da6b3193de481..3177613ec5e89bd4abbe40367ba25b74a1b2856a 100644 (file)
@@ -67,7 +67,7 @@ struct PScore {
      /**
        @return argument as a cursor of the list
        */
-    PCursor<PCol *> find_col(const PCol *)const;
+    PCursor<PCol *> find_col(PCol const *)const;
 
     /* MAIN ROUTINES */
     void process();
index 50a7f0c7198db08da99a7736994df038b6ddb61a..c95834c2fb8ab5dd3bedde04144fe87e831acfdd 100644 (file)
@@ -11,7 +11,7 @@ struct PStaff {
     PScore * pscore_l_;
     
     
-    PointerList<const Spanner*> spans;
+    PointerList<Spanner const *> spans;
     PointerList<Item*> its;
 
     /* *************** */
index fba93580cb53fb30585786bd7979ecc972de60ab..5086a0ff0c0178ba1bb5f816800ab3e861e8b2f5 100644 (file)
@@ -47,7 +47,7 @@ public:
     Real standard_height()const;
     Real note_width() const;
     void print() const;
-    const Lookup* lookup_l();  // TODO naming
+    Lookup const * lookup_l(); // TODO naming
     Real duration_to_dist(Moment);
 };
 
index 7c9b8da341b57342033d9bf97c71bdd45efb213f..3423951452a98c570f4aca54a13034be4187e302 100644 (file)
@@ -32,7 +32,7 @@ class Active_constraints {
     Matrix A,H;
     Array<int> active;
     Array<int> inactive;               // actually this is a set, not an array.
-    const Ineq_constrained_qp *opt;
+    Ineq_constrained_qp const *opt;
 
 public:
     String status()const;
index a865ed02f354f9022d973ec05d282593819ddcea..4f10a7f95f0b99a5b879700cb546dde230ed267a 100644 (file)
@@ -28,7 +28,7 @@ struct Score {
     IPointerList<Score_column*> cols_;
     PScore *pscore_p_;
 
-    const char *defined_ch_c_l_;
+    char const *defined_ch_c_l_;
     int errorlevel_i_;
     
     /* *************************************************************** */
index f4e19870338fd72db780dd6f805ec9f79185858b..9196a96ab334f984672fdc5e2a253b07c5e17be1 100644 (file)
@@ -26,7 +26,7 @@ Line_of_score {
     String TeXstring() const;
 
     // is #c# contained in #*this#?
-    bool element(const PCol *c);
+    bool element(PCol const *c);
 };
 
 #endif
index c07f242e31dae2aa5659ccbb46b74ea265322717..4e3392027d57c909a6ff22a8912dc4ab38d69a0a 100644 (file)
@@ -17,7 +17,7 @@
 struct Staff_elem_info {
     Staff_elem * elem_p_;
     Request*req_l_;
-    const Voice * voice_l_;
+    Voice const * voice_l_;
     Array<Request_register*> origin_reg_l_arr_;
 
     /* *** */
@@ -28,8 +28,8 @@ struct Staff_elem_info {
 struct Staff_info {
     int *c0_position_i_;
     Staff_walker *walk_l_;
-    const Time_description *time_c_l_;
-    const Rhythmic_grouping *rhythmic_c_l_;
+    Time_description const *time_c_l_;
+    Rhythmic_grouping const *rhythmic_c_l_;
     bool break_allowed_b_;
 };
 
index b8af8aeb222d7e99586ff4e7cab91f4b0ff991dd..14652899d404765a3c725f84628075464f0b9b43 100644 (file)
@@ -16,7 +16,7 @@
 struct Staff_elem_info {
     Staff_elem * elem_p_;
     Request*req_l_;
-    const Voice * voice_l_;
+    Voice const * voice_l_;
     Voice_group_registers * group_regs_l_; 
     Request_register * origin_reg_l_;
 
index f39d47a4b1a91e9df75e514644f595d0c10138b7..d68dd10959a189a6182af9eac612448592875d2c 100644 (file)
@@ -42,8 +42,6 @@ Input_score::Input_score(Input_score const&s)
     midi_p_ = (s.midi_p_)? new Midi_def(*s.midi_p_) : 0;
     defined_ch_c_l_ = s.defined_ch_c_l_;
     errorlevel_i_ = s.errorlevel_i_;
-    score_wide_music_p_ = (s.score_wide_music_p_) ?
-       s.score_wide_music_p_->clone():0;
 }
 
 Score*
@@ -55,34 +53,25 @@ Input_score::parse()
     if (midi_p_)
        s_p->set(new Midi_def(*midi_p_));
     if (paper_p_)
-       s_p->set(    new Paper_def(*paper_p_));
+       s_p->set(new Paper_def(*paper_p_));
 
     for (iter_top(staffs_,i); i.ok(); i++) {
-       Staff* staf_p=i->parse(s_p, score_wide_music_p_);
+       Staff* staf_p=i->parse(s_p);
        s_p->add(staf_p);
     }
 
     return s_p;
 }
 
-void
-Input_score::set(Input_music *m_p)
-{
-    delete score_wide_music_p_;
-    score_wide_music_p_ =m_p;    
-}
-
 
 Input_score::~Input_score()
 {
     delete paper_p_;
-    delete score_wide_music_p_;
     delete midi_p_;
 }
 
 Input_score::Input_score()
 {
-    score_wide_music_p_ =0;
     defined_ch_c_l_=0;
     paper_p_= 0;
     midi_p_ = 0;
index 089eab126fc497ebf045b44270debf184d83fd25..726af8cb3065c2d959546121406cfebade8d9982 100644 (file)
@@ -18,7 +18,7 @@ Key_item::Key_item(int c)
 }
 
 void
-Key_item::read(const Key_register& key_reg_r)
+Key_item::read(Key_register const & key_reg_r)
 {
     const Array<int> &idx_arr =key_reg_r.accidental_idx_arr_; 
     for (int i = 0 ; i< idx_arr.size(); i++) {
index 24189a532b61d50191418e7f5f9374274f55713f..865eea264e7fb862c60fe906a290f275aa505d29 100644 (file)
@@ -49,7 +49,7 @@ Key_register::acknowledge_element(Staff_elem_info info)
 void
 Key_register::process_requests()
 {
-    const Time_description *time_l = get_staff_info().time_c_l_;
+    Time_description const *time_l = get_staff_info().time_c_l_;
 
     if (!keyreq_l_ &&
        (!time_l->whole_in_measure_|| !time_l->when_)) {
index fff9ec7f8a40224959e7bba0e25eba51c9bc214d..389178bbc3bf14a2d78ed971701da28c86ac137e 100644 (file)
@@ -7,7 +7,7 @@ static const int build=
 #include ".build"
 ;
 
-const char * 
+char const * 
 lily_version_sz()
 {
     static char v[1024];
index 750487cff7197515fea0b81ec2197716cf800815..3d8637b6dc485d444b137bd6c825a1e8dd5026f8 100644 (file)
@@ -10,7 +10,7 @@ const Real COLFUDGE=1e-3;
 
 
 bool
-Spacing_problem::contains(const PCol *w)
+Spacing_problem::contains(PCol const *w)
 {
     for (int i=0; i< cols.size(); i++)
        if (cols[i].pcol_ == w)
@@ -19,7 +19,7 @@ Spacing_problem::contains(const PCol *w)
 }
 
 int 
-Spacing_problem::col_id(const PCol *w)const
+Spacing_problem::col_id(PCol const *w)const
 {
     for (int i=0; i< cols.size(); i++)
        if (cols[i].pcol_ == w)
@@ -194,17 +194,17 @@ Spacing_problem::solve() const
     add one column to the problem.
 */    
 void
-Spacing_problem::add_column(const PCol *col, bool fixed, Real fixpos)
+Spacing_problem::add_column(PCol const *col, bool fixed, Real fixpos)
 {
     Colinfo c(col,(fixed)? &fixpos :  0);
     cols.push(c);
 }
 
 void
-Spacing_problem::add_ideal(const Idealspacing *i)
+Spacing_problem::add_ideal(Idealspacing const *i)
 {
-    const PCol *l =i->left;
-    const PCol *r= i->right;
+    PCol const *l =i->left;
+    PCol const *r= i->right;
     
     if (!contains(l) || !contains(r)) {
        return;
@@ -213,7 +213,7 @@ Spacing_problem::add_ideal(const Idealspacing *i)
 }
 
 void
-Spacing_problem::print_ideal(const Idealspacing*id)const
+Spacing_problem::print_ideal(Idealspacing const *id)const
 {
 #ifndef NPRINT
     int l = col_id(id->left);
@@ -261,7 +261,7 @@ Colinfo::Colinfo(Colinfo const&c)
     width = c.width;
 }
 
-Colinfo::Colinfo(const PCol*col_p, const Real*fixed_r_p )
+Colinfo::Colinfo(PCol const *col_p, Real const *fixed_r_p )
 {
     fixpos = (fixed_r_p)? new Real(*fixed_r_p) : 0;
     pcol_ = col_p;
index ddbd8dc5f842fe277a70bfe6e6d59f3a215fb3b5..bf7eb9c352e25ef0ef6c1cc42bb72ca63e70ae16 100644 (file)
@@ -30,12 +30,12 @@ Local_key_register::pre_move_processing()
 void
 Local_key_register::acknowledge_element(Staff_elem_info info)
 {    
-    if (info.req_l_->melodic()) {
-       Melodic_req * melodic_l_ = info.req_l_->melodic();
+    if (info.req_l_->note()) {
+       Note_req * note_l_ = info.req_l_->note();
 
-       if( melodic_l_->forceacc_b_ ||
-           local_key_.oct(melodic_l_->octave_i_).acc(melodic_l_->notename_i_)
-           != melodic_l_->accidental_i_) {
+       if( note_l_->forceacc_b_ ||
+           local_key_.oct(note_l_->octave_i_).acc(note_l_->notename_i_)
+           != note_l_->accidental_i_) {
            Item * support_l_ = info.elem_p_->item();
        
 
@@ -43,10 +43,10 @@ Local_key_register::acknowledge_element(Staff_elem_info info)
                key_item_p_ = new Local_key_item(*get_staff_info().c0_position_i_);
            }
            
-           key_item_p_->add(melodic_l_);
+           key_item_p_->add(note_l_);
            key_item_p_->add(support_l_);
-           local_key_.oct(melodic_l_->octave_i_)
-               .set(melodic_l_->notename_i_, melodic_l_->accidental_i_);
+           local_key_.oct(note_l_->octave_i_)
+               .set(note_l_->notename_i_, note_l_->accidental_i_);
        }
     } else if (info.elem_p_->name()==Key_item::static_name()) { 
        Key_register * key_reg_l =
@@ -59,7 +59,7 @@ Local_key_register::acknowledge_element(Staff_elem_info info)
 void
 Local_key_register::process_requests()
 {
-    const Time_description * time_c_l_ = get_staff_info().time_c_l_;
+    Time_description const * time_c_l_ = get_staff_info().time_c_l_;
     if (! time_c_l_->whole_in_measure_){
        if (key_c_l_)  
            local_key_.reset(*key_c_l_);
index bfd298bfacfb8879ad394d86d099315e675255df..94d94cfd138a52357498de72c0e9ba63e5f6d605 100644 (file)
@@ -71,7 +71,7 @@ Molecule::translate(Offset o)
 }
 
 void
-Molecule::add(const Molecule &m)
+Molecule::add(Molecule const &m)
 {
     for (iter_top(m.ats,c); c.ok(); c++) {
        add(**c);
@@ -79,7 +79,7 @@ Molecule::add(const Molecule &m)
 }
 
 void
-Molecule::add_right(const Molecule &m)
+Molecule::add_right(Molecule const &m)
 {
      if (!ats.size()) {
        add(m);
@@ -92,7 +92,7 @@ Molecule::add_right(const Molecule &m)
 }
 
 void
-Molecule::add_left(const Molecule &m)
+Molecule::add_left(Molecule const &m)
 {
     if (!ats.size()) {
        add(m);
@@ -106,7 +106,7 @@ Molecule::add_left(const Molecule &m)
 
 
 void
-Molecule::add_top(const Molecule &m)
+Molecule::add_top(Molecule const &m)
 {
       if (!ats.size()) {
        add(m);
@@ -119,7 +119,7 @@ Molecule::add_top(const Molecule &m)
 }
 
 void
-Molecule::add_bottom(const Molecule &m)
+Molecule::add_bottom(Molecule const &m)
 {
     if (!ats.size()) {
        add(m);
@@ -132,12 +132,12 @@ Molecule::add_bottom(const Molecule &m)
 }
 
 void
-Molecule::operator = (const Molecule&)
+Molecule::operator = (Molecule const &)
 {
     assert(false);
 }
 
-Molecule::Molecule(const Molecule&s)
+Molecule::Molecule(Molecule const &s)
 {
     add(s);
 }
index 2bfa097431d8d9a123e9dd8c0eaf12357d886ee3..caaf26476697e8ca4489cd2569d9ee9bb4d46850 100644 (file)
@@ -52,7 +52,7 @@ PCol::print() const
 }
 
 int
-PCol::compare(const PCol &c1, const PCol &c2)
+PCol::compare(PCol const &c1, PCol const &c2)
 {
     PScore*ps_l = c1.pscore_l_;
     PCursor<PCol*> ac(ps_l->find_col(&c1));
index 582a3148ef11fe7b73bc5761c692dd476dcf6d83..9e31523da1d60b8cee95c7c82ae8193a65f34935 100644 (file)
@@ -137,7 +137,7 @@ PScore::select_items(PStaff*ps, PCol*pc)
     assert(ps && pc);
     for (iter_top(pc->its,i); i.ok(); i++){
        if (i->pstaff_l_ == ps)
-           ret.push((Item*)(const Item*)i);
+           ret.push((Item*)(Item const *)i);
     }
     return ret;
 }
@@ -204,9 +204,9 @@ PScore::postprocess()
 }
 
 PCursor<PCol *>
-PScore::find_col(const PCol *c)const
+PScore::find_col(PCol const *c)const
 {
-    const PCol*what = c;
+    PCol const *what = c;
     if (what->daddy_l_ )
        what = what->daddy_l_;
     
index 6063347e88afd08e796bc24cfec6b94dcc59c10d..1b3a74b2a5f581636d1e6eca6a2841ae41b97ea5 100644 (file)
@@ -89,7 +89,7 @@ Paper_def::print() const
     mtor << "}\n";
 #endif
 }
-const Lookup*
+Lookup const *
 Paper_def::lookup_l()
 {
     return lookup_p_;
index 67c7b5b54dcd31c0eadf98323f1e6a0254a58c09..de09bb09409386cf3da081dfdd4a33710b21d1c9 100644 (file)
@@ -124,7 +124,7 @@ Stem_beam_register::pre_move_processing()
        stem_p_ = 0;
     }
     if (beam_p_ && end_beam_b_) {
-       const Rhythmic_grouping * rg_c_l = get_staff_info().rhythmic_c_l_;
+       Rhythmic_grouping const * rg_c_l = get_staff_info().rhythmic_c_l_;
        rg_c_l->extend(current_grouping->interval());
        beam_p_->set_grouping(*rg_c_l, *current_grouping);
        typeset_element(beam_p_);
index 2125593ab6b5747c75731213fc41e2cc902f25b8..4157f085638f18b98767cb6c174fef83367cb755 100644 (file)
@@ -43,7 +43,7 @@ Tex_stream &
 Tex_stream::operator<<(String s)
 {
     
-    for (const char *cp = s; *cp; cp++) {
+    for (char const *cp = s; *cp; cp++) {
        if (outputting_comment) {
            *os << *cp;
            if (*cp == '\n') {
index b440003fd2b5044e88fc78f86df919fccd2694f9..cd2961b65e429f57c6d3ed9adb7ec44798a9f8f2 100644 (file)
@@ -11,7 +11,7 @@ Text_def::Text_def()
     defined_ch_c_l_ = 0;
 }
 bool
-Text_def::compare(const Text_def&def)
+Text_def::compare(Text_def const &def)
 {
     return align_i_ == def.align_i_ && text_str_ == def.text_str_
        && style_str_ == def.style_str_;
index 5b24591c5bc6ecfceb04421d0a61934106b54643..eed3e39ca8e7dcf751f356bd2cf95c94ec349f77 100644 (file)
@@ -2,7 +2,7 @@
 
 #include "string.hh"
 
-extern const char* lily_version_sz();
+extern char const * lily_version_sz();
 
 String 
 get_version_str()