summary refs log tree commit diff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2022-04-04 15:34:40 +0100
committerPeter Stephenson <p.stephenson@samsung.com>2022-04-05 09:40:07 +0100
commit02747bbbd37d81a2a2fff938e1cc94fb73980848 (patch)
tree824edbaf1a053da5e2e745a828b0c21a04b439cd /Src/zsh.h
parent0d9c2422bf3815ee04e5c1b562a22b9df56c07ed (diff)
downloadzsh-02747bbbd37d81a2a2fff938e1cc94fb73980848.tar.gz
zsh-02747bbbd37d81a2a2fff938e1cc94fb73980848.tar.xz
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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index 641d9c95c..40f9ea537 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -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()