From 9c045ddbab3713d70d9344b18a54c826e79675c8 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Fri, 17 Dec 2004 13:29:49 +0000 Subject: [PATCH] (stderr): move stderr. --- lily/lily-guile.cc | 2 -- scm/lily-library.scm | 6 ++++++ scm/output-tex.scm | 4 ---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lily/lily-guile.cc b/lily/lily-guile.cc index f418df157d..3456c2c88b 100644 --- a/lily/lily-guile.cc +++ b/lily/lily-guile.cc @@ -822,7 +822,6 @@ alist_to_hashq (SCM alist) return tab; } -#if 1 /* Debugging mem leaks: */ @@ -832,7 +831,6 @@ LY_DEFINE (ly_protects, "ly:protects", { return scm_protects; } -#endif #if HAVE_PANGO_FC_FONT_MAP_ADD_DECODER_FIND_FUNC diff --git a/scm/lily-library.scm b/scm/lily-library.scm index 480e1672ad..3cd59bccda 100644 --- a/scm/lily-library.scm +++ b/scm/lily-library.scm @@ -293,6 +293,12 @@ possibly turned off." (display message) (write x) (newline) x) ;; x) + +(define-public (stderr string . rest) + (apply format (cons (current-error-port) (cons string rest))) + (force-output (current-error-port))) + + (define (index-cell cell dir) (if (equal? dir 1) (cdr cell) diff --git a/scm/output-tex.scm b/scm/output-tex.scm index 8f3cb1a709..c1fd784b86 100644 --- a/scm/output-tex.scm +++ b/scm/output-tex.scm @@ -56,10 +56,6 @@ (scm framework-tex) (lily)) -;; helper functions -(define (stderr string . rest) - (apply format (cons (current-error-port) (cons string rest))) - (force-output (current-error-port))) ;;;;;;;; -- 2.39.5