]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/function-documentation.cc
* scm/music-functions.scm (has-request-chord): don't use
[lilypond.git] / lily / function-documentation.cc
index 13f387c46db48409f05b56ee3a78160104a248ca..891c9180cac5f091f26f372dadd31c478424ebd7 100644 (file)
@@ -3,13 +3,12 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2004 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 2004--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
 */
 
-#include <string.h>
+#include <cstring>
 
-#include "lily-guile.hh"
 #include "protected-scm.hh"
 #include "string.hh"
 
@@ -21,9 +20,9 @@ void ly_add_function_documentation (SCM func,
                                    char const * doc)
 {
   if (!strlen (doc))
-    return ; 
+    return;
     
-  if (!ly_vector_p (doc_hash_table ))
+  if (!scm_is_vector (doc_hash_table))
     doc_hash_table = scm_make_vector (scm_int2num (59), SCM_EOL);
 
   String s = String (" - ") + "LilyPond procedure: " + fname + " " + varlist
@@ -37,7 +36,7 @@ void ly_add_function_documentation (SCM func,
 
 
 LY_DEFINE (ly_get_all_function_documentation, "ly:get-all-function-documentation",
-         0,0,0, (),
+         0, 0, 0, (),
          "Get a hash table with all lilypond Scheme extension functions.")
 {
   return doc_hash_table;