aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2020-07-09 13:10:58 +0100
committerRon Yorston <rmy@pobox.com>2020-07-09 13:10:58 +0100
commit9c0b2f7020d7c30b21a930ef54be632e092e533b (patch)
treeb2187c40bd2fd9f49f73599fb08e52cb7a596de0 /editors
parenta8c6e20e332a9e11a9d28cd6770eadb9c9d73cb7 (diff)
parentd21a63f9fca8eb16f79de9b72d4a3484dfaec1fc (diff)
downloadbusybox-w32-9c0b2f7020d7c30b21a930ef54be632e092e533b.tar.gz
busybox-w32-9c0b2f7020d7c30b21a930ef54be632e092e533b.tar.bz2
busybox-w32-9c0b2f7020d7c30b21a930ef54be632e092e533b.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'editors')
-rw-r--r--editors/awk.c4
-rw-r--r--editors/patch.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/editors/awk.c b/editors/awk.c
index 76385f33b..509f4ddd8 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -1363,8 +1363,10 @@ static node *parse_expr(uint32_t iexp)
1363 v = cn->l.v = xzalloc(sizeof(var)); 1363 v = cn->l.v = xzalloc(sizeof(var));
1364 if (tc & TC_NUMBER) 1364 if (tc & TC_NUMBER)
1365 setvar_i(v, t_double); 1365 setvar_i(v, t_double);
1366 else 1366 else {
1367 setvar_s(v, t_string); 1367 setvar_s(v, t_string);
1368 xtc &= ~TC_UOPPOST; /* "str"++ is not allowed */
1369 }
1368 break; 1370 break;
1369 1371
1370 case TC_REGEXP: 1372 case TC_REGEXP:
diff --git a/editors/patch.c b/editors/patch.c
index 0ce0210fd..aaa253591 100644
--- a/editors/patch.c
+++ b/editors/patch.c
@@ -264,7 +264,7 @@ static int apply_one_hunk(void)
264 if (!plist && matcheof) break; 264 if (!plist && matcheof) break;
265 265
266 if (backwarn) 266 if (backwarn)
267 fdprintf(2,"Possibly reversed hunk %d at %ld\n", 267 fdprintf(2, "Possibly reversed hunk %d at %ld\n",
268 TT.hunknum, TT.linenum); 268 TT.hunknum, TT.linenum);
269 269
270 // File ended before we found a place for this hunk. 270 // File ended before we found a place for this hunk.
@@ -593,6 +593,7 @@ int patch_main(int argc UNUSED_PARAM, char **argv)
593 TT.linenum = 0; 593 TT.linenum = 0;
594 TT.hunknum = 0; 594 TT.hunknum = 0;
595 } 595 }
596 fflush_all(); // make "patching file F" visible
596 } 597 }
597 598
598 TT.hunknum++; 599 TT.hunknum++;