diff options
| author | Peter Stephenson <p.stephenson@samsung.com> | 2022-04-04 15:34:40 +0100 |
|---|---|---|
| committer | Peter Stephenson <p.stephenson@samsung.com> | 2022-04-05 09:40:07 +0100 |
| commit | 02747bbbd37d81a2a2fff938e1cc94fb73980848 (patch) | |
| tree | 824edbaf1a053da5e2e745a828b0c21a04b439cd /Src/zsh.h | |
| parent | 49992: further unify single- and multi-byte implementations of nicechar() (diff) | |
| download | zsh-02747bbbd37d81a2a2fff938e1cc94fb73980848.tar zsh-02747bbbd37d81a2a2fff938e1cc94fb73980848.tar.gz zsh-02747bbbd37d81a2a2fff938e1cc94fb73980848.tar.bz2 zsh-02747bbbd37d81a2a2fff938e1cc94fb73980848.tar.lz zsh-02747bbbd37d81a2a2fff938e1cc94fb73980848.tar.xz zsh-02747bbbd37d81a2a2fff938e1cc94fb73980848.tar.zst zsh-02747bbbd37d81a2a2fff938e1cc94fb73980848.zip | |
49989: Single byte versions of nice quoting.
Align interfaces for "nice" printing of characters with those for
multibyte to make more available in single-byte compilation.
Diffstat (limited to 'Src/zsh.h')
| -rw-r--r-- | Src/zsh.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3277,14 +3277,15 @@ enum zexit_t { #define AFTERTRAPHOOK (zshhooks + 2) #define GETCOLORATTR (zshhooks + 3) -#ifdef MULTIBYTE_SUPPORT -/* Final argument to mb_niceformat() */ +/* Final argument to [ms]b_niceformat() */ enum { NICEFLAG_HEAP = 1, /* Heap allocation where needed */ NICEFLAG_QUOTE = 2, /* Result will appear in $'...' */ NICEFLAG_NODUP = 4, /* Leave allocated */ }; +#ifdef MULTIBYTE_SUPPORT + /* Metafied input */ #define nicezputs(str, outs) (void)mb_niceformat((str), (outs), NULL, 0) #define MB_METACHARINIT() mb_charinit() |
