From 88b479a82bc31b61e9fda696e6160e1d6e051c4d Mon Sep 17 00:00:00 2001 From: steve Date: Wed, 25 Oct 2000 23:21:37 +0000 Subject: [PATCH] mangle the backslash to a dollar. --- mangle.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mangle.cc b/mangle.cc index f37b79ccd..749fbcbbc 100644 --- a/mangle.cc +++ b/mangle.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: mangle.cc,v 1.3 2000/02/23 02:56:54 steve Exp $" +#ident "$Id: mangle.cc,v 1.4 2000/10/25 23:21:37 steve Exp $" #endif # include "target.h" @@ -32,7 +32,7 @@ string mangle(const string&str) string tmp = str; while (tmp.length() > 0) { - size_t pos = tmp.find_first_of(".<"); + size_t pos = tmp.find_first_of(".<\\"); if (pos > tmp.length()) pos = tmp.length(); @@ -55,6 +55,10 @@ string mangle(const string&str) tmp = tmp.substr(1); res << "_"; break; + case '\\': + res << "$"; + tmp = tmp.substr(1); + break; } } res << ends; @@ -63,6 +67,9 @@ string mangle(const string&str) /* * $Log: mangle.cc,v $ + * Revision 1.4 2000/10/25 23:21:37 steve + * mangle the backslash to a dollar. + * * Revision 1.3 2000/02/23 02:56:54 steve * Macintosh compilers do not support ident. *