Imported Upstream version 2.7
[ossec-hids.git] / src / os_regex / os_regex_internal.h
index dde3ac3..299e5c2 100755 (executable)
 #define OR          '|'
 #define AND         '&'
 
-#define TRUE         1 
+#define TRUE         1
 #define FALSE        0
 
 
 /* Pattern flags */
 #define BEGIN_SET   0000200
-#define END_SET     0000400     
+#define END_SET     0000400
 
 
 /* uchar */
@@ -48,7 +48,7 @@ typedef unsigned char uchar;
  */
 #define _IsW(x) ((x >= 48 && x <= 57 )|| \
                         (x >= 65 && x <= 90 )|| \
-                        (x >= 97 && x <= 122)) 
+                        (x >= 97 && x <= 122))
 
 
 /* Is it a ' ' (blank)
@@ -133,25 +133,25 @@ static const uchar charmap[] = {
 
 
 
-/* Regex mapping 
+/* Regex mapping
  * 0  = none
  * 1  = \d
  * 2  = \w
  * 3  = \s
  * 4  = \p
- * 5  = \( 
+ * 5  = \(
  * 6  = \)
  * 7  = \\
  * 8  = \D
  * 9  = \W
  * 10 = \S
- * 11 = \. 
+ * 11 = \.
  * 12 = \t
  * 13 = \$
  * 14 = |
  * 15 = <
  */
-static const uchar regexmap[][256] = 
+static const uchar regexmap[][256] =
 {
     {
         '\000', '\000', '\000', '\000', '\000', '\000', '\000', '\000',
@@ -252,8 +252,8 @@ static const uchar regexmap[][256] =
         '\330', '\331', '\332', '\333', '\334', '\335', '\336', '\337',
         '\340', '\341', '\342', '\343', '\344', '\345', '\346', '\347',
         '\350', '\351', '\352', '\353', '\354', '\355', '\356', '\357',
-        '\360', '\361', '\362', '\363', '\364', '\365', '\366', '\367',    
-        '\360', '\361', '\362', '\363', '\364', '\365', '\366', '\367',    
+        '\360', '\361', '\362', '\363', '\364', '\365', '\366', '\367',
+        '\360', '\361', '\362', '\363', '\364', '\365', '\366', '\367',
     },
     {
         '\000', '\000', '\002', '\003', '\004', '\005', '\006', '\007',
@@ -294,7 +294,7 @@ static const uchar regexmap[][256] =
         '\010', '\011', '\012', '\013', '\014', '\015', '\016', '\017',
         '\020', '\021', '\022', '\023', '\024', '\025', '\026', '\027',
         '\030', '\031', '\032', '\033', '\034', '\035', '\036', '\037',
-        '\040', '\041', '\042', '\043', '\044', '\045', '\046', '\047',
+        '\040', '\001', '\001', '\001', '\001', '\001', '\001', '\001',
         '\001', '\001', '\001', '\001', '\001', '\001', '\001', '\057',
         '\060', '\061', '\062', '\063', '\064', '\065', '\066', '\067',
         '\070', '\071', '\001', '\001', '\001', '\001', '\001', '\001',
@@ -305,7 +305,7 @@ static const uchar regexmap[][256] =
         '\140', '\141', '\142', '\143', '\144', '\145', '\146', '\147',
         '\150', '\151', '\152', '\153', '\154', '\155', '\156', '\157',
         '\160', '\161', '\162', '\163', '\164', '\165', '\166', '\167',
-        '\170', '\171', '\172', '\173', '\174', '\175', '\176', '\177',
+        '\170', '\171', '\172', '\001', '\001', '\001', '\176', '\177',
         '\200', '\201', '\202', '\203', '\204', '\205', '\206', '\207',
         '\210', '\211', '\212', '\213', '\214', '\215', '\216', '\217',
         '\220', '\221', '\222', '\223', '\224', '\225', '\226', '\227',
@@ -707,4 +707,4 @@ static const uchar regexmap[][256] =
 #endif
 
 
-/* EOF */ 
+/* EOF */