Add myself as write-after-approval GDB maintainer.
[deliverable/binutils-gdb.git] / gdb / windows-termcap.c
CommitLineData
7ef34f2c
MM
1/* Win32 termcap emulation.
2
32d0add0 3 Copyright (C) 2005-2015 Free Software Foundation, Inc.
7ef34f2c
MM
4
5 Contributed by CodeSourcery, LLC.
6
7 This file is part of GDB.
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
a9762ec7 11 the Free Software Foundation; either version 3 of the License, or
7ef34f2c
MM
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
a9762ec7 15 but WITHOUT ANY WARRANTY; without even the implied warranty of
7ef34f2c
MM
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
a9762ec7 20 along with this program. If not, see <http://www.gnu.org/licenses/>. */
7ef34f2c 21
63413d85
EZ
22
23#include "defs.h"
24
25#if !defined HAVE_CURSES_H && !defined HAVE_NCURSES_H && !defined HAVE_NCURSES_NCURSES_H
26
7ef34f2c
MM
27#include <stdlib.h>
28
a95babbf
YQ
29/* -Wmissing-prototypes */
30extern int tgetent (char *buffer, char *termtype);
31extern int tgetnum (char *name);
32extern int tgetflag (char *name);
33extern char* tgetstr (char *name, char **area);
34extern int tputs (char *string, int nlines, int (*outfun) ());
35extern char *tgoto (const char *cap, int col, int row);
36
7ef34f2c
MM
37/* Each of the files below is a minimal implementation of the standard
38 termcap function with the same name, suitable for use in a Windows
39 console window. */
40
41int
42tgetent (char *buffer, char *termtype)
43{
44 return -1;
45}
46
47int
48tgetnum (char *name)
49{
50 return -1;
51}
52
53int
54tgetflag (char *name)
55{
56 return -1;
57}
58
59char *
60tgetstr (char *name, char **area)
61{
62 return NULL;
63}
64
65int
66tputs (char *string, int nlines, int (*outfun) ())
67{
68 while (*string)
69 outfun (*string++);
1e0600be
DJ
70
71 return 0;
7ef34f2c
MM
72}
73
74char *
75tgoto (const char *cap, int col, int row)
76{
77 return NULL;
78}
63413d85
EZ
79
80#endif /* !HAVE_CURSES_H && !HAVE_NCURSES_H && !HAVE_NCURSES_NCURSES_H */
This page took 1.024062 seconds and 4 git commands to generate.