summaryrefslogtreecommitdiff
path: root/include/vis.h
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2009-02-10 23:06:31 +0000
committerchristos <christos@NetBSD.org>2009-02-10 23:06:31 +0000
commitbb0dd6147818d65259296b79d555e7cb09841601 (patch)
treedb5fd89bb5c1bee43481045702c2cdf6bb38f18d /include/vis.h
parent78466aa1e74c62c92e0cb9371b8c14c6a1174d8d (diff)
Add RFC 2045 MIME Quoted-Printable support.
Diffstat (limited to 'include/vis.h')
-rw-r--r--include/vis.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/include/vis.h b/include/vis.h
index f3f2f608f59..3c694e64a11 100644
--- a/include/vis.h
+++ b/include/vis.h
@@ -1,4 +1,4 @@
-/* $NetBSD: vis.h,v 1.16 2005/09/13 01:44:32 christos Exp $ */
+/* $NetBSD: vis.h,v 1.17 2009/02/10 23:06:31 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -39,24 +39,25 @@
/*
* to select alternate encoding format
*/
-#define VIS_OCTAL 0x01 /* use octal \ddd format */
-#define VIS_CSTYLE 0x02 /* use \[nrft0..] where appropiate */
+#define VIS_OCTAL 0x001 /* use octal \ddd format */
+#define VIS_CSTYLE 0x002 /* use \[nrft0..] where appropiate */
/*
* to alter set of characters encoded (default is to encode all
* non-graphic except space, tab, and newline).
*/
-#define VIS_SP 0x04 /* also encode space */
-#define VIS_TAB 0x08 /* also encode tab */
-#define VIS_NL 0x10 /* also encode newline */
+#define VIS_SP 0x004 /* also encode space */
+#define VIS_TAB 0x008 /* also encode tab */
+#define VIS_NL 0x010 /* also encode newline */
#define VIS_WHITE (VIS_SP | VIS_TAB | VIS_NL)
-#define VIS_SAFE 0x20 /* only encode "unsafe" characters */
+#define VIS_SAFE 0x020 /* only encode "unsafe" characters */
/*
* other
*/
-#define VIS_NOSLASH 0x40 /* inhibit printing '\' */
-#define VIS_HTTPSTYLE 0x80 /* http-style escape % HEX HEX */
+#define VIS_NOSLASH 0x040 /* inhibit printing '\' */
+#define VIS_HTTPSTYLE 0x080 /* http-style escape % hex hex */
+#define VIS_MIMESTYLE 0x100 /* mime-style escape = HEX HEX */
/*
* unvis return codes