Update of /cvsroot/monetdb/pathfinder/compiler/sql
In directory sc8-pr-cvs16:/tmp/cvs-serv16595

Modified Files:
        lalg2sql.brg sql.c 
Log Message:


cleaning code


Index: sql.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/sql/sql.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- sql.c       16 Apr 2007 12:06:32 -0000      1.23
+++ sql.c       7 May 2007 11:46:46 -0000       1.24
@@ -47,49 +47,67 @@
 /*............... General ...............*/
 
 /**
- * Decorate an SQL expression with a correlation.
+ * Decorate an SQL expression with a correlationname.
+ * Each Operator can be annotated with a correlation name
+ * to collate it to a relation.
  *
- * @param op   SQL operator or expression.
- * @param crrl The identifier of the correlation.
+ * @param  op   SQL operator or expression.
[...1619 lines suppressed...]
     return wire1(sql_not, a);
 }
 
+
 /**
  * Create a SQL tree node representing a boolean
  * `and' operator.
@@ -1196,6 +1372,7 @@
     return wire2(sql_and, a, b);
 }
 
+
 /**
  * Create a SQL tree node representing a boolean
  * `or' operator.
@@ -1209,3 +1386,4 @@
     return wire2(sql_or, a, b);
 }
 
+/* vim:set shiftwidth=4 expandtab: */

Index: lalg2sql.brg
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/sql/lalg2sql.brg,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- lalg2sql.brg        2 Apr 2007 19:41:06 -0000       1.40
+++ lalg2sql.brg        7 May 2007 11:46:46 -0000       1.41
@@ -1,71 +1,72 @@
 %{
 
-/**
- * @file
- *
- * Transforms the logical algebra tree into a tree that represents
- * sql statements.
- *
- * Copyright Notice:
- * -----------------
- *
[...7923 lines suppressed...]
+    assert (n);
 
-   max_pre_frag = fragrelation ();
+    /* set reference counters in algebra tree nodes */
+    inc_refctr (n);
+    PFla_dag_reset (n);
 
-   parse (n);
-   
-   return sql_stmts;
+    max_pre_frag = fragrelation ();
+
+    parse (n);
+
+    return sql_stmts;
 }
-/* vim:set shiftwidth=4 expandtab filetype=c: */  
+
+
+/* vim:set shiftwidth=4 expandtab filetype=c: */


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to