]> granicus.if.org Git - onig/commitdiff
remove NodeBase
authorK.Kosako <kosako@sofnec.co.jp>
Fri, 9 Jun 2017 07:53:51 +0000 (16:53 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Fri, 9 Jun 2017 07:53:51 +0000 (16:53 +0900)
src/regparse.h

index c8814d224292ad78b59153051786a35f8d3b278d..d0dbb51e2adb3fbc30e0639648cb6d5f23f1e64a 100644 (file)
@@ -164,12 +164,6 @@ typedef enum {
 
 #define CALLNODE_REFNUM_UNDEF  -1
 
-typedef struct {
-  NodeType node_type;
-  int status;
-  struct _Node* body;
-} NodeBase;
-
 typedef struct {
   NodeType node_type;
   int status;
@@ -286,7 +280,12 @@ typedef struct {
 
 typedef struct _Node {
   union {
-    NodeBase     base;
+    struct {
+      NodeType node_type;
+      int status;
+      struct _Node* body;
+    } base;
+
     StrNode      str;
     CClassNode   cclass;
     QtfrNode     qtfr;