X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=libraries%2Flibart_lgpl-2.3.7%2Fgen_art_config.c;fp=libraries%2Flibart_lgpl-2.3.7%2Fgen_art_config.c;h=0000000000000000000000000000000000000000;hp=8d88815d7ccdc5eb4f582e6145c42b232cfac877;hb=5d405fd05bbfbbd94a7c6cbd876e6634025c1c25;hpb=bab0189ee9d56aca8bea909275317ab4e0be09ee diff --git a/libraries/libart_lgpl-2.3.7/gen_art_config.c b/libraries/libart_lgpl-2.3.7/gen_art_config.c deleted file mode 100644 index 8d88815..0000000 --- a/libraries/libart_lgpl-2.3.7/gen_art_config.c +++ /dev/null @@ -1,52 +0,0 @@ -#include -#include "config.h" -#include - -/** - * A little utility function to generate header info. - * - * Yes, it would be possible to do this using more "native" autoconf - * features, but I personally find this approach to be cleaner. - * - * The output of this program is generally written to art_config.h, - * which is installed in libart's include dir. - **/ - -static void -die (char *why) -{ - fprintf (stderr, "gen_art_config: %s\n", why); - exit (1); -} - -int -main (int argc, char **argv) -{ - printf ("/* Automatically generated by gen_art_config.c */\n" - "\n" - "#define ART_SIZEOF_CHAR %d\n" - "#define ART_SIZEOF_SHORT %d\n" - "#define ART_SIZEOF_INT %d\n" - "#define ART_SIZEOF_LONG %d\n" - "\n", - (int)sizeof(char), (int)sizeof(short), (int)sizeof(int), (int)sizeof(long)); - - if (sizeof(char) == 1) - printf ("typedef unsigned char art_u8;\n"); - else - die ("sizeof(char) != 1"); - - if (sizeof(short) == 2) - printf ("typedef unsigned short art_u16;\n"); - else - die ("sizeof(short) != 2"); - - if (sizeof(int) == 4) - printf ("typedef unsigned int art_u32;\n"); - else if (sizeof(long) == 4) - printf ("typedef unsigned long art_u32;\n"); - else - die ("sizeof(int) != 4 and sizeof(long) != 4"); - - return 0; -}