X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fdocument-functions.scm;h=282bf240443c58ebaa6b0ea1ebb1f421466da5c3;hb=6e8698dcb9a9b9a98d8b1a644c84fcb737f99bdc;hp=677de3e4b42007ebbfa917310cd37bc27e3cb9e4;hpb=bc95f4434f760d41191341ab4508b2064eb19025;p=lilypond.git diff --git a/scm/document-functions.scm b/scm/document-functions.scm index 677de3e4b4..282bf24044 100644 --- a/scm/document-functions.scm +++ b/scm/document-functions.scm @@ -1,6 +1,6 @@ ;;;; This file is part of LilyPond, the GNU music typesetter. ;;;; -;;;; Copyright (C) 1998--2010 Han-Wen Nienhuys +;;;; Copyright (C) 1998--2012 Han-Wen Nienhuys ;;;; Jan Nieuwenhuizen ;;;; ;;;; LilyPond is free software: you can redistribute it and/or modify @@ -20,13 +20,13 @@ (ice-9 regex)) (define (dashify-underscores str) - (regexp-substitute/global #f "_" str 'pre "-" 'post)) + (regexp-substitute/global #f "_" str 'pre "-" 'post)) (define (format-c-header c-h) (regexp-substitute/global - #f "," + #f "," (regexp-substitute/global #f "(SCM|\\)|\\() *" (dashify-underscores c-h) - 'pre "" 'post) + 'pre "" 'post) 'pre " " 'post)) (define (document-scheme-function name c-header doc-string) @@ -36,16 +36,16 @@ "\n@end defun\n\n")) (define all-scheme-functions - (hash-fold - (lambda (key val prior) - (cons (cons key val) prior)) - '() (ly:get-all-function-documentation))) + (hash-fold + (lambda (key val prior) + (cons (cons key val) prior)) + '() (ly:get-all-function-documentation))) (define (all-scheme-functions-doc) (let* ((fdocs (map (lambda (x) - (document-scheme-function (car x) (cadr x) (cddr x))) - all-scheme-functions)) - (sfdocs (sort fdocs ly:string-ci #:name "Scheme functions" #:desc "Primitive functions exported by LilyPond."