Update of /cvsroot/monetdb/MonetDB4/src/monet
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv2717/src/monet
Modified Files:
Tag: GDK-2
monet.mx
Log Message:
propagated changes of Thursday Sep 06 2007 - Monday Sep 10 2007
from the development trunk to the GDK-2 branch
Index: monet.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB4/src/monet/monet.mx,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -u -d -r1.6 -r1.6.2.1
--- monet.mx 16 Jul 2007 08:02:53 -0000 1.6
+++ monet.mx 10 Sep 2007 14:22:49 -0000 1.6.2.1
@@ -335,11 +335,23 @@
#define monet_unset_lock(X,Y) if(GDKprotected) MT_unset_lock(X,Y)
#define monet_up_sema(X,Y) if(GDKprotected) MT_up_sema(X,Y)
#define monet_down_sema(X,Y) if(GDKprotected) MT_down_sema(X,Y)
+
+m_export const char *MonetDBversion(void);
#endif /* _MONET_H_ */
@c
#include "monetdb4_config.h"
#include "monet.h"
+static char *_MonetDB_version_string = VERSION;
+/**
+ * Returns the MonetDB version as internally allocated string. Hence the
+ * string does not have to (and should not) be freed. Do not inline
+ * this function or the wrong VERSION will be used.
+ */
+const char *MonetDBversion(void) {
+ return(_MonetDB_version_string);
+}
+
int monet_nostalgic = 0;
int monet_running = 0;
char monet_cwd[PATHLENGTH] = { 0 }, *monet_ver = 0;
-------------------------------------------------------------------------
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-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins