Commit 15a5e866 authored by Laurent Zhu's avatar Laurent Zhu

bison: no longer fuse the similar case clauses

* build-aux/bin/bison++.in: Don't use fuse-switch.
* build-aux/bin/fuse-switch: Die when you did wrong.
parent 75922b21
Pipeline #5384 failed with stage
in 2 minutes and 36 seconds
...@@ -119,11 +119,11 @@ s/[ \t]+$//; ...@@ -119,11 +119,11 @@ s/[ \t]+$//;
' "$file" ' "$file"
# Fuse the switches of the parser. # Fuse the switches of the parser.
case $file in # case $file in
(*.cc) $fuse_switch $file # (*.cc) $fuse_switch $file
# diff -uw $file.bak $file || true # diff -uw $file.bak $file || true
;; # ;;
esac # esac
} }
# compile_xml_file XML XSL OUT-EXT # compile_xml_file XML XSL OUT-EXT
......
...@@ -137,6 +137,9 @@ sub fuse($$) ...@@ -137,6 +137,9 @@ sub fuse($$)
$_ = ''; $_ = '';
} }
} }
die "still in switch"
if $in_switch;
print $out $_; print $out $_;
} }
die "could not insert $pre_case" die "could not insert $pre_case"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment