ref: d50c934fec01b67f6c6803bb4994f6c7038d7c7c
parent: 2d28162c2fd40588cde6b2fd62517fe25e7baffb
author: Tor Andersson <[email protected]>
date: Mon Feb 24 07:04:10 EST 2014
Fix jsone build.
--- a/regex.c
+++ b/regex.c
@@ -7,6 +7,10 @@
#include "regex.h"
#include "utf.h"
+#define emit regemit
+#define next regnext
+#define accept regaccept
+
#define nelem(a) (sizeof (a) / sizeof (a)[0])
typedef struct Reclass Reclass;
@@ -714,9 +718,9 @@
case P_EOL: printf("Eol"); break;
case P_WORD: printf("Word"); break;
case P_NWORD: printf("NotWord"); break;
- case P_PAR: printf("Par("); dumpnode(node->x); printf(")"); break;
- case P_PLA: printf("PLA("); dumpnode(node->x); printf(")"); break;
- case P_NLA: printf("NLA("); dumpnode(node->x); printf(")"); break;
+ case P_PAR: printf("Par(%d,", node->n); dumpnode(node->x); printf(")"); break;
+ case P_PLA: printf("PLA(%d,", node->n); dumpnode(node->x); printf(")"); break;
+ case P_NLA: printf("NLA(%d,", node->n); dumpnode(node->x); printf(")"); break;
case P_ANY: printf("Any"); break;
case P_CHAR: printf("Char(%c)", node->c); break;
case P_CCLASS: