diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdb/stub-termcap.c | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-users/simark/clang-format.zip binutils-users/simark/clang-format.tar.gz binutils-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/stub-termcap.c')
-rw-r--r-- | gdb/stub-termcap.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/gdb/stub-termcap.c b/gdb/stub-termcap.c index b8ee61c..b1c19c4 100644 --- a/gdb/stub-termcap.c +++ b/gdb/stub-termcap.c @@ -19,19 +19,17 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ - #include "defs.h" -extern "C" { - -/* -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) (int)); -extern char *tgoto (const char *cap, int col, int row); - +extern "C" +{ + /* -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) (int)); + extern char *tgoto (const char *cap, int col, int row); } /* These globals below are global termcap variables that readline @@ -47,9 +45,9 @@ extern char *tgoto (const char *cap, int col, int row); file originally was Windows only, and we only needed this when we made it work on other hosts, it should be OK. */ #ifndef __MINGW32__ -char PC __attribute__((weak)); -char *BC __attribute__((weak)); -char *UP __attribute__((weak)); +char PC __attribute__ ((weak)); +char *BC __attribute__ ((weak)); +char *UP __attribute__ ((weak)); #endif /* Each of the files below is a minimal implementation of the standard |