Update of /cvsroot/monetdb/MonetDB4/src/monet
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv30817/MonetDB4/src/monet
Modified Files:
monet.mx
Log Message:
added "MonetDBversion()" function (analogous to "GDKversion()")
and used it to sync the Mserver code of the statically-linked Mserver
for SQL & Pathfinder with the original Mserver code.
Index: monet.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB4/src/monet/monet.mx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- monet.mx 16 Jul 2007 08:02:53 -0000 1.6
+++ monet.mx 7 Sep 2007 21:11:05 -0000 1.7
@@ -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: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins