1 From 2698ac4eeca3a82967ff83386460c070ce387ead Mon Sep 17 00:00:00 2001
2 From: Bernd Kuhls <bernd.kuhls@t-online.de>
3 Date: Sun, 28 Feb 2016 01:07:52 +0100
4 Subject: [PATCH] Sync enum representation of char_class_e in struct traits
8 https://github.com/kodi-pvr/pvr.mediaportal.tvserver/pull/28
9 https://github.com/kodi-pvr/pvr.mediaportal.tvserver/pull/35
11 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
12 [Patch sent upstream: https://github.com/kodi-pvr/pvr.nextpvr/pull/42]
15 1 file changed, 3 insertions(+), 3 deletions(-)
17 diff --git a/src/uri.h b/src/uri.h
18 index 2757cf0..3dbca88 100644
26 + typedef enum char_class_e : signed char
28 CINV = -2, ///< invalid
29 CEND = -1, ///< end delimitor
30 CVAL = 0, ///< valid any position
31 CVA2 = 1, ///< valid anywhere but 1st position
33 + } char_class_e_type;
35 /// Traits used for parsing and encoding components.
37 @@ -35,7 +35,7 @@ namespace uri
38 const char* begin_cstring; ///< begin cstring (or 0 if none)
39 const char begin_char; ///< begin char (or 0 if none)
40 const char end_char; ///< end char (or 0 if none)
41 - char char_class[256]; ///< map of char to class
42 + const char_class_e_type char_class[256]; ///< map of char to class