Home | History | Annotate | Download | only in join

Lines Matching defs:LINE

70 	char *line;		/* line */
71 u_long linealloc; /* line allocated count */
72 char **fields; /* line field(s) */
73 u_long fieldcnt; /* line field(s) count */
74 u_long fieldalloc; /* line field(s) allocated count */
75 } LINE;
78 static LINE noline = {nolineline, 0, 0, 0, 0}; /* arg for outfield if no line to output */
86 LINE *set; /* set of lines with same field */
87 u_long pushback; /* line on the stack */
110 static int cmp(LINE *, u_long, LINE *, u_long);
115 static void outfield(LINE *, u_long);
116 static void outoneline(INPUT *, LINE *);
117 static void outtwoline(INPUT *, LINE *, INPUT *, LINE *);
302 LINE *lp;
303 LINE tmp;
315 * If we're out of space to hold line structures, allocate
325 if (reallocarr(&F->set, nsize, sizeof(LINE)) != 0)
329 (F->setalloc - cnt) * sizeof(LINE));
333 * Get any pushed back line, else get the next line. Allocate
334 * space as necessary. If taking the line from the stack swap
358 if ((n = realloc(lp->line,
361 lp->line = n;
364 memmove(lp->line, bp, len);
368 lp->line[len - 1] = '\0';
370 lp->line[len] = '\0';
371 bp = lp->line;
373 /* Split the line into fields, allocate space as necessary. */
400 cmp(LINE *lp1, u_long fieldno1, LINE *lp2, u_long fieldno2)
431 outoneline(INPUT *F, LINE *lp)
436 * Output a single line from one of the files, according to the
457 outtwoline(INPUT *F1, LINE *lp1, INPUT *F2, LINE *lp2)
488 outfield(LINE *lp, u_long fieldno)
556 * on the command line. (Well, we could reallocate