Non-Berkeley Modifications to Terminfo

sources-request at genrad.UUCP sources-request at genrad.UUCP
Wed Jan 2 02:19:15 AEST 1985


From: root at ncoast  (Rich Garrett - Root)

I have spent the past week attempting to compile terminfo for our Model
16 running Xenix.  Catching the 4.2 dependencies was bad enough, but
we have the problem reported with PDP-11's, where the preprocessor couldn't
hack the number of #defines in term.h.  The following shar archive contains
a modified Makefile, a shell script `ifmkdef', and two header files,
term1.h and term2.h, which resolve the problem.  Compilation is quite
a bit slower, but at least it compiles.

The makefile modification changes the .c.o action to perform some fancy
footwork to change a #include "term.h" to two hidden (from cpp) references
to term?.h (one to term1.h, the other to term2.h), pass it through cpp,
unmask term1.h, cpp the source again, unmask term2.h, and compile.  The
shell script resolves a communications problem between the first and
second invocations of cpp, as term.h normally checks for #define FILE
to see if stdio has been loaded, but the first cpp run strips FILE so
we must re-add it.  It could be in makefile, but unless you've fixed
your make, it makes make die out -- and we don't have source, Microsoft
being what it is.

The only help I can offer on other 4.2 sneakies at present is to grep
the sources for SIGTSTP, FIONREAD, and TIOCGLTC; or am I the only non-
Berkeleyite crazy enough to try to compile this thing?  :-)

--bsa (..decvax!cwruecmp!ncoast!bsa)  Brandon Allbery

-----------------------------cut here--------------------------------------
: This is a shar archive.  Extract with sh not csh.
echo 'sh - term1.h'
sed 's/^X//' <<'________This_Is_The_END________' >term1.h
X/*
X**	term.h -- Definition of struct term
X*/
X
X#ifndef SGTTY
X#    include "curses.h"
X#endif
X
X#ifdef SINGLE
X#	define CUR _first_term.
X#else
X#	define CUR cur_term->
X#endif
X
X
X#define auto_left_margin               CUR Booleans[0]
X#define auto_right_margin              CUR Booleans[1]
X#define beehive_glitch                 CUR Booleans[2]
X#define ceol_standout_glitch           CUR Booleans[3]
X#define eat_newline_glitch             CUR Booleans[4]
X#define erase_overstrike               CUR Booleans[5]
X#define generic_type                   CUR Booleans[6]
X#define hard_copy                      CUR Booleans[7]
X#define has_meta_key                   CUR Booleans[8]
X#define has_status_line                CUR Booleans[9]
X#define insert_null_glitch             CUR Booleans[10]
X#define memory_above                   CUR Booleans[11]
X#define memory_below                   CUR Booleans[12]
X#define move_insert_mode               CUR Booleans[13]
X#define move_standout_mode             CUR Booleans[14]
X#define over_strike                    CUR Booleans[15]
X#define status_line_esc_ok             CUR Booleans[16]
X#define teleray_glitch                 CUR Booleans[17]
X#define tilde_glitch                   CUR Booleans[18]
X#define transparent_underline          CUR Booleans[19]
X#define xon_xoff                       CUR Booleans[20]
X#define columns                        CUR Numbers[0]
X#define init_tabs                      CUR Numbers[1]
X#define lines                          CUR Numbers[2]
X#define lines_of_memory                CUR Numbers[3]
X#define magic_cookie_glitch            CUR Numbers[4]
X#define padding_baud_rate              CUR Numbers[5]
X#define virtual_terminal               CUR Numbers[6]
X#define width_status_line              CUR Numbers[7]
X#define num_labels                     CUR Numbers[8]
X#define label_height                   CUR Numbers[9]
X#define label_width                    CUR Numbers[10]
X#define back_tab                       CUR Strings[0]
X#define bell                           CUR Strings[1]
X#define carriage_return                CUR Strings[2]
X#define change_scroll_region           CUR Strings[3]
X#define clear_all_tabs                 CUR Strings[4]
X#define clear_screen                   CUR Strings[5]
X#define clr_eol                        CUR Strings[6]
X#define clr_eos                        CUR Strings[7]
X#define column_address                 CUR Strings[8]
X#define command_character              CUR Strings[9]
X#define cursor_address                 CUR Strings[10]
X#define cursor_down                    CUR Strings[11]
X#define cursor_home                    CUR Strings[12]
X#define cursor_invisible               CUR Strings[13]
X#define cursor_left                    CUR Strings[14]
X#define cursor_mem_address             CUR Strings[15]
X#define cursor_normal                  CUR Strings[16]
X#define cursor_right                   CUR Strings[17]
X#define cursor_to_ll                   CUR Strings[18]
X#define cursor_up                      CUR Strings[19]
X#define cursor_visible                 CUR Strings[20]
X#define delete_character               CUR Strings[21]
X#define delete_line                    CUR Strings[22]
X#define dis_status_line                CUR Strings[23]
X#define down_half_line                 CUR Strings[24]
X#define enter_alt_charset_mode         CUR Strings[25]
X#define enter_blink_mode               CUR Strings[26]
X#define enter_bold_mode                CUR Strings[27]
X#define enter_ca_mode                  CUR Strings[28]
X#define enter_delete_mode              CUR Strings[29]
X#define enter_dim_mode                 CUR Strings[30]
X#define enter_insert_mode              CUR Strings[31]
X#define enter_secure_mode              CUR Strings[32]
X#define enter_protected_mode           CUR Strings[33]
X#define enter_reverse_mode             CUR Strings[34]
X#define enter_standout_mode            CUR Strings[35]
X#define enter_underline_mode           CUR Strings[36]
X#define erase_chars                    CUR Strings[37]
X#define exit_alt_charset_mode          CUR Strings[38]
X#define exit_attribute_mode            CUR Strings[39]
X#define exit_ca_mode                   CUR Strings[40]
X#define exit_delete_mode               CUR Strings[41]
X#define exit_insert_mode               CUR Strings[42]
X#define exit_standout_mode             CUR Strings[43]
X#define exit_underline_mode            CUR Strings[44]
X#define flash_screen                   CUR Strings[45]
X#define form_feed                      CUR Strings[46]
X#define from_status_line               CUR Strings[47]
X#define init_1string                   CUR Strings[48]
X#define init_2string                   CUR Strings[49]
X#define init_3string                   CUR Strings[50]
X#define init_file                      CUR Strings[51]
X#define insert_character               CUR Strings[52]
X#define insert_line                    CUR Strings[53]
X#define insert_padding                 CUR Strings[54]
X#define key_backspace                  CUR Strings[55]
X#define key_catab                      CUR Strings[56]
X#define key_clear                      CUR Strings[57]
X#define key_ctab                       CUR Strings[58]
X#define key_dc                         CUR Strings[59]
X#define key_dl                         CUR Strings[60]
X#define key_down                       CUR Strings[61]
X#define key_eic                        CUR Strings[62]
X#define key_eol                        CUR Strings[63]
X#define key_eos                        CUR Strings[64]
X#define key_f0                         CUR Strings[65]
X#define key_f1                         CUR Strings[66]
________This_Is_The_END________
echo 'sh - term2.h'
sed 's/^X//' <<'________This_Is_The_END________' >term2.h
X#define SGTTY struct sgttyb
X#define CUR _first_term.	/* if you #undef'd SINGLE, chenge this */

X#define key_f10                        CUR Strings[67]
X#define key_f2                         CUR Strings[68]
X#define key_f3                         CUR Strings[69]
X#define key_f4                         CUR Strings[70]
X#define key_f5                         CUR Strings[71]
X#define key_f6                         CUR Strings[72]
X#define key_f7                         CUR Strings[73]
X#define key_f8                         CUR Strings[74]
X#define key_f9                         CUR Strings[75]
X#define key_home                       CUR Strings[76]
X#define key_ic                         CUR Strings[77]
X#define key_il                         CUR Strings[78]
X#define key_left                       CUR Strings[79]
X#define key_ll                         CUR Strings[80]
X#define key_npage                      CUR Strings[81]
X#define key_ppage                      CUR Strings[82]
X#define key_right                      CUR Strings[83]
X#define key_sf                         CUR Strings[84]
X#define key_sr                         CUR Strings[85]
X#define key_stab                       CUR Strings[86]
X#define key_up                         CUR Strings[87]
X#define keypad_local                   CUR Strings[88]
X#define keypad_xmit                    CUR Strings[89]
X#define lab_f0                         CUR Strings[90]
X#define lab_f1                         CUR Strings[91]
X#define lab_f10                        CUR Strings[92]
X#define lab_f2                         CUR Strings[93]
X#define lab_f3                         CUR Strings[94]
X#define lab_f4                         CUR Strings[95]
X#define lab_f5                         CUR Strings[96]
X#define lab_f6                         CUR Strings[97]
X#define lab_f7                         CUR Strings[98]
X#define lab_f8                         CUR Strings[99]
X#define lab_f9                         CUR Strings[100]
X#define meta_off                       CUR Strings[101]
X#define meta_on                        CUR Strings[102]
X#define newline                        CUR Strings[103]
X#define pad_char                       CUR Strings[104]
X#define parm_dch                       CUR Strings[105]
X#define parm_delete_line               CUR Strings[106]
X#define parm_down_cursor               CUR Strings[107]
X#define parm_ich                       CUR Strings[108]
X#define parm_index                     CUR Strings[109]
X#define parm_insert_line               CUR Strings[110]
X#define parm_left_cursor               CUR Strings[111]
X#define parm_right_cursor              CUR Strings[112]
X#define parm_rindex                    CUR Strings[113]
X#define parm_up_cursor                 CUR Strings[114]
X#define pkey_key                       CUR Strings[115]
X#define pkey_local                     CUR Strings[116]
X#define pkey_xmit                      CUR Strings[117]
X#define print_screen                   CUR Strings[118]
X#define prtr_off                       CUR Strings[119]
X#define prtr_on                        CUR Strings[120]
X#define repeat_char                    CUR Strings[121]
X#define reset_1string                  CUR Strings[122]
X#define reset_2string                  CUR Strings[123]
X#define reset_3string                  CUR Strings[124]
X#define reset_file                     CUR Strings[125]
X#define restore_cursor                 CUR Strings[126]
X#define row_address                    CUR Strings[127]
X#define save_cursor                    CUR Strings[128]
X#define scroll_forward                 CUR Strings[129]
X#define scroll_reverse                 CUR Strings[130]
X#define set_attributes                 CUR Strings[131]
X#define set_tab                        CUR Strings[132]
X#define set_window                     CUR Strings[133]
X#define tab                            CUR Strings[134]
X#define to_status_line                 CUR Strings[135]
X#define underline_char                 CUR Strings[136]
X#define up_half_line                   CUR Strings[137]
X#define init_prog                      CUR Strings[138]
X#define key_a1                         CUR Strings[139]
X#define key_a3                         CUR Strings[140]
X#define key_b2                         CUR Strings[141]
X#define key_c1                         CUR Strings[142]
X#define key_c3                         CUR Strings[143]
X#define prtr_non                       CUR Strings[144]
X#define char_padding                   CUR Strings[145]
X#define acs_chars                      CUR Strings[146]
X#define plab_norm                      CUR Strings[147]
X
X
Xstruct term
X{
X   char	 *term_names;	/* offset in str_table of terminal names */
X   char	 *str_table;	/* pointer to string table */
X   short Filedes;	/* file description being written to */
X   SGTTY Ottyb,		/* original state of the terminal */
X	 Nttyb;		/* current state of the terminal */
X
X   char		 Booleans[21];
X   short	 Numbers[11];
X   char		 *Strings[148];
X};
X
Xstruct term	_first_term;
Xstruct term	*cur_term;
X
X#define BOOLCOUNT 21
X#define NUMCOUNT  11
X#define STRCOUNT  148
________This_Is_The_END________
echo 'sh - Makefile'
sed 's/^X//' <<'________This_Is_The_END________' >Makefile
X#*********************************************************************
X#                         COPYRIGHT NOTICE                           *
X#*********************************************************************
X#        This software is copyright (C) 1982 by Pavel Curtis         *
X#                                                                    *
X#        Permission is granted to reproduce and distribute           *
X#        this file by any means so long as no fee is charged         *
X#        above a nominal handling fee and so long as this            *
X#        notice is always included in the copies.                    *
X#                                                                    *
X#        Other rights are reserved except as explicitly granted      *
X#        by written permission of the author.                        *
X#                Pavel Curtis                                        *
X#                Computer Science Dept.                              *
X#                405 Upson Hall                                      *
X#                Cornell University                                  *
X#                Ithaca, NY 14853                                    *
X#                                                                    *
X#                Ph- (607) 256-4934                                  *
X#                                                                    *
X#                Pavel.Cornell at Udel-Relay   (ARPAnet)                *
X#                decvax!cornell!pavel       (UUCPnet)                *
X#********************************************************************/
X
X# RCSid: $Header:   RCS/Makefile.v  Revision 2.2  82/10/25  15:28:23  pavel  Exp$
X
XSRCDIR= /etc/term
XCFLAGS= -O -DSRCDIR='"$(SRCDIR)"'
XDFLAGS= -g -DTRACE -DSRCDIR='"$(SRCDIR)"'
X
XSRCS=	comp_main.c comp_hash.c comp_captab.c comp_scan.c comp_error.c \
X	comp_parse.c read_entry.c \
X	dump.c dump_names.c  \
X	lib_setup.c lib_fixterm.c lib_tparm.c lib_tputs.c \
X	lib_unctrl.c lib_raw.c lib_vidattr.c lib_trace.c lib_data.c \
X	lib_beep.c lib_doupdate.c lib_refresh.c lib_initscr.c lib_newwin.c \
X	lib_addch.c lib_addstr.c lib_scroll.c lib_clreol.c lib_touchwin.c \
X	lib_mvcur.c lib_delwin.c lib_endwin.c lib_clrbot.c lib_move.c \
X	lib_printw.c lib_scanw.c lib_erase.c lib_getch.c lib_options.c \
X	lib_box.c lib_clear.c lib_delch.c lib_deleteln.c lib_insch.c \
X	lib_insertln.c lib_getstr.c lib_mvwin.c lib_longname.c lib_tstp.c \
X	lib_newterm.c lib_set_term.c lib_overlay.c lib_scrreg.c
X
X#
X# Normal, optimised object files
X#
XLIBOBJS= lib_setup.o lib_fixterm.o lib_tparm.o read_entry.o lib_tputs.o \
X	lib_unctrl.o lib_raw.o lib_vidattr.o lib_trace.o lib_data.o lib_beep.o \
X	lib_doupdate.o lib_refresh.o lib_initscr.o lib_newwin.o lib_addch.o \
X	lib_addstr.o lib_scroll.o lib_clreol.o lib_touchwin.o lib_mvcur.o \
X	lib_delwin.o lib_endwin.o lib_clrbot.o lib_move.o lib_printw.o \
X	lib_scanw.o lib_erase.o lib_getch.o lib_options.o \
X	lib_box.o lib_clear.o lib_delch.o lib_deleteln.o lib_insch.o \
X	lib_insertln.o lib_getstr.o lib_mvwin.o lib_longname.o lib_tstp.o \
X	lib_newterm.o lib_set_term.o lib_overlay.o lib_scrreg.o
X
X#
X# Debugging (tracing) object files
X#
XDLIBOBJS= lib_setup.d lib_fixterm.d lib_tparm.d read_entry.d lib_tputs.d \
X	lib_unctrl.d lib_raw.d lib_vidattr.d lib_trace.d lib_data.d lib_beep.d \
X	lib_doupdate.d lib_refresh.d lib_initscr.d lib_newwin.d lib_addch.d \
X	lib_addstr.d lib_scroll.d lib_clreol.d lib_touchwin.d lib_mvcur.d \
X	lib_delwin.d lib_endwin.d lib_clrbot.d lib_move.d lib_printw.d \
X	lib_scanw.d lib_erase.d lib_getch.d lib_options.d \
X	lib_box.d lib_clear.d lib_delch.d lib_deleteln.d lib_insch.d \
X	lib_insertln.d lib_getstr.d lib_mvwin.d lib_longname.d lib_tstp.d \
X	lib_newterm.d lib_set_term.d lib_overlay.d lib_scrreg.d
X
X#
X# Profiled Optimised object files
X#
XPLIBOBJS= lib_setup.p lib_fixterm.p lib_tparm.p read_entry.p lib_tputs.p \
X	lib_unctrl.p lib_raw.p lib_vidattr.p lib_trace.p lib_data.p lib_beep.p \
X	lib_doupdate.p lib_refresh.p lib_initscr.p lib_newwin.p lib_addch.p \
X	lib_addstr.p lib_scroll.p lib_clreol.p lib_touchwin.p lib_mvcur.p \
X	lib_delwin.p lib_endwin.p lib_clrbot.p lib_move.p lib_printw.p \
X	lib_scanw.p lib_erase.p lib_getch.p lib_options.p \
X	lib_box.p lib_clear.p lib_delch.p lib_deleteln.p lib_insch.p \
X	lib_insertln.p lib_getstr.p lib_mvwin.p lib_longname.p lib_tstp.p \
X	lib_newterm.p lib_set_term.p lib_overlay.p lib_scrreg.p
X
XCOMPOBJS= comp_main.o comp_hash.o comp_captab.o comp_scan.o comp_error.o \
X	comp_parse.o read_entry.o
X
X.SUFFIXES: .d .p
X
X.c.d:
X	-mv $*.o $*.O
X	cc -c $(DFLAGS) $*.c
X	mv $*.o $*.d
X	-mv $*.O $*.o
X
X.c.p:
X	-mv $*.o $*.O
X	cc -pg -c $(CFLAGS) $*.c
X	mv $*.o $*.p
X	-mv $*.O $*.o
X
X.c.o:
X	sed 's/^\(#include[ 	]\)"term.h"/%(@)\1"$$.h"`%(#)\1"term2.h"/' <$*.c | tr '`' '\012' >$$.c
X	cc -P $(CFLAGS) $$.c
X	sh ifmkdef $$.c term1.h >$$.h
X	sed '/^#/d; s/^%(@)//' <$$.i >$$.c
X	cc -P $(CFLAGS) $$.c
X	sed 's/^%(#)//' <$$.i >$$.c
X	cc -c $(CFLAGS) $$.c
X	mv $$.o $*.o
X	rm $$.c $$.i
X
Xall:	compile dump lib dlib
X
Xinstall: all
X	sed -e 's/clude *"curses.h" *$$/clude <ncurses.h>/' term.h > /usr/include/term.h
X	sed -e 's/^#include *"terminfo.h" *$$/#include <terminfo.h>/' curses.h > /usr/include/ncurses.h
X	cp terminfo.h /usr/include/terminfo.h
X	cp unctrl.h /usr/include/unctrl.h
X	cp compile $(SRCDIR)/compile
X	cp dump $(SRCDIR)/dump
X	cp libcurses.a /usr/lib/libncurses.a
X	cp libdcurses.a /usr/lib/libdcurses.a
X	ranlib /usr/lib/libncurses.a
X	ranlib /usr/lib/libdcurses.a
X
Xlib:	libcurses.a	
Xlibcurses.a:	${LIBOBJS}
X	ar rv libcurses.a ${LIBOBJS}
X	ranlib libcurses.a
X
Xdlib:	libdcurses.a	
Xlibdcurses.a:	${DLIBOBJS}
X	ar rv libdcurses.a ${DLIBOBJS}
X	ranlib libdcurses.a
X
Xplib:	libpcurses.a	
Xlibpcurses.a:	${PLIBOBJS}
X	ar rv libpcurses.a ${PLIBOBJS}
X	ranlib libpcurses.a
X
Xcompile: ${COMPOBJS}
X	cc -o compile ${COMPOBJS}
X
Xdump: dump.o dump_names.o read_entry.o
X	cc -o dump dump.o dump_names.o read_entry.o
X
Xlint: ${SRCS}
X	lint ${DFLAGS} ${SRCS} > lint.out
X
Xterm.h: Caps MKterm.h.awk
X	awk -f MKterm.h.awk Caps > term.h
X
Xcomp_captab.c: Caps MKcaptab.awk
X	awk -f MKcaptab.awk Caps > comp_captab.c
X
Xdump.o: dump.c term.h compiler.h
X
Xdump_names.c: Caps MKnames.awk
X	awk -f MKnames.awk Caps
X	cat boolnames numnames strnames > dump_names.c
X	-rm -f boolnames numnames strnames
X
Xclean:
X	-rm -f *.[od] term.h comp_captab.c tags dump_names.c
X
Xtags:	*.c *.h
X	ctags *.c *.h
X
Xdepend:	${SRCS}
X	grep "^#include" ${SRCS} \
X		| sed 's/\([^:]*\).c:[^"]*"\([^"]*\)".*/\1.o: \2/' \
X		| sed '/#include/d' > makedep
X	echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
X	echo '$$r makedep' > eddep
X	echo '/^# DO NOT DELETE THIS LINE/+2,$$s/\.o/.d/' > eddep
X	echo '$$r makedep' > eddep
X	echo 'w' > eddep
X	cp Makefile Makefile.bak
X	ex - Makefile < eddep
X	rm makedep eddep
X	echo > Makefile
X	echo "# DEPENDENCIES MUST END AT END OF FILE" > Makefile
X	echo "# IF YOU PUT STUFF HERE, IT WILL GO AWAY" > Makefile
X	echo "# See make depend, above" > Makefile
X
X# DO NOT DELETE THIS LINE - make depend needs it
X
Xcomp_main.d: compiler.h
Xcomp_hash.d: compiler.h
Xcomp_hash.d: term.h
Xcomp_captab.d: compiler.h
Xcomp_captab.d: term.h
Xcomp_scan.d: compiler.h
Xcomp_error.d: compiler.h
Xcomp_parse.d: compiler.h
Xcomp_parse.d: term.h
Xcomp_parse.d: object.h
Xread_entry.d: term.h
Xread_entry.d: object.h
Xdump.d: compiler.h
Xdump.d: term.h
Xlib_setup.d: curses.h
Xlib_setup.d: curses.priv.h
Xlib_setup.d: term.h
Xlib_fixterm.d: curses.h
Xlib_fixterm.d: curses.priv.h
Xlib_fixterm.d: term.h
Xlib_tparm.d: curses.h
Xlib_tparm.d: curses.priv.h
Xlib_tparm.d: term.h
Xlib_tputs.d: curses.h
Xlib_tputs.d: curses.priv.h
Xlib_tputs.d: term.h
Xlib_raw.d: curses.h
Xlib_raw.d: curses.priv.h
Xlib_raw.d: term.h
Xlib_vidattr.d: curses.h
Xlib_vidattr.d: curses.priv.h
Xlib_vidattr.d: term.h
Xlib_trace.d: term.h
Xlib_trace.d: curses.h
Xlib_trace.d: curses.priv.h
Xlib_data.d: curses.priv.h
Xlib_data.d: curses.h
Xlib_data.d: term.h
Xlib_beep.d: curses.h
Xlib_beep.d: curses.priv.h
Xlib_beep.d: term.h
Xlib_doupdate.d: curses.h
Xlib_doupdate.d: curses.priv.h
Xlib_doupdate.d: term.h
Xlib_refresh.d: curses.h
Xlib_refresh.d: curses.priv.h
Xlib_initscr.d: curses.h
Xlib_initscr.d: curses.priv.h
Xlib_newwin.d: term.h
Xlib_newwin.d: curses.h
Xlib_newwin.d: curses.priv.h
Xlib_addch.d: curses.h
Xlib_addch.d: curses.priv.h
Xlib_addch.d: unctrl.h
Xlib_addstr.d: curses.h
Xlib_addstr.d: curses.priv.h
Xlib_scroll.d: curses.h
Xlib_scroll.d: curses.priv.h
Xlib_clreol.d: curses.h
Xlib_clreol.d: curses.priv.h
Xlib_touchwin.d: curses.h
Xlib_touchwin.d: curses.priv.h
Xlib_mvcur.d: term.h
Xlib_mvcur.d: curses.h
Xlib_mvcur.d: curses.priv.h
Xlib_delwin.d: curses.h
Xlib_delwin.d: curses.priv.h
Xlib_endwin.d: term.h
Xlib_endwin.d: curses.h
Xlib_endwin.d: curses.priv.h
Xlib_clrbot.d: curses.h
Xlib_clrbot.d: curses.priv.h
Xlib_move.d: curses.h
Xlib_move.d: curses.priv.h
Xlib_printw.d: curses.h
Xlib_printw.d: curses.priv.h
Xlib_scanw.d: curses.h
Xlib_scanw.d: curses.priv.h
Xlib_erase.d: curses.h
Xlib_erase.d: curses.priv.h
Xlib_getch.d: curses.h
Xlib_getch.d: curses.priv.h
Xlib_options.d: term.h
Xlib_options.d: curses.h
Xlib_options.d: curses.priv.h
Xlib_box.d: curses.h
Xlib_box.d: curses.priv.h
Xlib_clear.d: curses.h
Xlib_clear.d: curses.priv.h
Xlib_delch.d: curses.h
Xlib_delch.d: curses.priv.h
Xlib_delch.d: term.h
Xlib_deleteln.d: curses.h
Xlib_deleteln.d: curses.priv.h
Xlib_insch.d: curses.h
Xlib_insch.d: curses.priv.h
Xlib_insertln.d: curses.h
Xlib_insertln.d: curses.priv.h
Xlib_getstr.d: curses.h
Xlib_getstr.d: curses.priv.h
Xlib_getstr.d: unctrl.h
Xlib_mvwin.d: curses.h
Xlib_mvwin.d: curses.priv.h
Xlib_longname.d: curses.h
Xlib_longname.d: curses.priv.h
Xlib_tstp.d: term.h
Xlib_tstp.d: curses.h
Xlib_tstp.d: curses.priv.h
Xlib_newterm.d: curses.h
Xlib_newterm.d: term.h
Xlib_newterm.d: curses.priv.h
Xlib_set_term.d: curses.h
Xlib_set_term.d: curses.priv.h
Xlib_set_term.d: term.h
Xlib_overlay.d: curses.h
Xlib_overlay.d: curses.priv.h
Xlib_scrreg.d: curses.h
Xlib_scrreg.d: curses.priv.h
Xcomp_main.o: compiler.h
Xcomp_hash.o: compiler.h
Xcomp_hash.o: term.h
Xcomp_captab.o: compiler.h
Xcomp_captab.o: term.h
Xcomp_scan.o: compiler.h
Xcomp_error.o: compiler.h
Xcomp_parse.o: compiler.h
Xcomp_parse.o: term.h
Xcomp_parse.o: object.h
Xread_entry.o: term.h
Xread_entry.o: object.h
Xdump.o: compiler.h
Xdump.o: term.h
Xlib_setup.o: curses.h
Xlib_setup.o: curses.priv.h
Xlib_setup.o: term.h
Xlib_fixterm.o: curses.h
Xlib_fixterm.o: curses.priv.h
Xlib_fixterm.o: term.h
Xlib_tparm.o: curses.h
Xlib_tparm.o: curses.priv.h
Xlib_tparm.o: term.h
Xlib_tputs.o: curses.h
Xlib_tputs.o: curses.priv.h
Xlib_tputs.o: term.h
Xlib_raw.o: curses.h
Xlib_raw.o: curses.priv.h
Xlib_raw.o: term.h
Xlib_vidattr.o: curses.h
Xlib_vidattr.o: curses.priv.h
Xlib_vidattr.o: term.h
Xlib_trace.o: term.h
Xlib_trace.o: curses.h
Xlib_trace.o: curses.priv.h
Xlib_data.o: curses.priv.h
Xlib_data.o: curses.h
Xlib_data.o: term.h
Xlib_beep.o: curses.h
Xlib_beep.o: curses.priv.h
Xlib_beep.o: term.h
Xlib_doupdate.o: curses.h
Xlib_doupdate.o: curses.priv.h
Xlib_doupdate.o: term.h
Xlib_refresh.o: curses.h
Xlib_refresh.o: curses.priv.h
Xlib_initscr.o: curses.h
Xlib_initscr.o: curses.priv.h
Xlib_newwin.o: term.h
Xlib_newwin.o: curses.h
Xlib_newwin.o: curses.priv.h
Xlib_addch.o: curses.h
Xlib_addch.o: curses.priv.h
Xlib_addch.o: unctrl.h
Xlib_addstr.o: curses.h
Xlib_addstr.o: curses.priv.h
Xlib_scroll.o: curses.h
Xlib_scroll.o: curses.priv.h
Xlib_clreol.o: curses.h
Xlib_clreol.o: curses.priv.h
Xlib_touchwin.o: curses.h
Xlib_touchwin.o: curses.priv.h
Xlib_mvcur.o: term.h
Xlib_mvcur.o: curses.h
Xlib_mvcur.o: curses.priv.h
Xlib_delwin.o: curses.h
Xlib_delwin.o: curses.priv.h
Xlib_endwin.o: term.h
Xlib_endwin.o: curses.h
Xlib_endwin.o: curses.priv.h
Xlib_clrbot.o: curses.h
Xlib_clrbot.o: curses.priv.h
Xlib_move.o: curses.h
Xlib_move.o: curses.priv.h
Xlib_printw.o: curses.h
Xlib_printw.o: curses.priv.h
Xlib_scanw.o: curses.h
Xlib_scanw.o: curses.priv.h
Xlib_erase.o: curses.h
Xlib_erase.o: curses.priv.h
Xlib_getch.o: curses.h
Xlib_getch.o: curses.priv.h
Xlib_options.o: term.h
Xlib_options.o: curses.h
Xlib_options.o: curses.priv.h
Xlib_box.o: curses.h
Xlib_box.o: curses.priv.h
Xlib_clear.o: curses.h
Xlib_clear.o: curses.priv.h
Xlib_delch.o: curses.h
Xlib_delch.o: curses.priv.h
Xlib_delch.o: term.h
Xlib_deleteln.o: curses.h
Xlib_deleteln.o: curses.priv.h
Xlib_insch.o: curses.h
Xlib_insch.o: curses.priv.h
Xlib_insertln.o: curses.h
Xlib_insertln.o: curses.priv.h
Xlib_getstr.o: curses.h
Xlib_getstr.o: curses.priv.h
Xlib_getstr.o: unctrl.h
Xlib_mvwin.o: curses.h
Xlib_mvwin.o: curses.priv.h
Xlib_longname.o: curses.h
Xlib_longname.o: curses.priv.h
Xlib_tstp.o: term.h
Xlib_tstp.o: curses.h
Xlib_tstp.o: curses.priv.h
Xlib_newterm.o: curses.h
Xlib_newterm.o: term.h
Xlib_newterm.o: curses.priv.h
Xlib_set_term.o: curses.h
Xlib_set_term.o: curses.priv.h
Xlib_set_term.o: term.h
Xlib_overlay.o: curses.h
Xlib_overlay.o: curses.priv.h
Xlib_scrreg.o: curses.h
Xlib_scrreg.o: curses.priv.h
X
X# DEPENDENCIES MUST END AT END OF FILE
X# IF YOU PUT STUFF HERE, IT WILL GO AWAY
X# See make depend, above
________This_Is_The_END________
echo 'sh - ifmkdef'
sed 's/^X//' <<'________This_Is_The_END________' >ifmkdef
Xif grep -s 'struct sgttyb' $1
Xthen cat $2
Xelse echo '#define FILE struct _iobuf'; cat $2
Xfi
Xexit 0
________This_Is_The_END________
exit 0



More information about the Mod.sources mailing list