/* (void) pass3(Line *ttl) ; Copyright (c) 1992 by CRC */ #include "creatdct.h" /* Forward references */ static void p3_header() ; void pass3(ttl) Line *ttl ; { Line line ; p3_header(ttl) ; if (options.dct_only) return ; (void) getnbline(&line) ; do { printf("%s\n",line.s) ; } while(getdtaline(&line) != EndOfFile) ; } /* ------------------------------------------------------------------------ */ static void p3_header(ttl) Line *ttl ; { int i ; char tok[MAXWIDTH] ; printf("dictionary") ; if (options.dct_only) { printf(" using %s",filename) ; if (!haschar(filename,'.')) printf(".") ; } printf(" {\n") ; printf("*\n* This file was created by %s from %s.\n",progname,filename); if (options.dct_only) { printf( "* Type \"infile using in %d/l\" to read the data.\n", first_dta_line_no) ; } else printf( "* Type \"infile using \" to read the data.\n") ; printf("*\n") ; if (title_trouble) { printf("\ * Note from %s: I had trouble lining up the titles against the data.\n", progname) ; printf("\ * Due to blanks in the titles, it appeared that there were more columns than\n" ) ; printf("\ * columns in the data. I finally gave up and just used the parts of the\n" ) ; printf("\ * headers that were directly above data. Sorry.\n*\n") ; } for (i=0;i