[Monetdb-developers] [Monetdb-checkins] MonetDB/src/gdk gdk.mx, , 1.234, 1.235 gdk_value.mx, , 1.37, 1.38

Stefan Manegold Stefan.Manegold at cwi.nl
Mon Jul 16 09:37:45 CEST 2007


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 '^@[a-z]$' 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
> Monetdb-checkins at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/monetdb-checkins
> 

-- 
| Dr. Stefan Manegold | mailto:Stefan.Manegold at cwi.nl |
| 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       |




More information about the developers-list mailing list