aboutsummaryrefslogtreecommitdiff
path: root/contrib/ncurses/include/MKterm.h.awk.in
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ncurses/include/MKterm.h.awk.in')
-rw-r--r--contrib/ncurses/include/MKterm.h.awk.in100
1 files changed, 51 insertions, 49 deletions
diff --git a/contrib/ncurses/include/MKterm.h.awk.in b/contrib/ncurses/include/MKterm.h.awk.in
index e839cf4ac6a0..efca636fb32e 100644
--- a/contrib/ncurses/include/MKterm.h.awk.in
+++ b/contrib/ncurses/include/MKterm.h.awk.in
@@ -33,18 +33,20 @@ BEGIN {
print "/* and: Eric S. Raymond <esr@snark.thyrsus.com> */"
print "/****************************************************************************/"
print ""
- print "/* $Id: MKterm.h.awk.in,v 1.37 2000/03/12 02:40:07 tom Exp $ */"
+ print "/* $Id: MKterm.h.awk.in,v 1.39 2001/03/24 21:53:32 tom Exp $ */"
print ""
print "/*"
print "** term.h -- Definition of struct term"
print "*/"
print ""
- print "#ifndef _NCU_TERM_H"
- print "#define _NCU_TERM_H 1"
+ print "#ifndef NCURSES_TERM_H_incl"
+ print "#define NCURSES_TERM_H_incl 1"
print ""
print "#undef NCURSES_VERSION"
print "#define NCURSES_VERSION \"@NCURSES_MAJOR@.@NCURSES_MINOR@\""
print ""
+ print "#include <ncurses_dll.h>"
+ print ""
print "#ifdef __cplusplus"
print "extern \"C\" {"
print "#endif"
@@ -232,7 +234,7 @@ END {
print " int _baudrate; /* used to compute padding */"
print "} TERMINAL;"
print ""
- print "extern TERMINAL *cur_term;"
+ print "extern NCURSES_EXPORT_VAR(TERMINAL *) cur_term;"
print ""
print "#if BROKEN_LINKER"
print "#define boolnames _nc_boolnames()"
@@ -245,71 +247,71 @@ END {
print "#define strcodes _nc_strcodes()"
print "#define strfnames _nc_strfnames()"
print ""
- print "extern NCURSES_CONST char * const *_nc_boolnames(void);"
- print "extern NCURSES_CONST char * const *_nc_boolcodes(void);"
- print "extern NCURSES_CONST char * const *_nc_boolfnames(void);"
- print "extern NCURSES_CONST char * const *_nc_numnames(void);"
- print "extern NCURSES_CONST char * const *_nc_numcodes(void);"
- print "extern NCURSES_CONST char * const *_nc_numfnames(void);"
- print "extern NCURSES_CONST char * const *_nc_strnames(void);"
- print "extern NCURSES_CONST char * const *_nc_strcodes(void);"
- print "extern NCURSES_CONST char * const *_nc_strfnames(void);"
+ print "extern NCURSES_EXPORT(NCURSES_CONST char * const *) _nc_boolnames (void);"
+ print "extern NCURSES_EXPORT(NCURSES_CONST char * const *) _nc_boolcodes (void);"
+ print "extern NCURSES_EXPORT(NCURSES_CONST char * const *) _nc_boolfnames (void);"
+ print "extern NCURSES_EXPORT(NCURSES_CONST char * const *) _nc_numnames (void);"
+ print "extern NCURSES_EXPORT(NCURSES_CONST char * const *) _nc_numcodes (void);"
+ print "extern NCURSES_EXPORT(NCURSES_CONST char * const *) _nc_numfnames (void);"
+ print "extern NCURSES_EXPORT(NCURSES_CONST char * const *) _nc_strnames (void);"
+ print "extern NCURSES_EXPORT(NCURSES_CONST char * const *) _nc_strcodes (void);"
+ print "extern NCURSES_EXPORT(NCURSES_CONST char * const *) _nc_strfnames (void);"
print ""
print "#else"
print ""
- print "extern NCURSES_CONST char *const boolnames[];"
- print "extern NCURSES_CONST char *const boolcodes[];"
- print "extern NCURSES_CONST char *const boolfnames[];"
- print "extern NCURSES_CONST char *const numnames[];"
- print "extern NCURSES_CONST char *const numcodes[];"
- print "extern NCURSES_CONST char *const numfnames[];"
- print "extern NCURSES_CONST char *const strnames[];"
- print "extern NCURSES_CONST char *const strcodes[];"
- print "extern NCURSES_CONST char *const strfnames[];"
+ print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolnames[];"
+ print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolcodes[];"
+ print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolfnames[];"
+ print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) numnames[];"
+ print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) numcodes[];"
+ print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) numfnames[];"
+ print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strnames[];"
+ print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strcodes[];"
+ print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strfnames[];"
print ""
print "#endif"
print ""
print "/* internals */"
- print "extern int _nc_set_tty_mode(TTY *buf);"
- print "extern int _nc_get_tty_mode(TTY *buf);"
- print "extern int _nc_read_entry(const char * const, char * const, TERMTYPE *const);"
- print "extern int _nc_read_file_entry(const char *const, TERMTYPE *);"
- print "extern char *_nc_first_name(const char *const);"
- print "extern int _nc_name_match(const char *const, const char *const, const char *const);"
- print "extern int _nc_read_termcap_entry(const char *const, TERMTYPE *const);"
- print "extern const TERMTYPE *_nc_fallback(const char *);"
+ print "extern NCURSES_EXPORT(int) _nc_set_tty_mode (TTY *buf);"
+ print "extern NCURSES_EXPORT(int) _nc_get_tty_mode (TTY *buf);"
+ print "extern NCURSES_EXPORT(int) _nc_read_entry (const char * const, char * const, TERMTYPE *const);"
+ print "extern NCURSES_EXPORT(int) _nc_read_file_entry (const char *const, TERMTYPE *);"
+ print "extern NCURSES_EXPORT(char *) _nc_first_name (const char *const);"
+ print "extern NCURSES_EXPORT(int) _nc_name_match (const char *const, const char *const, const char *const);"
+ print "extern NCURSES_EXPORT(int) _nc_read_termcap_entry (const char *const, TERMTYPE *const);"
+ print "extern NCURSES_EXPORT(const TERMTYPE *) _nc_fallback (const char *);"
print ""
print "/* entry points */"
- print "extern TERMINAL *set_curterm(TERMINAL *);"
- print "extern int del_curterm(TERMINAL *);"
+ print "extern NCURSES_EXPORT(TERMINAL *) set_curterm (TERMINAL *);"
+ print "extern NCURSES_EXPORT(int) del_curterm (TERMINAL *);"
print ""
print "/* miscellaneous entry points */"
- print "extern int restartterm(NCURSES_CONST char *, int, int *);"
- print "extern int setupterm(NCURSES_CONST char *,int,int *);"
+ print "extern NCURSES_EXPORT(int) restartterm (NCURSES_CONST char *, int, int *);"
+ print "extern NCURSES_EXPORT(int) setupterm (NCURSES_CONST char *,int,int *);"
print ""
print "/* terminfo entry points, also declared in curses.h */"
print "#if !defined(__NCURSES_H)"
- print "extern char *tigetstr(NCURSES_CONST char *);"
- print "extern char *tparm(NCURSES_CONST char *, ...);"
- print "extern char ttytype[];"
- print "extern int putp(const char *);"
- print "extern int tigetflag(NCURSES_CONST char *);"
- print "extern int tigetnum(NCURSES_CONST char *);"
+ print "extern NCURSES_EXPORT(char *) tigetstr (NCURSES_CONST char *);"
+ print "extern NCURSES_EXPORT(char *) tparm (NCURSES_CONST char *, ...);"
+ print "extern NCURSES_EXPORT_VAR(char) ttytype[];"
+ print "extern NCURSES_EXPORT(int) putp (const char *);"
+ print "extern NCURSES_EXPORT(int) tigetflag (NCURSES_CONST char *);"
+ print "extern NCURSES_EXPORT(int) tigetnum (NCURSES_CONST char *);"
print "#endif /* __NCURSES_H */"
print ""
print "/* termcap database emulation (XPG4 uses const only for 2nd param of tgetent) */"
- print "#if !defined(_NCU_TERMCAP_H)"
- print "extern char *tgetstr(NCURSES_CONST char *, char **);"
- print "extern char *tgoto(const char *, int, int);"
- print "extern int tgetent(char *, const char *);"
- print "extern int tgetflag(NCURSES_CONST char *);"
- print "extern int tgetnum(NCURSES_CONST char *);"
- print "extern int tputs(const char *, int, int (*)(int));"
- print "#endif /* _NCU_TERMCAP_H */"
+ print "#if !defined(NCURSES_TERMCAP_H_incl)"
+ print "extern NCURSES_EXPORT(char *) tgetstr (NCURSES_CONST char *, char **);"
+ print "extern NCURSES_EXPORT(char *) tgoto (const char *, int, int);"
+ print "extern NCURSES_EXPORT(int) tgetent (char *, const char *);"
+ print "extern NCURSES_EXPORT(int) tgetflag (NCURSES_CONST char *);"
+ print "extern NCURSES_EXPORT(int) tgetnum (NCURSES_CONST char *);"
+ print "extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int));"
+ print "#endif /* NCURSES_TERMCAP_H_incl */"
print ""
print "#ifdef __cplusplus"
print "}"
print "#endif"
print ""
- print "#endif /* _NCU_TERM_H */"
+ print "#endif /* NCURSES_TERM_H_incl */"
}