=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tic/dump_entry.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- src/usr.bin/tic/dump_entry.c 2000/01/09 05:06:02 1.13 +++ src/usr.bin/tic/dump_entry.c 2000/03/13 23:53:41 1.14 @@ -1,4 +1,4 @@ -/* $OpenBSD: dump_entry.c,v 1.13 2000/01/09 05:06:02 millert Exp $ */ +/* $OpenBSD: dump_entry.c,v 1.14 2000/03/13 23:53:41 millert Exp $ */ /**************************************************************************** * Copyright (c) 1998-2000 Free Software Foundation, Inc. * @@ -40,7 +40,7 @@ #include /* this C file is generated */ #include /* so is this */ -MODULE_ID("$From: dump_entry.c,v 1.45 2000/01/08 22:19:05 Todd.Miller Exp $") +MODULE_ID("$From: dump_entry.c,v 1.48 2000/03/12 02:33:01 tom Exp $") #define INDENT 8 #define DISCARD(string) string = ABSENT_STRING @@ -249,7 +249,6 @@ } static void set_obsolete_termcaps(TERMTYPE * tp); -static void repair_acsc(TERMTYPE * tp); /* is this the index of a function key string? */ #define FNKEY(i) (((i)<= 65 && (i)>= 75) || ((i)<= 216 && (i)>= 268)) @@ -566,7 +565,6 @@ if (len & 1) len++; - repair_acsc(tterm); for_each_string(j, tterm) { i = StrIndirect(j); name = ExtStrname(tterm, i, str_names); @@ -824,13 +822,13 @@ } void -compare_entry(void (*hook) (int t, int i, const char *name), TERMTYPE * tp GCC_UNUSED) +compare_entry(void (*hook) (int t, int i, const char *name), TERMTYPE * tp GCC_UNUSED, bool quiet) /* compare two entries */ { int i, j; NCURSES_CONST char *name; - (void) fputs(" comparing booleans.\n", stdout); + if (!quiet) fputs(" comparing booleans.\n", stdout); for_each_boolean(j, tp) { i = BoolIndirect(j); name = ExtBoolname(tp, i, bool_names); @@ -838,10 +836,10 @@ if (isObsolete(outform, name)) continue; - (*hook) (BOOLEAN, i, name); + (*hook) (CMP_BOOLEAN, i, name); } - (void) fputs(" comparing numbers.\n", stdout); + if (!quiet) fputs(" comparing numbers.\n", stdout); for_each_number(j, tp) { i = NumIndirect(j); name = ExtNumname(tp, i, num_names); @@ -849,10 +847,10 @@ if (isObsolete(outform, name)) continue; - (*hook) (NUMBER, i, name); + (*hook) (CMP_NUMBER, i, name); } - (void) fputs(" comparing strings.\n", stdout); + if (!quiet) fputs(" comparing strings.\n", stdout); for_each_string(j, tp) { i = StrIndirect(j); name = ExtStrname(tp, i, str_names); @@ -860,8 +858,12 @@ if (isObsolete(outform, name)) continue; - (*hook) (STRING, i, name); + (*hook) (CMP_STRING, i, name); } + + /* (void) fputs(" comparing use entries.\n", stdout); */ + (*hook) (CMP_USE, 0, "use"); + } #define NOTSET(s) ((s) == 0) @@ -884,7 +886,7 @@ * Convert an alternate-character-set string to canonical form: sorted and * unique. */ -static void +void repair_acsc(TERMTYPE * tp) { if (VALID_STRING(acs_chars)) {