#| -*-Scheme-*-
-$Id: makegen.scm,v 1.7 2005/06/26 05:36:52 cph Exp $
+$Id: makegen.scm,v 1.8 2006/06/02 07:00:07 ihtfisp Exp $
Copyright 2000,2001,2003 Massachusetts Institute of Technology
(define (generate-rule filename)
(parse-rule
(unbreak-lines
- (call-with-output-string
+ ((if (lexical-unreferenceable? system-global-environment ; E.g., Build 7.7
+ 'call-with-output-string) ; using 7.6?
+ with-string-output-port ;; For backward compatibility (pre-7.7)
+ call-with-output-string)
(lambda (port)
(run-shell-command (string-append "./makegen-cc " filename)
'OUTPUT port))))))
(begin
(write-string (car items*) port)
(loop (cdr items*) new-column)))))
- column)))
\ No newline at end of file
+ column)))