summary refs log tree commit diff
path: root/src/error.c
diff options
context:
space:
mode:
authorHarald van Dijk <harald@gigawatt.nl>2018-03-08 08:37:11 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2018-03-22 00:25:35 +0800
commit6bbc71d84bea101370830dc3272f51c5ec1a7a78 (patch)
treed076148ae83b61feceb358170ffc0dc45bc0b832 /src/error.c
parentbuiltin: Greater resolution in test -nt / test -ot (diff)
downloaddash-6bbc71d84bea101370830dc3272f51c5ec1a7a78.tar.gz
dash-6bbc71d84bea101370830dc3272f51c5ec1a7a78.zip
parser: use pgetc_eatbnl() in more places
dash has a pgetc_eatbnl function in parser.c which skips any
backslash-newline combinations. It's not used everywhere it could be.
There is also some duplicated backslash-newline handling elsewhere in
parser.c. Replace most of the calls to pgetc() with calls to
pgetc_eatbnl() and remove the duplicated backslash-newline handling.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'src/error.c')
0 files changed, 0 insertions, 0 deletions