]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lily-guile.cc
lilypond-manuals.css: edit color scheme and some spacing
[lilypond.git] / lily / lily-guile.cc
index 5a54e864ddffaf8529286a9770703f6c97f12c31..f37380f024fc4b65fc9b368564c26dd3dd4a3190 100644 (file)
@@ -42,9 +42,6 @@ using namespace std;
 #include "warn.hh"
 #include "lily-imports.hh"
 
-using std::string;
-using std::vector;
-
 /*
   symbols/strings.
  */
@@ -532,6 +529,18 @@ display_list (SCM s)
   return SCM_UNSPECIFIED;
 }
 
+// Needed as complement to int_list_to_slice since scm_c_memq refuses
+// to work with dotted lists.
+
+SCM
+ly_memv (SCM v, SCM l)
+{
+  for (; scm_is_pair (l); l = scm_cdr (l))
+    if (scm_is_true (scm_eqv_p (v, scm_car (l))))
+      return l;
+  return SCM_BOOL_F;
+}
+
 Slice
 int_list_to_slice (SCM l)
 {