Changeset: a71b812fee24 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a71b812fee24 Modified Files: gdk/gdk_calc_private.h gdk/gdk_private.h monetdb5/mal/mal_private.h Branch: Jan2014 Log Message:
Assure that private include files are used privately. diffs (42 lines): diff --git a/gdk/gdk_calc_private.h b/gdk/gdk_calc_private.h --- a/gdk/gdk_calc_private.h +++ b/gdk/gdk_calc_private.h @@ -19,6 +19,10 @@ /* This file contains shared definitions for gdk_calc.c and gdk_aggr.c */ +#ifndef LIBGDK +#error this file should not be included outside its source directory +#endif + #ifdef HAVE_LONG_LONG typedef unsigned long long ulng; #else diff --git a/gdk/gdk_private.h b/gdk/gdk_private.h --- a/gdk/gdk_private.h +++ b/gdk/gdk_private.h @@ -19,6 +19,10 @@ /* This file should not be included in any file outside of this directory */ +#ifndef LIBGDK +#error this file should not be included outside its source directory +#endif + int ALIGNcommit(BAT *b); int ALIGNundo(BAT *b); int ATOMheap(int id, Heap *hp, size_t cap); diff --git a/monetdb5/mal/mal_private.h b/monetdb5/mal/mal_private.h --- a/monetdb5/mal/mal_private.h +++ b/monetdb5/mal/mal_private.h @@ -19,6 +19,10 @@ /* This file should not be included in any file outside of this directory */ +#ifndef LIBMAL +#error this file should not be included outside its source directory +#endif + #ifdef FREECLIENT /* FREECLIENT is defined in the same file as Client */ extern void MCexitClient(Client c); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list