printf.c was updated to match
mirabilos authored 2 years ago
mirabilos committed 2 years ago
12 | 12 |
- [tg] improve compile-time checks and run more but not redundant ones
|
13 | 13 |
- [tg] With much rejoicing remove the warning introduced in 59c-15
|
14 | 14 |
again as it was thankfully rejected, at POSIX level
|
15 | |
|
16 | |
-- Thorsten Glaser <tg@mirbsd.de> Mon, 25 Apr 2022 03:26:19 +0200
|
|
15 |
* Update to matching printf.c
|
|
16 |
|
|
17 |
-- Thorsten Glaser <tg@mirbsd.de> Mon, 25 Apr 2022 04:01:35 +0200
|
17 | 18 |
|
18 | 19 |
mksh (59c-16) unstable; urgency=medium
|
19 | 20 |
|
48 | 48 |
#define vstrchr strchr
|
49 | 49 |
#endif
|
50 | 50 |
|
51 | |
__RCSID("$MirOS: src/usr.bin/printf/printf.c,v 1.24 2021/11/21 03:47:51 tg Exp $");
|
|
51 |
__RCSID("$MirOS: src/usr.bin/printf/printf.c,v 1.25 2022/02/19 21:22:04 tg Exp $");
|
52 | 52 |
|
53 | 53 |
static int print_escape_str(const char *);
|
54 | 54 |
static int print_escape(const char *);
|
|
327 | 327 |
if (*str == '\\') {
|
328 | 328 |
#ifdef MKSH_PRINTF_BUILTIN
|
329 | 329 |
s_ptr = str + 1;
|
330 | |
c = unbksl(false, s_get, s_put);
|
|
330 |
c = unbksl(Nee, s_get, s_put);
|
331 | 331 |
str = s_ptr;
|
332 | 332 |
if (c == -1) {
|
333 | 333 |
if ((c = *str++) == 'c')
|
|
382 | 382 |
int c;
|
383 | 383 |
|
384 | 384 |
s_ptr = str + 1;
|
385 | |
c = unbksl(true, s_get, s_put);
|
|
385 |
c = unbksl(Ja, s_get, s_put);
|
386 | 386 |
if (c == -1) {
|
387 | 387 |
s_ptr = str + 1;
|
388 | 388 |
switch ((c = *s_ptr++)) {
|