On Mon, Jul 16, 2007 at 07:20:22AM +0000, Fabian wrote:
> Update of /cvsroot/monetdb/MonetDB/src/gdk
> In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19433
>
> Modified Files:
> gdk.mx gdk_value.mx
> Log Message:
> Added GDKversion function. I do not know what the best place for the
> implementation is, so I just chose a file.
what about gdk_utils.mx ?
seems more intuitive tham gdk_value.mx to me ...
> Putting it in gdk.mx itself does not seem to work. (symbol not exported)
gdk.mx only contains the gdk.h header file
(cf., `grep '[EMAIL PROTECTED]' MonetDB/src/gdk/gdk.mx`).
Stefan
>
>
> Index: gdk.mx
> ===================================================================
> RCS file: /cvsroot/monetdb/MonetDB/src/gdk/gdk.mx,v
> retrieving revision 1.234
> retrieving revision 1.235
> diff -u -d -r1.234 -r1.235
> --- gdk.mx 9 Jul 2007 08:36:32 -0000 1.234
> +++ gdk.mx 16 Jul 2007 07:20:18 -0000 1.235
> @@ -1612,7 +1612,6 @@
> gdk_export int GDKsave(str nme, str ext, void *buf, size_t size, int mode);
> gdk_export int GDKunlink(str dir, str nme, str extension);
> gdk_export int GDKmove(str dir1, str nme1, str ext1, str dir2, str nme2, str
> ext2);
> -
> @
> @}
>
> @@ -3275,6 +3274,16 @@
> @
>
> @h
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
> +gdk_export char *GDKversion();
> +
> +#ifdef __cplusplus
> +}
> +#endif
> +
> @{
> #define ILLEGALVALUE ((ptr)-1L)
> #define MAXPARAMS 32
>
> Index: gdk_value.mx
> ===================================================================
> RCS file: /cvsroot/monetdb/MonetDB/src/gdk/gdk_value.mx,v
> retrieving revision 1.37
> retrieving revision 1.38
> diff -u -d -r1.37 -r1.38
> --- gdk_value.mx 2 May 2007 16:17:06 -0000 1.37
> +++ gdk_value.mx 16 Jul 2007 07:20:19 -0000 1.38
> @@ -697,5 +697,11 @@
> return p == ILLEGALVALUE ? p : VALptr(t);
> }
>
> +
> +static char *_gdk_version_string = VERSION;
> +char *GDKversion() {
> + return(_gdk_version_string);
> +}
> +
> @}
> @
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Monetdb-checkins mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/monetdb-checkins
>
--
| Dr. Stefan Manegold | mailto:[EMAIL PROTECTED] |
| CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ |
| 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 |
| The Netherlands | Fax : +31 (20) 592-4312 |
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-developers