Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
5017fc66
Commit
5017fc66
authored
May 10, 2004
by
Brad King
Browse files
ENH: Renaming kwsys macro to kwsys_ns to work around borland preprocessor bug.
parent
914a9fb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/kwsys/kwsysHeaderDump.pl
View file @
5017fc66
...
...
@@ -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
";
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment