RPA Toolkit
removed RPA_RECORD_MATCH
authorMartin Stoilov <martin@rpasearch.com>
Sat, 18 Jun 2011 05:26:21 +0000 (22:26 -0700)
committerMartin Stoilov <martin@rpasearch.com>
Sat, 18 Jun 2011 05:26:21 +0000 (22:26 -0700)
rpa/rpadbex.c
rpa/rparecord.h
rpa/rpavm.c

index 151c546..40ce201 100644 (file)
@@ -1582,7 +1582,7 @@ static rlong rpa_dbex_copy_handler(rarray_t *records, rlong rec, rpointer userda
                /*
                 * Ignore it
                 */
-       } else if (prec->ruleuid == RPA_PRODUCTION_OCCURENCE && (prec->type & (RPA_RECORD_MATCH | RPA_RECORD_END))) {
+       } else if (prec->ruleuid == RPA_PRODUCTION_OCCURENCE && (prec->type & (RPA_RECORD_END))) {
                ruint32 usertype = RPA_MATCH_NONE;
                rlong lastrec = 0;
                /*
index 295a592..20ae56a 100644 (file)
@@ -49,7 +49,7 @@ extern "C" {
 #define RPA_RECORD_NONE (0)
 #define RPA_RECORD_START (1 << 0)
 #define RPA_RECORD_END (1 << 1)
-#define RPA_RECORD_MATCH (1 << 2)
+//#define RPA_RECORD_MATCH (1 << 2)
 #define RPA_RECORD_HEAD (1 << 3)
 #define RPA_RECORD_TAIL (1 << 4)
 
index 81a100c..0792cba 100644 (file)
@@ -304,10 +304,6 @@ static void rpavm_swi_emitend(rvmcpu_t *cpu, rvm_asmins_t *ins)
        rec->next = 0;
        startrec->size = tplen;
        startrec->inputsiz = rec->inputsiz;
-
-       if (tplen) {
-               rec->type |= RPA_RECORD_MATCH;
-       }
 }