Lines Matching defs:record
37 char *record;
49 int donerec; /* 1 = record is valid (no flds have changed) */
60 if ( (record = (char *) malloc(n)) == NULL
66 fldtab[0]->sval = record;
109 int getrec(char **pbuf, int *pbufsize, int isrecord) /* get next input record */
110 { /* note: cares whether buf == record */
150 if (c != 0 || buf[0] != '\0') { /* normal record */
154 fldtab[0]->sval = buf; /* buf == record */
187 int readrec(char **pbuf, int *pbufsize, FILE *inf) /* read one record into buf */
208 FATAL("input record `%.30s...' too long", buf);
216 FATAL("input record `%.30s...' too long", buf);
221 FATAL("input record `%.30s...' too long", buf);
263 void fldbld(void) /* create fields from current record */
347 FATAL("record `%.30s...' has too many fields; can't happen", r);
348 cleanfld(i+1, lastfld); /* clean out junk from previous record */
471 r = record;
474 if (!adjbuf(&record, &recsize, 1+strlen(p)+r-record, recsize, &r, "recbld 1"))
475 FATAL("created $0 `%.30s...' too long", record);
479 if (!adjbuf(&record, &recsize, 2+strlen(*OFS)+r-record, recsize, &r, "recbld 2"))
480 FATAL("created $0 `%.30s...' too long", record);
485 if (!adjbuf(&record, &recsize, 2+r-record, recsize, &r, "recbld 3"))
486 FATAL("built giant record `%.30s...'", record);
493 fldtab[0]->sval = record;
496 dprintf( ("recbld = |%s|\n", record) );
597 fprintf(stderr, " input record number %d", (int) (*FNR));