diff options
author | Harald van Dijk <harald@gigawatt.nl> | 2018-03-08 08:37:11 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-03-22 00:25:35 +0800 |
commit | 6bbc71d84bea101370830dc3272f51c5ec1a7a78 (patch) | |
tree | d076148ae83b61feceb358170ffc0dc45bc0b832 /src/mkbuiltins | |
parent | builtin: Greater resolution in test -nt / test -ot (diff) | |
download | dash-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/mkbuiltins')
0 files changed, 0 insertions, 0 deletions