summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-05-10 17:15:45 (GMT)
committerBrad King <brad.king@kitware.com>2004-05-10 17:15:45 (GMT)
commit5017fc66e5b0c466d1ddd747e3737a3c738e438c (patch)
tree1694574992539419b2943e323bbe79e52bea07e5 /Source
parent914a9fb3b4fb7ee088f9c0e3ca426ac6628ec6d3 (diff)
downloadCMake-5017fc66e5b0c466d1ddd747e3737a3c738e438c.zip
CMake-5017fc66e5b0c466d1ddd747e3737a3c738e438c.tar.gz
CMake-5017fc66e5b0c466d1ddd747e3737a3c738e438c.tar.bz2
ENH: Renaming kwsys macro to kwsys_ns to work around borland preprocessor bug.
Diffstat (limited to 'Source')
-rwxr-xr-xSource/kwsys/kwsysHeaderDump.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/kwsys/kwsysHeaderDump.pl b/Source/kwsys/kwsysHeaderDump.pl
index 6a88f50..d7f0169 100755
--- a/Source/kwsys/kwsysHeaderDump.pl
+++ b/Source/kwsys/kwsysHeaderDump.pl
@@ -23,7 +23,7 @@ open(INFILE, $ARGV[1]);
while (chomp ($line = <INFILE>))
{
if (($line !~ /^\#/) &&
- ($line =~ s/.*kwsys${name}_([A-Za-z0-9_]*).*/\1/) &&
+ ($line =~ s/.*kwsys${name}_([A-Za-z0-9_]*).*/\1/) &&
($i{$line}++ < 1))
{
push(@lines, "$line");
@@ -34,12 +34,12 @@ while (chomp ($line = <INFILE>))
}
}
close(INFILE);
-
+
$width = $max + 13;
-print sprintf("#define %-${width}s kwsys(${name})\n", "kwsys${name}");
+print sprintf("#define %-${width}s kwsys_ns(${name})\n", "kwsys${name}");
foreach $l (@lines)
{
- print sprintf("#define %-${width}s kwsys(${name}_$l)\n",
+ print sprintf("#define %-${width}s kwsys_ns(${name}_$l)\n",
"kwsys${name}_$l");
}
print "\n";