Update of /cvsroot/monetdb/pathfinder/compiler/algebra/prop
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25136/algebra/prop
Modified Files:
prop_ori_names.c
Log Message:
-- Fix bug introduced 5 minutes ago :|
Index: prop_ori_names.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/prop/prop_ori_names.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- prop_ori_names.c 19 Mar 2008 13:27:20 -0000 1.32
+++ prop_ori_names.c 19 Mar 2008 13:50:12 -0000 1.33
@@ -59,9 +59,6 @@
#define FREE(n) ((n)->prop->l_icols)
/* initial value for lists that encode free variables */
#define ALL (~att_NULL)
-/* store the number of incoming edges for each operator
- in the refctr field */
-#define EDGE(n) ((n)->refctr)
/* worker for PFprop_ori_name* */
static PFalg_att_t
@@ -214,10 +211,10 @@
}
}
- EDGE(n)++;
+ PFprop_refctr (n) = PFprop_refctr (n) - 1;
/* nothing to do if we haven't collected
all incoming name pair lists of that node */
- if (EDGE(n) < PFprop_refctr (n)) {
+ if (PFprop_refctr (n) > 0) {
/* return the current mappings to the parent operator */
return np_list;
}
@@ -713,8 +710,6 @@
static void
reset_fun (PFla_op_t *n)
{
- EDGE(n) = 0;
-
/* reset the original name information */
if (n->prop->name_pairs)
PFarray_last (n->prop->name_pairs) = 0;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins