]> granicus.if.org Git - onig/commitdiff
refactoring
authorK.Kosako <kosako@sofnec.co.jp>
Fri, 4 Oct 2019 02:17:59 +0000 (11:17 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Fri, 4 Oct 2019 02:17:59 +0000 (11:17 +0900)
src/regparse.c

index 54b75b56e6e09d18a63e95de2be56981446d0726..91cdbeaa970361fad82fb69ec40a189edb5ccbd3 100644 (file)
@@ -6130,14 +6130,14 @@ enum CSTATE {
   CS_START
 };
 
-enum CVALTYPE {
+enum CVAL {
   CV_SB,
   CV_MB,
   CV_CLASS
 };
 
 static int
-next_state_class(CClassNode* cc, OnigCodePoint* vs, enum CVALTYPE* type,
+next_state_class(CClassNode* cc, OnigCodePoint* vs, enum CVAL* type,
                  enum CSTATE* state, ScanEnv* env)
 {
   int r;
@@ -6162,7 +6162,7 @@ next_state_class(CClassNode* cc, OnigCodePoint* vs, enum CVALTYPE* type,
 static int
 next_state_val(CClassNode* cc, OnigCodePoint *from, OnigCodePoint to,
                int* from_israw, int to_israw,
-               enum CVALTYPE intype, enum CVALTYPE* type,
+               enum CVAL intype, enum CVAL* type,
                enum CSTATE* state, ScanEnv* env)
 {
   int r;
@@ -6264,8 +6264,8 @@ parse_cc(Node** np, PToken* tok, UChar** src, UChar* end, ScanEnv* env)
   CClassNode work_cc;
   int val_israw, in_israw;
   enum CSTATE state;
-  enum CVALTYPE in_type;
-  enum CVALTYPE val_type;
+  enum CVAL in_type;
+  enum CVAL val_type;
 
   *np = NULL_NODE;
   val_type = -1;