summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
471dcf6)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
pctx->pos += 1;
/* undecoded backslash at the end of line, fetch the next line */
pctx->pos += 1;
/* undecoded backslash at the end of line, fetch the next line */
- if (!pctx_cur_char(pctx)
- || pctx_cur_char(pctx) == '\n'
- || (pctx_cur_char(pctx) == '\r' &&
- pctx_char(pctx, pctx_pos(pctx) + 1) == '\n' &&
- !pctx_char(pctx, pctx_pos(pctx) + 2))) {
+ if (!pctx_cur_char(pctx) ||
+ pctx_cur_char(pctx) == '\n' ||
+ (pctx_cur_char(pctx) == '\r' &&
+ pctx_char(pctx, pctx_pos(pctx) + 1) == '\n' &&
+ !pctx_char(pctx, pctx_pos(pctx) + 2))) {
uci_getln(ctx, pctx->pos);
return false;
}
uci_getln(ctx, pctx->pos);
return false;
}
case 0:
/* Multi-line str value */
uci_getln(ctx, pctx->pos);
case 0:
/* Multi-line str value */
uci_getln(ctx, pctx->pos);
- if (!pctx_cur_char(pctx)) {
+ if (!pctx_cur_char(pctx))
uci_parse_error(ctx, "EOF with unterminated \"");
uci_parse_error(ctx, "EOF with unterminated \"");
break;
default:
addc(ctx, target, &pctx->pos);
break;
default:
addc(ctx, target, &pctx->pos);
{
while (*str) {
unsigned char c = *str;
{
while (*str) {
unsigned char c = *str;
- if (((c < 32) &&
- (c != '\t') &&
- (c != '\n') &&
- (c != '\r'))) {
+
+ if (c < 32 && c != '\t' && c != '\n' && c != '\r')