Generate octal char constants instead of ints for LLsets
authorceriel <none@none>
Tue, 12 Apr 1994 13:53:38 +0000 (13:53 +0000)
committerceriel <none@none>
Tue, 12 Apr 1994 13:53:38 +0000 (13:53 +0000)
util/LLgen/src/gencode.c

index 23c7001..ed4a746 100644 (file)
@@ -332,7 +332,7 @@ prset(p) p_set p; {
        for (;;) {
                i = (unsigned) *p++;
                for (k = 0; k < sizeof(int); k++) {
-                       fprintf(fpars,"0%o,",(int)(i & 0377));
+                       fprintf(fpars,"'\\%o',",(int)(i & 0377));
                        i >>= 8;
                        if (--j == 0) {
                                fputs("\n",fpars);