Mercurial > hg > batmud > maputils
changeset 1501:cd70a5b2573f
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 07 Feb 2015 06:00:47 +0200 |
parents | b83e1399d8b6 |
children | 7683341666c7 |
files | liblocfile.c |
diffstat | 1 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/liblocfile.c Sat Feb 07 05:59:13 2015 +0200 +++ b/liblocfile.c Sat Feb 07 06:00:47 2015 +0200 @@ -219,12 +219,12 @@ THERR("Unexpected EOL inside text field on line #%d of '%s'.\n", f->lineNum, f->filename); return NULL; - break; + case EOF: THERR("Unexpected EOF inside text field on line #%d of '%s'.\n", f->lineNum, f->filename); return NULL; - break; + case '\\': /* Enable continuation via '\' at EOL */ i = locFGetc(f); @@ -256,10 +256,8 @@ } while (pos > 0 && isspace(res[pos - 1])) - { - pos--; - res[pos] = 0; - } + res[--pos] = 0; + res[pos] = 0; return (pos > 0) ? th_strdup(res) : NULL;