/* $Id: gen_comp_test.c 1442 2005-08-02 20:36:21Z mipsator $ */ /* Public Domain */ /* generate compiler detection test file */ /*#define PRS_DEBUG 1*/ #include #include #include "../detect.h" #include "../parse.h" int main(void) { FILE *fp; comp_data *cdata; printf("Parsing compiler data.\n"); cdata = parse_comp_file("../data/pmkcomp.dat"); fp = fopen("cc_test.c", "w"); if (fp == NULL) { printf("Failed to open 'cc_test.c'.\n"); exit(EXIT_FAILURE); } gen_test_file(fp, cdata); fclose(fp); compdata_destroy(cdata); return(0); }