DEVELOPERS: add Yegor Yefremov for the ser2net package
[buildroot-gz.git] / package / kodi-pvr-nextpvr / 0001-Sync-enum-representation-of-char_class_e-in-struct-t.patch
blob18e59951c640cdfd4c342d0bf0ecd9f567a0a920
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
5 with definition
7 Copied from
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]
13 ---
14 src/uri.h | 6 +++---
15 1 file changed, 3 insertions(+), 3 deletions(-)
17 diff --git a/src/uri.h b/src/uri.h
18 index 2757cf0..3dbca88 100644
19 --- a/src/uri.h
20 +++ b/src/uri.h
21 @@ -21,13 +21,13 @@
22 namespace uri
24 /// Char class.
25 - enum char_class_e
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
32 - };
33 + } char_class_e_type;
35 /// Traits used for parsing and encoding components.
36 struct traits
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
45 /**
46 --
47 2.7.0