summaryrefslogtreecommitdiffstats
path: root/eshtrans
diff options
context:
space:
mode:
authorP. 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)
commit4252eb7bcb7d8f1c60bd2384655d46b747864997 (patch)
tree4e548fb1d0a3388d4f1ec788bf1a2eb9dd463334 /eshtrans
parent39854f9aa993ef08a49d5ad5d3b6d69d3371e8e3 (diff)
downloadeggshell-4252eb7bcb7d8f1c60bd2384655d46b747864997.zip
eggshell-4252eb7bcb7d8f1c60bd2384655d46b747864997.tar.gz
eggshell-4252eb7bcb7d8f1c60bd2384655d46b747864997.tar.bz2
eshtrans/frontend: Fix lsetc()
Diffstat (limited to 'eshtrans')
-rw-r--r--eshtrans/frontend/lexer.esh12
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))
}
#