summaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2016-06-08 17:35:13 +0000
committerBrooks Davis <brooks@FreeBSD.org>2016-06-08 17:35:13 +0000
commit46f0e7ccdfb34f49b0cc1de7d00c1429a00f1ff3 (patch)
treeb8a3cd9c4a97c3c3216b5fe77988ac55b76d4a3b /vis.h
parent2110fd8ff6c6fdfe927e54509782d103c3ecbf16 (diff)
Notes
Diffstat (limited to 'vis.h')
-rw-r--r--vis.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/vis.h b/vis.h
index b4c6b5e1c6de..501ad182eeb3 100644
--- a/vis.h
+++ b/vis.h
@@ -1,4 +1,4 @@
-/* $NetBSD: vis.h,v 1.21 2013/02/20 17:01:15 christos Exp $ */
+/* $NetBSD: vis.h,v 1.24 2016/01/14 20:42:14 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -63,6 +63,9 @@
#define VIS_NOESCAPE 0x0400 /* don't decode `\' */
#define _VIS_END 0x0800 /* for unvis */
#define VIS_GLOB 0x1000 /* encode glob(3) magic characters */
+#define VIS_SHELL 0x2000 /* encode shell special characters [not glob] */
+#define VIS_META (VIS_WHITE | VIS_GLOB | VIS_SHELL)
+#define VIS_NOLOCALE 0x4000 /* encode using the C locale */
/*
* unvis return codes
@@ -88,6 +91,7 @@ char *svis(char *, int, int, int, const char *);
char *snvis(char *, size_t, int, int, int, const char *);
int strvis(char *, const char *, int);
+int stravis(char **, const char *, int);
int strnvis(char *, size_t, const char *, int);
int strsvis(char *, const char *, int, const char *);