summaryrefslogtreecommitdiff
path: root/src/basic/escape.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-01-27 14:25:47 +0100
committerLennart Poettering <lennart@poettering.net>2016-01-27 14:25:47 +0100
commit770350f41ceadd17b3b982627ed67a74a87603f4 (patch)
treed49263489849e04c14c268dd56a04f1f9aeea235 /src/basic/escape.h
parentfdb4ee00f022863ceee923b196f9c6dd536db9e2 (diff)
parentc932fb71cc90461b88ecdffe47c071d001d78fb4 (diff)
Merge pull request #2451 from zonque/pr-2162-rebased
utf8.[ch] et al: use char32_t and char16_t instead of int, int32_t, i…
Diffstat (limited to 'src/basic/escape.h')
-rw-r--r--src/basic/escape.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/basic/escape.h b/src/basic/escape.h
index d943aa71f5..ac8f5f3910 100644
--- a/src/basic/escape.h
+++ b/src/basic/escape.h
@@ -25,8 +25,10 @@
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>
+#include <uchar.h>
#include "string-util.h"
+#include "missing.h"
/* What characters are special in the shell? */
/* must be escaped outside and inside double-quotes */
@@ -45,7 +47,7 @@ size_t cescape_char(char c, char *buf);
int cunescape(const char *s, UnescapeFlags flags, char **ret);
int cunescape_length(const char *s, size_t length, UnescapeFlags flags, char **ret);
int cunescape_length_with_prefix(const char *s, size_t length, const char *prefix, UnescapeFlags flags, char **ret);
-int cunescape_one(const char *p, size_t length, uint32_t *ret, bool *eight_bit);
+int cunescape_one(const char *p, size_t length, char32_t *ret, bool *eight_bit);
char *xescape(const char *s, const char *bad);