GDB (API)
/home/stan/gdb/src/gdb/windows-termcap.c
Go to the documentation of this file.
00001 /* Win32 termcap emulation.
00002 
00003    Copyright (C) 2005-2013 Free Software Foundation, Inc.
00004 
00005    Contributed by CodeSourcery, LLC.
00006 
00007    This file is part of GDB.
00008 
00009    This program is free software; you can redistribute it and/or modify
00010    it under the terms of the GNU General Public License as published by
00011    the Free Software Foundation; either version 3 of the License, or
00012    (at your option) any later version.
00013 
00014    This program is distributed in the hope that it will be useful,
00015    but WITHOUT ANY WARRANTY; without even the implied warranty of
00016    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017    GNU General Public License for more details.
00018 
00019    You should have received a copy of the GNU General Public License
00020    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00021 
00022 #include <stdlib.h>
00023 
00024 /* -Wmissing-prototypes */
00025 extern int tgetent (char *buffer, char *termtype);
00026 extern int tgetnum (char *name);
00027 extern int tgetflag (char *name);
00028 extern char* tgetstr (char *name, char **area);
00029 extern int tputs (char *string, int nlines, int (*outfun) ());
00030 extern char *tgoto (const char *cap, int col, int row);
00031 
00032 /* Each of the files below is a minimal implementation of the standard
00033    termcap function with the same name, suitable for use in a Windows
00034    console window.  */
00035 
00036 int
00037 tgetent (char *buffer, char *termtype)
00038 {
00039   return -1;
00040 }
00041 
00042 int
00043 tgetnum (char *name)
00044 {
00045   return -1;
00046 }
00047 
00048 int
00049 tgetflag (char *name)
00050 {
00051   return -1;
00052 }
00053 
00054 char *
00055 tgetstr (char *name, char **area)
00056 {
00057   return NULL;
00058 }
00059 
00060 int
00061 tputs (char *string, int nlines, int (*outfun) ())
00062 {
00063   while (*string)
00064     outfun (*string++);
00065 
00066   return 0;
00067 }
00068 
00069 char *
00070 tgoto (const char *cap, int col, int row)
00071 {
00072   return NULL;
00073 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines