~ubuntu-branches/debian/sid/ncurses/sid-200908151540

« back to all changes in this revision

Viewing changes to include/MKterm.h.awk.in

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-05-24 15:13:01 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090524151301-uixgxq2zonfov2nr
Tags: 5.7+20090523-1
MergingĀ upstreamĀ versionĀ 5.7+20090523.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# vile:awkmode
2
2
BEGIN           {
3
3
                    print  "/****************************************************************************"
4
 
                    print  " * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *"
 
4
                    print  " * Copyright (c) 1998-2008,2009 Free Software Foundation, Inc.              *"
5
5
                    print  " *                                                                          *"
6
6
                    print  " * Permission is hereby granted, free of charge, to any person obtaining a  *"
7
7
                    print  " * copy of this software and associated documentation files (the            *"
34
34
                    print  "/*    and: Thomas E. Dickey                        1995-on                  */"
35
35
                    print  "/****************************************************************************/"
36
36
                    print  ""
37
 
                    print  "/* $Id: MKterm.h.awk.in,v 1.50 2008/05/24 23:13:59 tom Exp $ */"
 
37
                    print  "/* $Id: MKterm.h.awk.in,v 1.57 2009/05/09 15:54:50 tom Exp $ */"
38
38
                    print  ""
39
39
                    print  "/*"
40
40
                    print  "**  term.h -- Definition of struct term"
130
130
                    print  ""
131
131
                    print  "#else /* !HAVE_TERMIO_H */"
132
132
                    print  ""
 
133
                    print  "#if __MINGW32__"
 
134
                    print  "#  include <ncurses_mingw.h>"
 
135
                    print  "#  define TTY struct termios"
 
136
                    print  "#else"
133
137
                    print  "#undef TERMIOS"
134
138
                    print  "#include <sgtty.h>"
135
139
                    print  "#include <sys/ioctl.h>"
136
140
                    print  "#define TTY struct sgttyb"
137
 
                    print  ""
 
141
                    print  "#endif /* MINGW32 */"
138
142
                    print  "#endif /* HAVE_TERMIO_H */"
139
143
                    print  ""
140
144
                    print  "#endif /* HAVE_TERMIOS_H */"
228
232
                        print  "    char *      _termname;      /* used for termname() */"
229
233
                        print  "} TERMINAL;"
230
234
                        print  ""
 
235
                        print  "#if @BROKEN_LINKER@ && !@cf_cv_enable_reentrant@"
 
236
                        print  "extern NCURSES_EXPORT_VAR(TERMINAL *) cur_term;"
 
237
                        print  "#elif @cf_cv_enable_reentrant@"
 
238
                        print  "NCURSES_WRAPPED_VAR(TERMINAL *, cur_term);"
 
239
                        print  "#define cur_term   NCURSES_PUBLIC_VAR(cur_term())"
 
240
                        print  "#else"
 
241
                        print  "extern NCURSES_EXPORT_VAR(TERMINAL *) cur_term;"
 
242
                        print  "#endif"
 
243
                        print  ""
231
244
                        print  "#if @BROKEN_LINKER@ || @cf_cv_enable_reentrant@"
232
 
                        print  "NCURSES_WRAPPED_VAR(TERMINAL *, cur_term);"
233
245
                        print  "NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, boolnames);"
234
246
                        print  "NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, boolcodes);"
235
247
                        print  "NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, boolfnames);"
240
252
                        print  "NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, strcodes);"
241
253
                        print  "NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, strfnames);"
242
254
                        print  ""
243
 
                        print  "#define cur_term   NCURSES_PUBLIC_VAR(cur_term())"
244
255
                        print  "#define boolnames  NCURSES_PUBLIC_VAR(boolnames())"
245
256
                        print  "#define boolcodes  NCURSES_PUBLIC_VAR(boolcodes())"
246
257
                        print  "#define boolfnames NCURSES_PUBLIC_VAR(boolfnames())"
253
264
                        print  ""
254
265
                        print  "#else"
255
266
                        print  ""
256
 
                        print  "extern NCURSES_EXPORT_VAR(TERMINAL *) cur_term;"
257
 
                        print  ""
258
267
                        print  "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolnames[];"
259
268
                        print  "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolcodes[];"
260
269
                        print  "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolfnames[];"
312
321
                        print  "extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int));"
313
322
                        print  "#endif /* NCURSES_TERMCAP_H_incl */"
314
323
                        print  ""
 
324
                        print  "/*"
 
325
                        print  " * Include curses.h before term.h to enable these extensions."
 
326
                        print  " */"
 
327
                        print  "#if defined(NCURSES_SP_FUNCS) && (NCURSES_SP_FUNCS != 0)"
 
328
                        print  ""
 
329
                        print  "extern NCURSES_EXPORT(char *)  NCURSES_SP_NAME(tigetstr) (SCREEN*, NCURSES_CONST char *);"
 
330
                        print  "extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(putp) (SCREEN*, const char *);"
 
331
                        print  "extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(tigetflag) (SCREEN*, NCURSES_CONST char *);"
 
332
                        print  "extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(tigetnum) (SCREEN*, NCURSES_CONST char *);"
 
333
                        print  ""
 
334
                        print  "#if @NCURSES_TPARM_VARARGS@ /* NCURSES_TPARM_VARARGS */"
 
335
                        print  "extern NCURSES_EXPORT(char *)  NCURSES_SP_NAME(tparm) (SCREEN*, NCURSES_CONST char *, ...);     /* special */"
 
336
                        print  "#else"
 
337
                        print  "extern NCURSES_EXPORT(char *)  NCURSES_SP_NAME(tparm) (SCREEN*, NCURSES_CONST char *, long,long,long,long,long,long,long,long,long);    /* special */"
 
338
                        print  "extern NCURSES_EXPORT(char *)  NCURSES_SP_NAME(tparm_varargs) (SCREEN*, NCURSES_CONST char *, ...);     /* special */"
 
339
                        print  "#endif"
 
340
                        print  ""
 
341
                        print  "/* termcap database emulation (XPG4 uses const only for 2nd param of tgetent) */"
 
342
                        print  "extern NCURSES_EXPORT(char *)  NCURSES_SP_NAME(tgetstr) (SCREEN*, NCURSES_CONST char *, char **);"
 
343
                        print  "extern NCURSES_EXPORT(char *)  NCURSES_SP_NAME(tgoto) (SCREEN*, const char *, int, int);"
 
344
                        print  "extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(tgetent) (SCREEN*, char *, const char *);"
 
345
                        print  "extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(tgetflag) (SCREEN*, NCURSES_CONST char *);"
 
346
                        print  "extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(tgetnum) (SCREEN*, NCURSES_CONST char *);"
 
347
                        print  "extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(tputs) (SCREEN*, const char *, int, NCURSES_SP_OUTC);"
 
348
                        print  ""
 
349
                        print  "extern NCURSES_EXPORT(TERMINAL *) NCURSES_SP_NAME(set_curterm) (SCREEN*, TERMINAL *);"
 
350
                        print  "extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(del_curterm) (SCREEN*, TERMINAL *);"
 
351
                        print  ""
 
352
                        print  "extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(restartterm) (SCREEN*, NCURSES_CONST char *, int, int *);"
 
353
                        print  "#endif /* NCURSES_SP_FUNCS */"
 
354
                        print  ""
315
355
                        print  "#ifdef __cplusplus"
316
356
                        print  "}"
317
357
                        print  "#endif"