diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-02-28 00:41:27 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-02-28 00:41:27 (EST) |
commit | 4252eb7bcb7d8f1c60bd2384655d46b747864997 (patch) | |
tree | 4e548fb1d0a3388d4f1ec788bf1a2eb9dd463334 | |
parent | 39854f9aa993ef08a49d5ad5d3b6d69d3371e8e3 (diff) | |
download | eggshell-4252eb7bcb7d8f1c60bd2384655d46b747864997.zip eggshell-4252eb7bcb7d8f1c60bd2384655d46b747864997.tar.gz eggshell-4252eb7bcb7d8f1c60bd2384655d46b747864997.tar.bz2 |
eshtrans/frontend: Fix lsetc()
-rw-r--r-- | eshtrans/frontend/lexer.esh | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/eshtrans/frontend/lexer.esh b/eshtrans/frontend/lexer.esh index 6120128..d6e9271 100644 --- a/eshtrans/frontend/lexer.esh +++ b/eshtrans/frontend/lexer.esh @@ -107,14 +107,10 @@ lungetc() lsetc() { - if [ ${lbufi} -ge ${lbufc} ]; then - c='' - else - lbufi=$((${lbufi} - 1)) - eval "c=\${lbufv_${lbufi}}" - #echo "LSETC:$lineno: $lbufi '$c'" >&2 - lbufi=$((${lbufi} + 1)) - fi + lbufi=$((${lbufi} - 1)) + eval "c=\${lbufv_${lbufi}}" + #echo "LSETC:$lineno: $lbufi '$c'" >&2 + lbufi=$((${lbufi} + 1)) } # |