|
|
1.1 ! root 1: /* ! 2: * Fix up sorted document from tabbld ! 3: */ ! 4: #include <stdio.h> ! 5: ! 6: main() ! 7: { ! 8: char *strchr(); ! 9: char buf[256]; ! 10: char opc[10]; ! 11: int lineno, gen, lgen; ! 12: ! 13: lgen = 2; /* nogen */ ! 14: while (NULL != gets(buf)) { ! 15: sscanf(buf, "%s %d %d!", opc, &lineno, &gen); ! 16: if ((1 != gen) && /* not part of a general op */ ! 17: ((1 == lgen) || /* previous was part of general */ ! 18: (0 == gen))) /* start of general */ ! 19: printf(".sp \\n(pDu\n"); ! 20: ! 21: lgen = gen; ! 22: puts(strchr(buf, '!') + 1); ! 23: } ! 24: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.