X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Fwindows-termcap.c;h=7c258cfc73c9accaab8345fabc1481ae16c75345;hb=48e6666a0d550f290ea174682c78b0d62a027076;hp=c6620496ad906a5d03e7f625bf764bdd9271ad61;hpb=197e01b6dcd118b70ed3621b62b2ff3fa929d50f;p=platform%2Fupstream%2Fbinutils.git
diff --git a/gdb/windows-termcap.c b/gdb/windows-termcap.c
index c662049..7c258cf 100644
--- a/gdb/windows-termcap.c
+++ b/gdb/windows-termcap.c
@@ -1,6 +1,6 @@
/* Win32 termcap emulation.
- Copyright (C) 2005 Free Software Foundation, Inc.
+ Copyright (C) 2005-2014 Free Software Foundation, Inc.
Contributed by CodeSourcery, LLC.
@@ -8,21 +8,27 @@
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
+ the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without eve nthe implied warranty of
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St., Fifth Floor, Boston, MA
- 02110-1301, USA. */
+ along with this program. If not, see . */
#include
+/* -Wmissing-prototypes */
+extern int tgetent (char *buffer, char *termtype);
+extern int tgetnum (char *name);
+extern int tgetflag (char *name);
+extern char* tgetstr (char *name, char **area);
+extern int tputs (char *string, int nlines, int (*outfun) ());
+extern char *tgoto (const char *cap, int col, int row);
+
/* Each of the files below is a minimal implementation of the standard
termcap function with the same name, suitable for use in a Windows
console window. */
@@ -56,6 +62,8 @@ tputs (char *string, int nlines, int (*outfun) ())
{
while (*string)
outfun (*string++);
+
+ return 0;
}
char *