Update of /cvsroot/monetdb/pathfinder/compiler/semantics
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31053
Modified Files:
Tag: XQuery_0-18
xquery_fo.c
Log Message:
Experiment: split up declaration of xquery_fo into smaller pieces in
multiple functions to see whether it then compiles with icc on Linux.
Index: xquery_fo.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/semantics/xquery_fo.c,v
retrieving revision 1.129.2.1
retrieving revision 1.129.2.2
diff -u -d -r1.129.2.1 -r1.129.2.2
--- xquery_fo.c 7 Jun 2007 14:07:00 -0000 1.129.2.1
+++ xquery_fo.c 7 Jun 2007 20:01:49 -0000 1.129.2.2
@@ -97,8 +97,8 @@
}
}
-void
-PFfun_xquery_fo (void)
+static void
+PFfun_xquery_fo1 (void)
{
struct xquery_fo xquery_fo1[] =
/**
@@ -956,7 +956,15 @@
.ret_ty = PFty_xs_double () } },
.alg = PFbui_fn_floor_dbl }
, { .loc = 0 }
- }, xquery_fo2[] = {
+ };
+
+ xquery_fo_initiaze(xquery_fo1);
+}
+
+static void
+PFfun_xquery_fo2 (void)
+{
+ struct xquery_fo xquery_fo2[] = {
/* fn:floor (integer?) as integer? */
{ .ns = PFns_fn, .loc = "floor",
.arity = 1, .sig_count = 1, .sigs = { {
@@ -1646,7 +1654,15 @@
.ret_ty = PFty_opt (PFty_doc (PFty_xs_anyNode ())) } },
.alg = PFbui_fn_doc }
, { .loc = 0 }
- }, xquery_fo3[] = {
+ };
+
+ xquery_fo_initiaze(xquery_fo2);
+}
+
+static void
+PFfun_xquery_fo3 (void)
+{
+ struct xquery_fo xquery_fo3[] = {
/* fn:collection (string) as node* */
{ .ns = PFns_fn, .loc = "collection",
.arity = 1, .sig_count = 1, .sigs = { {
@@ -2241,11 +2257,17 @@
, { .loc = 0 }
};
+ xquery_fo_initiaze(xquery_fo3);
+}
+
+void
+PFfun_xquery_fo (void)
+{
PFfun_env = PFenv ();
- xquery_fo_initiaze(xquery_fo1);
- xquery_fo_initiaze(xquery_fo2);
- xquery_fo_initiaze(xquery_fo3);
+ PFfun_xquery_fo1 ();
+ PFfun_xquery_fo2 ();
+ PFfun_xquery_fo3 ();
}
/* vim:set shiftwidth=4 expandtab: */
-------------------------------------------------------------------------
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