Update of /cvsroot/monetdb/pathfinder/compiler/semantics
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21770/compiler/semantics

Modified Files:
        xquery_fo.c 
Log Message:
* add to the implty enum definition the new update types. Append union was 
complaining about this.
* made a dummy implementation for the fn:error function. It returns null, so 
any call to fn:error will result to segmentation fault for now:)
* re-order the enum for bat access mode in mil.h. It should be
  BAT_WRITE=0 
  BAT_READ=1
  BAT_APPEND=2
  but it was: BAT_READ=0, BAT_APPEND=1, BAT_WRITE=2


Index: xquery_fo.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/semantics/xquery_fo.c,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -d -r1.145 -r1.146
--- xquery_fo.c 20 Nov 2007 16:57:32 -0000      1.145
+++ xquery_fo.c 27 Nov 2007 17:13:02 -0000      1.146
@@ -269,18 +269,21 @@
     , /* fn:error () as none */
       { .ns = PFns_fn, .loc = "error",
         .arity = 0,  .sig_count = 1, .sigs = { {
-            .ret_ty = PFty_none () } } }
-    , /* fn:error (string?) as none */
+            .ret_ty = PFty_none () } },
+        .alg = NULL }
+    , /* fn:error (string) as none */
       { .ns = PFns_fn, .loc = "error",
         .arity = 1, .sig_count = 1, .sigs = { {
             .par_ty = (PFty_t[]) { PFty_opt (PFty_xs_string ()) },
-            .ret_ty = PFty_none () } } }
+            .ret_ty = PFty_none () } },
+        .alg = PFbui_fn_error }
     , /* fn:error (string?, string) as none */
       { .ns = PFns_fn, .loc = "error",
         .arity = 2, .sig_count = 1, .sigs = { {
             .par_ty = (PFty_t[]) { PFty_opt (PFty_xs_string ()),
                                 PFty_xs_string () },
-            .ret_ty = PFty_none () } } }
+            .ret_ty = PFty_none () } },
+        .alg = PFbui_fn_error_str }
 
 
 /* 4. THE TRACE FUNCTION */


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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

Reply via email to