Fix -Wmissing-prototypes build.
* charset.c (phony_iconv_open): Make static.
(phony_iconv_close, phony_iconv): Likewise.
* i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
* i386-windows-nat.c (_initialize_i386_windows_nat): New
prototype.
* mingw-hdep.c (_initialize_mingw_hdep): New prototype.
* ser-mingw.c (create_select_thread): Make static.
* windows-termcap.c (tgetent): New prototype.
(tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
+2012-03-02 Yao Qi <yao@codesourcery.com>
+
+ Fix -Wmissing-prototypes build.
+ * charset.c (phony_iconv_open): Make static.
+ (phony_iconv_close, phony_iconv): Likewise.
+ * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
+ * i386-windows-nat.c (_initialize_i386_windows_nat): New
+ prototype.
+ * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
+ * ser-mingw.c (create_select_thread): Make static.
+ * windows-termcap.c (tgetent): New prototype.
+ (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
+
2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
Fix -Wmissing-prototypes build.
#define EILSEQ ENOENT
#endif
-iconv_t
+static iconv_t
phony_iconv_open (const char *to, const char *from)
{
/* We allow conversions from UTF-32BE, wchar_t, and the host charset.
return !strcmp (from, "UTF-32BE");
}
-int
+static int
phony_iconv_close (iconv_t arg)
{
return 0;
}
-size_t
+static size_t
phony_iconv (iconv_t utf_flag, const char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft)
{
return tdesc_i386_linux;
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_i386_linux_nat;
+
void
_initialize_i386_linux_nat (void)
{
};
#undef context_offset
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_i386_windows_nat;
+
void
_initialize_i386_windows_nat (void)
{
SetEvent (sigint_event);
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_mingw_hdep;
+
void
_initialize_mingw_hdep (void)
{
/* Create a new select thread for SCB executing THREAD_FN. The STATE
will be filled in by this function before return. */
-void
+static void
create_select_thread (thread_fn_type thread_fn,
struct serial *scb,
struct ser_console_state *state)
#include <stdlib.h>
+/* -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. */