summaryrefslogtreecommitdiff
path: root/devel/icu4/files/patch-enum-bug
blob: 4c254481a0dc8047b6fa6b81679a30ecc3486f6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--- i18n/regexcmp.h	Thu Oct 20 10:54:02 2005
+++ i18n/regexcmp.h	Mon Dec 11 13:42:54 2006
@@ -38,9 +38,6 @@
                                                     //   to the depth of parentheses nesting
                                                     //   that is allowed in the rules.
 
-enum EParseAction {dummy01, dummy02};               // Placeholder enum for the specifier for
-                                                    //   actions that are specified in the
-                                                    //   rule parsing state table.
 struct  RegexTableEl;
 class   RegexPattern;
 
@@ -83,7 +80,7 @@
 private:
 
 
-    UBool       doParseActions(EParseAction a);
+    UBool       doParseActions(int a);
     void        error(UErrorCode e);                   // error reporting convenience function.
 
     UChar32     nextCharLL();
--- i18n/regexcmp.cpp	Wed Feb  1 22:37:14 2006
+++ 118n/regexcmp.cpp	Mon Dec 11 13:43:21 2006
@@ -191,7 +191,7 @@
         // We've found the row of the state table that matches the current input
         //   character from the rules string.
         // Perform any action specified  by this row in the state table.
-        if (doParseActions((EParseAction)tableEl->fAction) == FALSE) {
+        if (doParseActions(tableEl->fAction) == FALSE) {
             // Break out of the state machine loop if the
             //   the action signalled some kind of error, or
             //   the action was to exit, occurs on normal end-of-rules-input.
@@ -321,7 +321,7 @@
 //
 //
 //------------------------------------------------------------------------------
-UBool RegexCompile::doParseActions(EParseAction action)
+UBool RegexCompile::doParseActions(int action)
 {
     UBool   returnVal = TRUE;
 
@@ -342,7 +342,7 @@
 
         // Standard open nonCapture paren action emits the two NOPs and
         //   sets up the paren stack frame.
-        doParseActions((EParseAction)doOpenNonCaptureParen);
+        doParseActions(doOpenNonCaptureParen);
         break;
 
     case doPatFinish: