jho@imada.ou.dk (Jens H. Ovesen) (05/08/91)
To all who got the 'ptc' from the newcastle server and haven't got cc vsn. 3.50. In order to make 'ptc' compatible with cc vsn. 3.00 I have made some changes. The following is the result of a '*Diff -wt my_ptc ptc_orig' : -----------------------------------cut--------------------------------------- 5,6d4 < ** Changed a bit by Jens H. Ovesen to make it compatible with < ** cc vsn. 3.00 12,13c10 < # include "ptcmain.h" < # define MAXSETS 200 --- > # include "<ptc$dir>.ptcmain.h" 50c47 < setptr Conset[162]; --- > setptr Conset[]; 7340c7337 < (void)fprintf(output.fp, "%s\"ptcmain.h\"\n", C24_include), Putl(output, 1); --- > (void)fprintf(output.fp, "%s\"<ptc$dir>.ptcmain.h\"\n", C24_include), Putl(output, 1); 7444c7441 < (void)fprintf(output.fp, "%s%cConset[%d];\n", setptyp, tab1, MAXSETS), Putl(output, 1); --- > (void)fprintf(output.fp, "%s%cConset[];\n", setptyp, tab1), Putl(output, 1); 7649,7654d7645 < } < for (i = MAXSETS-1; ; i--) { < (void)fprintf(output.fp, "%cQ0,", tab1), Putl(output, 1); < if (i % 6 == 5) < Putchr('\n', output); < if (i == len) break; --------------------------------cut------------------------------------------- Save the above under the name 'diff_file' in the 'c' directory and issue the command 'patch -lR -o ptc_new ptc diff_file' In 'h.ptc' you should remove the "<ptc$dir>" from the last 4 lines. In makefile, comment out "mkptypes -e ...." Jens (jho@imada.ou.dk)