]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/smobs.cc
Issue 3687 (part 2): Amend docs to use \compressMMRests
[lilypond.git] / lily / smobs.cc
index f599a51a289215faaeca991074ffb6a19207d40b..8b3c8a90141e63a61991dd86579d40ab987dcf59 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2005--2014 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 2005--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -46,7 +46,7 @@ protect_smob (SCM smob, SCM *prot_cons)
 {
 #if 0
   SCM s = scm_cdr (smob_protection_list);
-  while (scm_is_pair (s) && scm_car (s) == SCM_BOOL_F)
+  while (scm_is_pair (s) && scm_is_false (scm_car (s))
     {
       s = scm_cdr (s);
     }
@@ -69,13 +69,13 @@ unprotect_smob (SCM smob, SCM *prot_cons)
 #else
   SCM next = scm_cdr (*prot_cons);
 
-  if (next == SCM_EOL)
+  if (scm_is_null (next)))
     scm_set_car_x (*prot_cons, SCM_BOOL_F);
   else
     {
       scm_set_car_x (*prot_cons, SCM_BOOL_F);
       while (scm_is_pair (next)
-             && scm_car (next) == SCM_BOOL_F)
+             && scm_is_false (scm_car (next)))
 
         next = scm_cdr (next);