Update of /cvsroot/monetdb/pathfinder/backends/monet5
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv27530/backends/monet5
Added Files:
Makefile.ag xquery.mx
Log Message:
The new directories needed for the M42M5 porting. WE use the same structure
as in the sql module, that is backends/monet5.
The M5 module for Monet5/Xquery is "xquery" and the main definitions are in
backends/monet5/xquery.mx
--- NEW FILE: xquery.mx ---
@' The contents of this file are subject to the Pathfinder Public License
@' Version 1.1 (the "License"); you may not use this file except in
@' compliance with the License. You may obtain a copy of the License at
@' http://monetdb.cwi.nl/Legal/PathfinderLicense-1.1.html
@'
@' Software distributed under the License is distributed on an "AS IS"
@' basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
@' the License for the specific language governing rights and limitations
@' under the License.
@'
@' The Original Code is the Pathfinder system.
@'
@' The Original Code has initially been developed by the Database &
@' Information Systems Group at the University of Konstanz, Germany and
@' the Database Group at the Technische Universitaet Muenchen, Germany.
@' It is now maintained by the Database Systems Group at the Eberhard
@' Karls Universitaet Tuebingen, Germany. Portions created by the
@' University of Konstanz, the Technische Universitaet Muenchen, and the
@' Universitaet Tuebingen are Copyright (C) 2000-2005 University of
@' Konstanz, (C) 2005-2008 Technische Universitaet Muenchen, and (C)
@' 2008-2009 Eberhard Karls Universitaet Tuebingen, respectively. All
@' Rights Reserved.
@'
@f xquery
@t XQuery M5 Module Implemenation
@v 0
@*
The XQuery/M5 module provides the mal interface to the XQuery specific
functions.
@mal
module xquery;
@- XQuery shredder interface (xquery_shredder.mx)
@mal
command shred_url(doc:bat[:str,:bat], url:str, percentage:lng, l:lock,
verbose:bit) :void
address XQUERYShredURL
comment "Shredd an XML document from a URL. Parameters: URL - document located
at this URL is shredded, percentage - a number [0,100] indicating the amount of
free space to reserve for updates (percentage=0 leads to a read-only document)"
command shred_str(doc:bat[:str,:bat], buffer:str, percentage:lng, l:lock,
verbose:bit) : void
address XQUERYShredStr
comment "Shredd an XML document from a string. Parameters: buffer - the XML
string to shred, percentage - a number [0,100] indicating the amount of free
space to reserve for updates (percentage=0 leads to a read-only document)"
command shred_stream(doc:bat[:str,:bat], s:stream, percentage:lng, l:lock,
verbose:bit) : void
adress XQUERYShredStream
comment "Shredd an XML document from a stream. Parameters: s - XML input
stream, percentage - a number [0,100] indicating the amount of free space to
reserve for updates (percentage=0 leads to a read-only document)"
@h
#ifndef _XQUERY_H
#define _XQUERY_H
#define DEBUG_XQR
#ifdef WIN32
#ifndef LIBXQUERY
#define xquery_export extern __declspec(dllimport)
#else
#define xquery_export extern __declspec(dllexport)
#endif
#else
#define xquery_export extern
#endif
#endif /* _XQUERY_H */
@c
#include "mal_config.h"
#include "mal_exception.h"
#include "xquery.h"
--- NEW FILE: Makefile.ag ---
# Copyright Notice:
# -----------------
#
# The contents of this file are subject to the Pathfinder Public License
# Version 1.1 (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# http://monetdb.cwi.nl/Legal/PathfinderLicense-1.1.html
#
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
# the License for the specific language governing rights and limitations
# under the License.
#
# The Original Code is the Pathfinder system.
#
# The Original Code has initially been developed by the Database &
# Information Systems Group at the University of Konstanz, Germany and
# the Database Group at the Technische Universitaet Muenchen, Germany.
# It is now maintained by the Database Systems Group at the Eberhard
# Karls Universitaet Tuebingen, Germany. Portions created by the
# University of Konstanz, the Technische Universitaet Muenchen, and the
# Universitaet Tuebingen are Copyright (C) 2000-2005 University of
# Konstanz, (C) 2005-2008 Technische Universitaet Muenchen, and (C)
# 2008-2009 Eberhard Karls Universitaet Tuebingen, respectively. All
# Rights Reserved.
#
INCLUDES = ../compiler/include ../runtime $(MONETDB5_INCS) $(MONETDB_INCS)
$(LIBXML2_CFLAGS)
PF_LIBS = $(LIBXML2_LDADD) $(LIBXML2_LIBS) $(DL_LIBS)
lib__xquery = {
DIR = libdir/MonetDB5
SOURCES = \
xquery.mx \
xquery_shredder.mx
LIBS = \
$(PF_LIBS) \
$(MONETDB5_MODS) -l_optimizer -l_bat5 \
../runtime/libserialize ../runtime/libpf \
$(MONETDB_LIBS) $(MONETDB5_LIBS) -lmonetdb5 -lbat -lstream \
$(READLINE_LIBS) $(PTHREAD_LIBS)
}
headers_mal = {
HEADERS = mal
DIR = libdir/MonetDB5
SOURCES = xquery.mx
}
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins