static struct line uni_blank;
static void
-usage (status)
- int status;
+usage (int status)
{
if (status != 0)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
}
static void
-ADD_FIELD (line, field, len)
- struct line *line;
- const char *field;
- size_t len;
+ADD_FIELD (struct line *line, const char *field, size_t len)
{
if (line->nfields >= line->nfields_allocated)
{
/* Fill in the `fields' structure in LINE. */
static void
-xfields (line)
- struct line *line;
+xfields (struct line *line)
{
int i;
register char *ptr, *lim;
Return 0 if EOF, 1 otherwise. */
static int
-get_line (fp, line)
- FILE *fp;
- struct line *line;
+get_line (FILE *fp, struct line *line)
{
static int linesize = 80;
int c, i;
}
static void
-freeline (line)
- struct line *line;
+freeline (struct line *line)
{
free ((char *) line->fields);
free (line->beg);
}
static void
-initseq (seq)
- struct seq *seq;
+initseq (struct seq *seq)
{
seq->count = 0;
seq->alloc = 1;
/* Read a line from FP and add it to SEQ. Return 0 if EOF, 1 otherwise. */
static int
-getseq (fp, seq)
- FILE *fp;
- struct seq *seq;
+getseq (FILE *fp, struct seq *seq)
{
if (seq->count == seq->alloc)
{
}
static void
-delseq (seq)
- struct seq *seq;
+delseq (struct seq *seq)
{
int i;
for (i = 0; i < seq->count; i++)
>0 if it compares greater; 0 if it compares equal. */
static int
-keycmp (line1, line2)
- struct line *line1;
- struct line *line2;
+keycmp (struct line *line1, struct line *line2)
{
const char *beg1, *beg2; /* Start of field to compare in each file. */
int len1, len2; /* Length of fields to compare. */
`empty_filler' if it is nonempty. */
static void
-prfield (n, line)
- int n;
- struct line *line;
+prfield (int n, struct line *line)
{
int len;
/* Print the join of LINE1 and LINE2. */
static void
-prjoin (line1, line2)
- struct line *line1;
- struct line *line2;
+prjoin (struct line *line1, struct line *line2)
{
if (outlist)
{
unless either argument is invalid; then just return 0. */
static int
-add_field (file, field)
- int file;
- int field;
+add_field (int file, int field)
{
struct outlist *o;
Return the number of fields added. */
static int
-add_field_list (str)
- char *str;
+add_field_list (char *str)
{
int added = 0;
int file = -1, field = -1;
/* Create a blank line with COUNT fields separated by tabs. */
void
-make_blank (blank, count)
- struct line *blank;
- int count;
+make_blank (struct line *blank, int count)
{
int i;
blank->nfields = count;
}
void
-main (argc, argv)
- int argc;
- char *argv[];
+main (int argc, char **argv)
{
char *names[2];
FILE *fp1, *fp2;