aboutsummaryrefslogtreecommitdiff
path: root/compat/vis.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2015-09-01 21:08:19 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2015-09-01 21:08:19 +0100
commit2ebef95994953e49ae84862a65f9ee649a72e200 (patch)
treeee07ead31815e2861f7fc78ed0325e19c8d9e7a8 /compat/vis.h
parent2c6ea705fd05966c00534623a9b8fa3431df98f5 (diff)
downloadrtmux-2ebef95994953e49ae84862a65f9ee649a72e200.tar.gz
rtmux-2ebef95994953e49ae84862a65f9ee649a72e200.tar.bz2
rtmux-2ebef95994953e49ae84862a65f9ee649a72e200.zip
Sync up vis.* for stravis().
Diffstat (limited to 'compat/vis.h')
-rw-r--r--compat/vis.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/compat/vis.h b/compat/vis.h
index d6ff235d..6795139c 100644
--- a/compat/vis.h
+++ b/compat/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.15 2015/07/20 01:52:27 millert Exp $ */
/* $NetBSD: vis.h,v 1.4 1994/10/26 00:56:41 cgd Exp $ */
/*-
@@ -50,6 +50,8 @@
#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_DQ 0x200 /* backslash-escape double quotes */
+#define VIS_ALL 0x400 /* encode all characters */
/*
* other
@@ -71,12 +73,18 @@
*/
#define UNVIS_END 1 /* no more characters */
+#include <sys/cdefs.h>
+
+__BEGIN_DECLS
char *vis(char *, int, int, int);
int strvis(char *, const char *, int);
+int stravis(char **, const char *, int);
int strnvis(char *, const char *, size_t, int);
int strvisx(char *, const char *, size_t, int);
int strunvis(char *, const char *);
int unvis(char *, char, int *, int);
ssize_t strnunvis(char *, const char *, size_t);
+__END_DECLS
+
#endif /* !_VIS_H_ */