[Monetdb-developers] MonetDB: default - Debugging routine should be globally known

Stefan Manegold Stefan.Manegold at cwi.nl
Sun Jul 15 15:31:37 CEST 2012


Shouldn't BATassertProps() (have) be(en) used instead of BATassertHeadProps()?

The former is already globally known 
and calls the latter on both, head & tail of a BAT ...

Stefan

----- Original Message -----
> Changeset: 6a5b3889c41e for MonetDB
> URL:
> http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6a5b3889c41e
> Modified Files:
> 	gdk/gdk_bat.c
> 	gdk/gdk_bat.h
> Branch: default
> Log Message:
> 
> Debugging routine should be globally known
> 
> 
> diffs (23 lines):
> 
> diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c
> --- a/gdk/gdk_bat.c
> +++ b/gdk/gdk_bat.c
> @@ -2799,7 +2799,7 @@ BATmode(BAT *b, int mode)
>   * is not actually used anywhere, but it is checked. */
>  
>  #ifndef NDEBUG
> -static void
> +void
>  BATassertHeadProps(BAT *b)
>  {
>  	BATiter bi = bat_iterator(b);
> diff --git a/gdk/gdk_bat.h b/gdk/gdk_bat.h
> --- a/gdk/gdk_bat.h
> +++ b/gdk/gdk_bat.h
> @@ -23,6 +23,7 @@
>  gdk_export BUN void_replace_bat(BAT *b, BAT *u, bit force);
>  gdk_export int void_inplace(BAT *b, oid id, const void *val, bit
>  force);
>  gdk_export BAT *BATattach(int tt, const char *heapfile);
> +gdk_export void BATassertHeadProps(BAT *b);
>  
>  extern int default_ident(char *s);
>  extern oid MAXoid(BAT *i);
> _______________________________________________
> Checkin-list mailing list
> Checkin-list at monetdb.org
> http://mail.monetdb.org/mailman/listinfo/checkin-list
> 




More information about the developers-list mailing list