summaryrefslogtreecommitdiff
path: root/include/vis.h
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2010-08-23 02:07:51 +0000
committerDamien Miller <djm@cvs.openbsd.org>2010-08-23 02:07:51 +0000
commit13f9c0a053f90f932da4b904c48814c41b693bda (patch)
tree907115235f08d1ec2571def52733d75cebc9dd9c /include/vis.h
parent0a0a2b1fe9a9d0872d2d809c5391daa951afd7c5 (diff)
unbreak tree: add VIS_HEX and VIS_ALL flags
Diffstat (limited to 'include/vis.h')
-rw-r--r--include/vis.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/vis.h b/include/vis.h
index 8ab3e694d7a..67fdfe86af2 100644
--- a/include/vis.h
+++ b/include/vis.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vis.h,v 1.11 2005/08/09 19:38:31 millert Exp $ */
+/* $OpenBSD: vis.h,v 1.12 2010/08/23 02:07:50 djm Exp $ */
/* $NetBSD: vis.h,v 1.4 1994/10/26 00:56:41 cgd Exp $ */
/*-
@@ -40,6 +40,7 @@
*/
#define VIS_OCTAL 0x01 /* use octal \ddd format */
#define VIS_CSTYLE 0x02 /* use \[nrft0..] where appropriate */
+#define VIS_HEX 0x200 /* use hex \xdd format */
/*
* to alter set of characters encoded (default is to encode all
@@ -50,6 +51,7 @@
#define VIS_NL 0x10 /* also encode newline */
#define VIS_WHITE (VIS_SP | VIS_TAB | VIS_NL)
#define VIS_SAFE 0x20 /* only encode "unsafe" characters */
+#define VIS_ALL 0x400 /* encode all characters */
/*
* other