]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/break-substitution.cc
Replace C++ (in)equality checks with proper SCM syntax
[lilypond.git] / lily / break-substitution.cc
index c2a363cb7366a1da5b9c2b4f1fe71a72795a5503..2028226447841ca161048899d32d7aa6ea6035f1 100644 (file)
@@ -125,8 +125,8 @@ again:
       SCM newcar = do_break_substitution (scm_car (src));
       SCM oldcdr = scm_cdr (src);
 
-      if (newcar == SCM_UNDEFINED
-          && (scm_is_pair (oldcdr) || oldcdr == SCM_EOL))
+      if (SCM_UNBNDP (newcar)
+          && (scm_is_pair (oldcdr) || scm_is_null (oldcdr)))
         {
           /*
             This is tail-recursion, ie.
@@ -477,7 +477,7 @@ substitute_object_alist (SCM alist, SCM dest)
       else
         val = do_break_substitution (val);
 
-      if (val != SCM_UNDEFINED)
+      if (!SCM_UNBNDP (val))
         {
           /*
             for ly:grob? properties, SCM_UNDEFINED could leak out