X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=check_type%2F_info.c;fp=check_type%2F_info.c;h=0000000000000000000000000000000000000000;hp=06e90eb407a82ede9fe1a722fa159b893347cad3;hb=650c775ff00cccd03fc84e7789a03c51d9839004;hpb=c8acddea39d222312102952e91c32cfe4dd2cea0 diff --git a/check_type/_info.c b/check_type/_info.c deleted file mode 100644 index 06e90eb4..00000000 --- a/check_type/_info.c +++ /dev/null @@ -1,30 +0,0 @@ -#include -#include -#include "config.h" - -/** - * check_type - routines for compile time type checking - * - * C has fairly weak typing: ints get automatically converted to longs, signed - * to unsigned, etc. There are some cases where this is best avoided, and - * these macros provide methods for evoking warnings (or build errors) when - * a precise type isn't used. - * - * On compilers which don't support typeof() these routines are less effective, - * since they have to use sizeof() which can only distiguish between types of - * different size. - */ -int main(int argc, char *argv[]) -{ - if (argc != 2) - return 1; - - if (strcmp(argv[1], "depends") == 0) { -#if !HAVE_TYPEOF - printf("build_assert\n"); -#endif - return 0; - } - - return 1; -}