890c15105abe1bb79d3c8593fb4f3699ef4e128c
[buildroot.git] /
1 From 7b14e0657a1308e8e133991b778e2fdcb2eb6b9c Mon Sep 17 00:00:00 2001
2 From: Balint Reczey <balint@balintreczey.hu>
3 Date: Wed, 23 Dec 2015 12:55:00 +0100
4 Subject: [PATCH] Sync enum representation of char_class_e in struct traits
5 with definition
6
7 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
8 [backport of upstream patch from master branch:
9 https://github.com/kodi-pvr/pvr.mediaportal.tvserver/commit/7b14e0657a1308e8e133991b778e2fdcb2eb6b9c]
10 ---
11 src/uri.h | 6 +++---
12 1 file changed, 3 insertions(+), 3 deletions(-)
13
14 diff --git a/src/uri.h b/src/uri.h
15 index d2cc949..415e917 100644
16 --- a/src/uri.h
17 +++ b/src/uri.h
18 @@ -21,13 +21,13 @@
19 namespace uri
20 {
21 /// Char class.
22 - enum char_class_e
23 + typedef enum char_class_e : signed char
24 {
25 CINV = -2, ///< invalid
26 CEND = -1, ///< end delimitor
27 CVAL = 0, ///< valid any position
28 CVA2 = 1, ///< valid anywhere but 1st position
29 - };
30 + } char_class_e_type;
31
32 /// Traits used for parsing and encoding components.
33 struct traits
34 @@ -35,7 +35,7 @@ namespace uri
35 const char* begin_cstring; ///< begin cstring (or 0 if none)
36 const char begin_char; ///< begin char (or 0 if none)
37 const char end_char; ///< end char (or 0 if none)
38 - const char char_class[256]; ///< map of char to class
39 + const char_class_e_type char_class[256]; ///< map of char to class
40 };
41
42 /**