From: Taylor R. Campbell Date: Wed, 17 Sep 2008 06:41:43 +0000 (+0000) Subject: Include the file handle in generated names even if there is no X-Git-Tag: 20090517-FFI~138 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=bf400b179d230b04f612d810f560dcade42c6f94;p=mit-scheme.git Include the file handle in generated names even if there is no debugging output that needs to match. --- diff --git a/v7/src/compiler/machines/C/cout.scm b/v7/src/compiler/machines/C/cout.scm index f09d42b72..8698b9a0a 100644 --- a/v7/src/compiler/machines/C/cout.scm +++ b/v7/src/compiler/machines/C/cout.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: cout.scm,v 1.47 2008/09/10 19:32:48 riastradh Exp $ +$Id: cout.scm,v 1.48 2008/09/17 06:41:43 riastradh Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -122,15 +122,17 @@ USA. (if (or *disable-nonces?* (and handle? top-level?)) "" (string-append "_" nonce)))) - (if info-output-pathname - (string-append (let ((name (default-file-handle))) - (if handle? - (C-quotify-string name) - (canonicalize-label-name name))) - (if top-level? - (string-append midfix nsuffix) - (string-append "_" default suffix))) - (string-append default suffix nsuffix)))) + (string-append + (let ((name (default-file-handle))) + (if handle? + (C-quotify-string name) + (canonicalize-label-name name))) + (cond ((not info-output-pathname) + (string-append default suffix nsuffix)) + (top-level? + (string-append midfix nsuffix)) + (else + (string-append "_" default suffix)))))) (define (subroutine-information) (let*/mv (((decls-1 code-1) (subroutine-information-1))