Add patch for AIX files which sometimes have #include<foo.h>,
i.e., no spaces after the word 'include'.
}
}
}
- elsif (/^include\s+<(.*)>/) {
+ elsif (/^include\s*<(.*)>/) {
($incl = $1) =~ s/\.h$/.ph/;
print OUT $t,"require '$incl';\n";
}
}
next;
};
- s/^sizeof\s*\(([^)]+)\)/{$1}/ && do {
+ s/^sizeof\s*\(([^)]+\))\)/{$1}/ && do {
$new .= '$sizeof';
next;
};
else {
if ($inif && $new !~ /defined\($/) {
$new .= '(defined(&' . $id . ') ? &' . $id . ' : 0)';
- } else {
+ }
+ elsif (/^\[/) {
+ $new .= ' $' . $id;
+ }
+ else {
$new .= ' &' . $id;
}
}
next;
};
- s/^(.)// && do {$new .= $1; next;};
+ s/^(.)// && do { if ($1 ne '#') { $new .= $1; } next;};
}
}
##############################################################################