Changeset: 63d8e3f79ca3 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=63d8e3f79ca3 Added Files: monetdb5/extras/jaql/jaqlscenario.h Modified Files: monetdb5/extras/jaql/Makefile.ag monetdb5/extras/jaql/jaqlscenario.c Branch: default Log Message:
Add jaqlscenario.h for prototypes diffs (82 lines): diff --git a/monetdb5/extras/jaql/Makefile.ag b/monetdb5/extras/jaql/Makefile.ag --- a/monetdb5/extras/jaql/Makefile.ag +++ b/monetdb5/extras/jaql/Makefile.ag @@ -37,7 +37,8 @@ lib__json = { lib__jaql = { MODULE DIR = libdir/monetdb5 - SOURCES = jaql.c jaql.h jaqlgencode.c jaqlgencode.h jaqlscenario.c + SOURCES = jaql.c jaql.h jaqlgencode.c jaqlgencode.h \ + jaqlscenario.c jaqlscenario.h # the ./ is necessary for autogen not to generate garbage LIBS = ./parser/libjaqlp ../../tools/libmonetdb5 diff --git a/monetdb5/extras/jaql/jaqlscenario.c b/monetdb5/extras/jaql/jaqlscenario.c --- a/monetdb5/extras/jaql/jaqlscenario.c +++ b/monetdb5/extras/jaql/jaqlscenario.c @@ -18,7 +18,7 @@ */ #include "monetdb_config.h" -/*#include "jaql_scenario.h"*/ +#include "jaqlscenario.h" #include "jaql.h" #include "jaqlgencode.h" #include "msabaoth.h" @@ -111,7 +111,7 @@ JAQLexitClient(Client c) } -void +static void freeVariables(Client c, MalBlkPtr mb, MalStkPtr glb, int start) { int i, j; diff --git a/monetdb5/extras/jaql/jaqlscenario.h b/monetdb5/extras/jaql/jaqlscenario.h new file mode 100644 --- /dev/null +++ b/monetdb5/extras/jaql/jaqlscenario.h @@ -0,0 +1,43 @@ +/* + * The contents of this file are subject to the MonetDB 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://www.monetdb.org/Legal/MonetDBLicense + * + * 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 MonetDB Database System. + * + * The Initial Developer of the Original Code is CWI. + * Portions created by CWI are Copyright (C) 1997-July 2008 CWI. + * Copyright August 2008-2012 MonetDB B.V. + * All Rights Reserved. + */ + +#ifndef JAQLSCENARIO_H +#define JAQLSCENARIO_H 1 + +#include "mal_client.h" +#ifdef WIN32 +#ifndef LIBJAQL +#define jaqlscen_export extern __declspec(dllimport) +#else +#define jaqlscen_export extern __declspec(dllexport) +#endif +#else +#define jaqlscen_export extern +#endif + +jaqlscen_export str JAQLprelude(void); +jaqlscen_export str JAQLepilogue(void); +jaqlscen_export str JAQLexit(Client c); +jaqlscen_export str JAQLinitClient(Client c); +jaqlscen_export str JAQLexitClient(Client c); +jaqlscen_export str JAQLreader(Client c); +jaqlscen_export str JAQLparser(Client c); +jaqlscen_export str JAQLengine(Client c); + +#endif _______________________________________________ Checkin-list mailing list Checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list