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]+$//;
' "$file"
# Fuse the switches of the parser.
case $file in
(*.cc) $fuse_switch $file
# case $file in
# (*.cc) $fuse_switch $file
# diff -uw $file.bak $file || true
;;
esac
# ;;
# esac
}
# compile_xml_file XML XSL OUT-EXT
......
......@@ -137,6 +137,9 @@ sub fuse($$)
$_ = '';
}
}
die "still in switch"
if $in_switch;
print $out $_;
}
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