summaryrefslogtreecommitdiff
path: root/ext/tk
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-04 23:29:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-04 23:29:24 +0000
commitba0655ebdd31e5e6b9ae8ede328733067a68dcbc (patch)
tree70110dc331553c9f3ff47a9ab3b479ab56b7090e /ext/tk
parent5540c1de81f69e160c2302e56e4957147f240450 (diff)
ext: protoize no-arguments functions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk')
-rw-r--r--ext/tk/stubs.h10
-rw-r--r--ext/tk/tcltklib.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/ext/tk/stubs.h b/ext/tk/stubs.h
index 7c913fb393..b4a85dbd1f 100644
--- a/ext/tk/stubs.h
+++ b/ext/tk/stubs.h
@@ -1,15 +1,15 @@
#include <tcl.h>
extern int ruby_open_tcl_dll(char *);
-extern int ruby_open_tk_dll();
+extern int ruby_open_tk_dll(void);
extern int ruby_open_tcltk_dll(char *);
-extern int tcl_stubs_init_p();
-extern int tk_stubs_init_p();
+extern int tcl_stubs_init_p(void);
+extern int tk_stubs_init_p(void);
extern Tcl_Interp *ruby_tcl_create_ip_and_stubs_init(int*);
-extern int ruby_tcl_stubs_init();
+extern int ruby_tcl_stubs_init(void);
extern int ruby_tk_stubs_init(Tcl_Interp*);
extern int ruby_tk_stubs_safeinit(Tcl_Interp*);
-extern int ruby_tcltk_stubs();
+extern int ruby_tcltk_stubs(void);
/* no error */
#define TCLTK_STUBS_OK (0)
diff --git a/ext/tk/tcltklib.c b/ext/tk/tcltklib.c
index 239f07a77b..413a97de4f 100644
--- a/ext/tk/tcltklib.c
+++ b/ext/tk/tcltklib.c
@@ -21,7 +21,7 @@
#ifdef HAVE_RB_THREAD_CHECK_TRAP_PENDING
static int rb_thread_critical; /* dummy */
-int rb_thread_check_trap_pending();
+int rb_thread_check_trap_pending(void);
#else
/* use rb_thread_critical on Ruby 1.8.x */
#include "rubysig.h"