/*================================================================ * * Specifics_Init * * Cpp's and reads in the specifics file. Creates fsl data structure. * * Returns: nothing * * Modifies: fsl, file specificsFile".cpp" * *================================================================ */ void Specifics_Init() { char command[1100]; FILE *specificsFP; sprintf(command, "/bin/rm -f %s.cpp", specificsFile); if(system(command)); sprintf(command, "%s -P %s %s %s.cpp", CPP_LOC, specificsDefines, specificsFile, specificsFile); if(system(command)); strcat(specificsFile, ".cpp"); if ((specificsFP = fopen(specificsFile, "r")) == NULL) { throw "Cannot open specifics file"; } printf("Specifics file: %s\n", specificsFile); Parse_Specifics_File(specificsFP); sprintf(command, "/bin/rm -f %s.cpp", specificsFile); if(system(command)); }
/*================================================================ * * Specifics_Init * * Cpp's and reads in the specifics file. Creates fsl data structure. * * Returns: nothing * * Modifies: fsl, file specificsFile".cpp" * *================================================================ */ void Specifics_Init() { char command[1100]; FILE *specificsFP; sprintf(command, "rm -f %s.cpp", specificsFile); system(command); sprintf(command, "cpp -P %s %s %s.cpp", specificsDefines, specificsFile, specificsFile); system(command); strcat(specificsFile, ".cpp"); if ((specificsFP = fopen(specificsFile, "r")) == NULL) { fprintf(stderr, "Error with specifics file, cannot open %s\n", specificsFile); exit(1); } printf("Specifics file: %s\n", specificsFile); Parse_Specifics_File(specificsFP); sprintf(command, "rm -f %s.cpp", specificsFile); system(command); }