| 571 | } |
| 572 | |
| 573 | static const char *sh_str_done(sh_str_t *b) { |
| 574 | if (b->bad) { |
| 575 | return NULL; |
| 576 | } |
| 577 | return b->buf ? b->buf : ""; |
| 578 | } |
| 579 | |
| 580 | /* Text with backslash escapes removed; in_dq: only the double-quote ones. */ |
| 581 | static void sh_add_unescaped(CBMArena *a, sh_str_t *b, const char *p, size_t n, bool in_dq) { |
no outgoing calls
no test coverage detected