removed some %0 stuff

This commit is contained in:
ceriel 1987-02-10 09:49:50 +00:00
parent 9a7949c79d
commit cd1007a972

View file

@ -1876,7 +1876,12 @@ finishio() {
p=codestrings[i]; p=codestrings[i];
fprintf(cfile,"\t\""); fprintf(cfile,"\t\"");
while (*p) { while (*p) {
fprintf(cfile, !isascii(*p) || iscntrl(*p) ? "\\%03o" : "%c", (*p)&BMASK); register int c = (*p) & BMASK;
if (! isascii(c) || iscntrl(c)) {
fprintf(cfile,"\\%c%c%c",((c>>6) &03)+'0',
((c>>3)&07)+'0',(c&07)+'0');
}
else putc(c, cfile);
p++; p++;
} }
fprintf(cfile,"\",\n"); fprintf(cfile,"\",\n");
@ -1944,7 +1949,7 @@ finishio() {
c3coercs[i].c3_codep); c3coercs[i].c3_codep);
fprintf(cfile,"};\n\n"); fprintf(cfile,"};\n\n");
for (i=0;i<nprops;i++) { for (i=0;i<nprops;i++) {
fprintf(cfile,"struct reginfo *rlist%02d[] = {\n",i); fprintf(cfile,"struct reginfo *rlist%d[] = {\n",i);
for (j=2;j<=nmachregs;j++) { for (j=2;j<=nmachregs;j++) {
if (machregs[j-1]->rregvar<0 && if (machregs[j-1]->rregvar<0 &&
(machprops[i].propset.set_val[j>>4]&(1<<(j&017)))) (machprops[i].propset.set_val[j>>4]&(1<<(j&017))))
@ -1954,7 +1959,7 @@ finishio() {
} }
fprintf(cfile,"struct reginfo **reglist[] = {\n"); fprintf(cfile,"struct reginfo **reglist[] = {\n");
for (i=0;i<nprops;i++) { for (i=0;i<nprops;i++) {
fprintf(cfile,"\trlist%02d,\n",i); fprintf(cfile,"\trlist%d,\n",i);
} }
fprintf(cfile,"};\n"); fprintf(cfile,"};\n");
fprintf(cfile,"unsigned cc1 = %u;\n",cc1); fprintf(cfile,"unsigned cc1 = %u;\n",cc1);