summaryrefslogtreecommitdiff
path: root/h2ph
diff options
context:
space:
mode:
Diffstat (limited to 'h2ph')
-rwxr-xr-xh2ph10
1 files changed, 5 insertions, 5 deletions
diff --git a/h2ph b/h2ph
index c983335f4f..5ada61a145 100755
--- a/h2ph
+++ b/h2ph
@@ -67,7 +67,7 @@ foreach $file (@ARGV) {
$args = "local($args) = \@_;\n$t ";
}
s/^\s+//;
- do expr();
+ &expr();
$new =~ s/(["\\])/\\$1/g;
if ($t ne '') {
$new =~ s/(['\\])/\\$1/g;
@@ -81,7 +81,7 @@ foreach $file (@ARGV) {
}
else {
s/^\s+//;
- do expr();
+ &expr();
$new = 1 if $new eq '';
if ($t ne '') {
$new =~ s/(['\\])/\\$1/g;
@@ -108,14 +108,14 @@ foreach $file (@ARGV) {
}
elsif (s/^if\s+//) {
$new = '';
- do expr();
+ &expr();
print OUT $t,"if ($new) {\n";
$tab += 4;
$t = "\t" x ($tab / 8) . ' ' x ($tab % 8);
}
elsif (s/^elif\s+//) {
$new = '';
- do expr();
+ &expr();
$tab -= 4;
$t = "\t" x ($tab / 8) . ' ' x ($tab % 8);
print OUT $t,"}\n${t}elsif ($new) {\n";
@@ -193,7 +193,7 @@ sub expr {
}
}
else {
- $new .= ' &' . $id;
+ $new .= ' eval{&' . $id . '}';
}
next;
};