]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/function-documentation.cc
* lily/include/group-interface.hh (extract_grob_array): rename
[lilypond.git] / lily / function-documentation.cc
index dc05bb308883b975d382f0879d1fab790a26e15c..5e57203fc2e55902e654d99e79ef1f5589c1f8ce 100644 (file)
@@ -1,15 +1,14 @@
 /*   
-  function-documentation.cc -- 
+  function-documentation.cc -- Scheme doc strings.
 
   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_c_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;