- tile2x11 would not build because drawing.c now depended on strcmpi which was (via STRNCMPI not being defined) defined to strncmpi which is implemented in hacklib.c which needs panic which is defined in... I gave up on tracking down all the loose ends and changed the strcmpi to strcmp, which means the handling is case sensitive, but it avoids a bunch of changes to the way the util/Makefile. - the symhandling changes introduced a chicken and the egg problem for ASCIIGRAPH on Unix platforms, which was getting the defn from tcap.h but that does not get included earlier enough nor often enough. I added a defn to unixconf.h to mimic ntconf.h, since ASCIIGRAPH is normally defined on Unix. - options.c included an unused decl for a function named graphics_opts - Unix Makefile was not installing "symbols". I'm assuming this isn't supposed to get the DLB treatment.
58 lines
1.6 KiB
C
58 lines
1.6 KiB
C
/* SCCS Id: @(#)tcap.h 3.5 1992/10/21 */
|
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1989. */
|
|
/* NetHack may be freely redistributed. See license for details. */
|
|
|
|
/* not named termcap.h because it may conflict with a system header */
|
|
|
|
#ifndef TCAP_H
|
|
#define TCAP_H
|
|
|
|
#ifndef MICRO
|
|
# define TERMLIB /* include termcap code */
|
|
#endif
|
|
|
|
/* might display need graphics code? */
|
|
#if !defined(AMIGA) && !defined(TOS) && !defined(MAC) && !defined(ASCIIGRAPH)
|
|
# if defined(TERMLIB) || defined(OS2) || defined(MSDOS)
|
|
# define ASCIIGRAPH
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef DECL_H
|
|
extern struct tc_gbl_data { /* also declared in decl.h; defined in decl.c */
|
|
char *tc_AS, *tc_AE; /* graphics start and end (tty font swapping) */
|
|
int tc_LI, tc_CO; /* lines and columns */
|
|
} tc_gbl_data;
|
|
#define AS tc_gbl_data.tc_AS
|
|
#define AE tc_gbl_data.tc_AE
|
|
#define LI tc_gbl_data.tc_LI
|
|
#define CO tc_gbl_data.tc_CO
|
|
#endif
|
|
|
|
extern struct tc_lcl_data { /* defined and set up in termcap.c */
|
|
char *tc_CM, *tc_ND, *tc_CD;
|
|
char *tc_HI, *tc_HE, *tc_US, *tc_UE;
|
|
boolean tc_ul_hack;
|
|
} tc_lcl_data;
|
|
/* some curses.h declare CM etc. */
|
|
#define nh_CM tc_lcl_data.tc_CM
|
|
#define nh_ND tc_lcl_data.tc_ND
|
|
#define nh_CD tc_lcl_data.tc_CD
|
|
#define nh_HI tc_lcl_data.tc_HI
|
|
#define nh_HE tc_lcl_data.tc_HE
|
|
#define nh_US tc_lcl_data.tc_US
|
|
#define nh_UE tc_lcl_data.tc_UE
|
|
#define ul_hack tc_lcl_data.tc_ul_hack
|
|
|
|
extern short ospeed; /* set up in termcap.c */
|
|
|
|
#ifdef TEXTCOLOR
|
|
# ifdef TOS
|
|
extern const char *hilites[CLR_MAX];
|
|
# else
|
|
extern NEARDATA char *hilites[CLR_MAX];
|
|
# endif
|
|
#endif
|
|
|
|
#endif /* TCAP_H */
|