]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/context-def.cc
(do_chroot_jail): paranoia security for webserver
[lilypond.git] / lily / context-def.cc
index 82b32ef4b7774b090fd44f84c3231cdf6c8b38b6..0fc4cdfc2922d74c245e5094aa7f56521db566e8 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2000--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 2000--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 /* TODO: should junk this class an replace by
@@ -169,7 +169,7 @@ Context_def::path_to_acceptable_context (SCM type_sym, Output_def *odef) const
       accepteds.push (t);
 
   Link_array<Context_def> best_result;
-  for (int i=0; i < accepteds.size (); i++)
+  for (int i = 0; i < accepteds.size (); i++)
     {
       /* do not check aliases, because \context Staff should not
         create RhythmicStaff. */
@@ -180,8 +180,8 @@ Context_def::path_to_acceptable_context (SCM type_sym, Output_def *odef) const
        }
     }
 
-  int best_depth= INT_MAX;
-  for (int i=0; i < accepteds.size (); i++)
+  int best_depth = INT_MAX;
+  for (int i = 0; i < accepteds.size (); i++)
     {
       Context_def * g = accepteds[i];
 
@@ -189,7 +189,7 @@ Context_def::path_to_acceptable_context (SCM type_sym, Output_def *odef) const
        = g->path_to_acceptable_context (type_sym, odef);
       if (result.size () && result.size () < best_depth)
        {
-         result.insert (g,0);
+         result.insert (g, 0);
          best_result = result;
 
          /* this following line was added in 1.9.3, but hsould've been
@@ -295,7 +295,7 @@ Context_def::instantiate (SCM ops, Object_key const *key)
              if (scm_is_pair (trans_list))
                scm_set_cdr_x (scm_last_pair (trans_list), cons);
              else
-               trans_list= cons;
+               trans_list = cons;
            }
          else
            {