X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Ftic.c;h=fc77b34445ff84bf7ceb0411e251231a2435d803;hp=474e93d8edf2dc5d53eb2be09b2d7c9e6f0936dc;hb=HEAD;hpb=7e062bb2764a87d98073a90ee65a234a2679f9c1 diff --git a/progs/tic.c b/progs/tic.c index 474e93d8..fc77b344 100644 --- a/progs/tic.c +++ b/progs/tic.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright 2018-2022,2023 Thomas E. Dickey * + * Copyright 2018-2023,2024 Thomas E. Dickey * * Copyright 1998-2017,2018 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * @@ -49,7 +49,7 @@ #include #include -MODULE_ID("$Id: tic.c,v 1.323 2023/09/30 21:17:23 Branden.Robinson Exp $") +MODULE_ID("$Id: tic.c,v 1.325 2024/03/02 19:33:22 tom Exp $") #define STDIN_NAME "" @@ -704,7 +704,7 @@ main(int argc, char *argv[]) bool forceresolve = FALSE; /* force resolution */ bool limited = TRUE; char *tversion = (char *) NULL; - const char *source_file = "terminfo"; + const char *source_file; char *outdir = (char *) NULL; bool check_only = FALSE; bool suppress_untranslatable = FALSE; @@ -3149,6 +3149,7 @@ guess_ANSI_VTxx(TERMTYPE2 *tp) * In particular, any ECMA-48 terminal should support these, though the details * for u9 are implementation dependent. */ +#if defined(user6) && defined(user7) && defined(user8) && defined(user9) static void check_user_6789(TERMTYPE2 *tp) { @@ -3184,6 +3185,9 @@ check_user_6789(TERMTYPE2 *tp) break; } } +#else +#define check_user_6789(tp) /* nothing */ +#endif /* other sanity-checks (things that we don't want in the normal * logic that reads a terminfo entry)