diff options
author | Akim Demaille <akim@lrde.epita.fr> | 2012-07-14 10:09:15 +0200 |
---|---|---|
committer | Akim Demaille <akim@lrde.epita.fr> | 2012-07-14 16:57:32 +0200 |
commit | 4ce3d13166d90a8be9f00b66c9e3a8275cd0d0ac (patch) | |
tree | cb2599e8092505fa5a47b7ed9358d70f9aca1581 /lib | |
parent | cfda11fb768888fb2802e265ed8d5438cef2f123 (diff) | |
download | automake-4ce3d13166d90a8be9f00b66c9e3a8275cd0d0ac.tar.gz |
ylwrap: refactor: move loop invariant
* lib/ylwrap (input_rx): Move its definition next to its sibling's,
outside of the main loop.
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/ylwrap | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/ylwrap b/lib/ylwrap index d245ba098..30e8a6c68 100755 --- a/lib/ylwrap +++ b/lib/ylwrap @@ -108,6 +108,7 @@ case "$input" in input="`pwd`/$input" ;; esac +input_rx=`get_dirname "$input" | quote_for_sed` # Since DOS filename conventions don't allow two dots, # the DOS version of Bison writes out y_tab.c instead of y.tab.c @@ -176,9 +177,6 @@ ret=$? if test $ret -eq 0; then set X $pairlist shift - - input_rx=`get_dirname "$input" | quote_for_sed` - while test "$#" -ne 0; do from=$1 to=$2 |