| 742 | } |
| 743 | |
| 744 | void output_ctable() |
| 745 | { |
| 746 | register int i; |
| 747 | register int j; |
| 748 | |
| 749 | if (!rflag) |
| 750 | fprintf(output_file, "static "); |
| 751 | fprintf(output_file, "int yyctable[] = {%39d,", conflicts ? |
| 752 | conflicts[0] : 0); |
| 753 | |
| 754 | j = 10; |
| 755 | for (i = 1; i < nconflicts; i++) |
| 756 | { |
| 757 | if (j >= 10) |
| 758 | { |
| 759 | if (!rflag) ++outline; |
| 760 | putc('\n', output_file); |
| 761 | j = 1; |
| 762 | } |
| 763 | else |
| 764 | ++j; |
| 765 | |
| 766 | fprintf(output_file, "%5d,", conflicts[i]); |
| 767 | } |
| 768 | if (!rflag) outline += 2; |
| 769 | fprintf(output_file, "\n};\n"); |
| 770 | if (conflicts) |
| 771 | FREE(conflicts); |
| 772 | } |
| 773 | |
| 774 | |
| 775 | int is_C_identifier(char *name) |
no test coverage detected