}
static int
-get_limit ()
+get_limit (void)
{
int size = hexchat_pluginpref_get_int (ph, "limit");
/**
* Opens the key store file: ~/.config/hexchat/addon_fishlim.conf
*/
-static GKeyFile *getConfigFile() {
+static GKeyFile *getConfigFile(void) {
gchar *filename = get_config_filename();
GKeyFile *keyfile = g_key_file_new();
/**
* Returns the key store password, or the default.
*/
-static const char *get_keystore_password() {
+static const char *get_keystore_password(void) {
return (keystore_password != NULL ?
keystore_password :
/* Silly default value... */
/**
* Returns the path to the key store file.
*/
-gchar *get_config_filename() {
+gchar *get_config_filename(void) {
char *filename_fs, *filename_utf8;
filename_utf8 = g_build_filename(hexchat_get_info(ph, "configdir"), "addon_fishlim.conf", NULL);
#ifndef PLUGIN_HEXCHAT_H
#define PLUGIN_HEXCHAT_H
-gchar *get_config_filename();
+gchar *get_config_filename(void);
int irc_nick_cmp (const char *, const char *);
#endif
static PyObject *Util_BuildList(char *word[]);
static PyObject *Util_BuildEOLList(char *word[]);
-static void Util_Autoload();
+static void Util_Autoload(void);
static char *Util_Expand(char *filename);
static int Callback_Server(char *word[], char *word_eol[], hexchat_event_attrs *attrs, void *userdata);
static int Callback_Timer(void *userdata);
static int Callback_ThreadTimer(void *userdata);
-static PyObject *XChatOut_New();
+static PyObject *XChatOut_New(void);
static PyObject *XChatOut_write(PyObject *self, PyObject *args);
static void XChatOut_dealloc(PyObject *self);
static PyObject *Context_FromServerAndChannel(char *server, char *channel);
static PyObject *Plugin_New(char *filename, PyObject *xcoobj);
-static PyObject *Plugin_GetCurrent();
+static PyObject *Plugin_GetCurrent(void);
static PluginObject *Plugin_ByString(char *str);
static Hook *Plugin_AddHook(int type, PyObject *plugin, PyObject *callback,
PyObject *userdata, char *name, void *data);
static void IInterp_Exec(char *command);
static int IInterp_Cmd(char *word[], char *word_eol[], void *userdata);
-static void Command_PyList();
+static void Command_PyList(void);
static void Command_PyLoad(char *filename);
static void Command_PyUnload(char *name);
static void Command_PyReload(char *name);
-static void Command_PyAbout();
+static void Command_PyAbout(void);
static int Command_Py(char *word[], char *word_eol[], void *userdata);
/* ===================================================================== */
/* Python command handling */
static void
-Command_PyList()
+Command_PyList(void)
{
GSList *list;
list = plugin_list;
}
static void
-Command_PyAbout()
+Command_PyAbout(void)
{
hexchat_print(ph, about);
}
}
int
-hexchat_plugin_deinit()
+hexchat_plugin_deinit(void)
{
GSList *list;
static gboolean dcc_read (GIOChannel *, GIOCondition, struct DCC *);
static gboolean dcc_read_ack (GIOChannel *source, GIOCondition condition, struct DCC *dcc);
-static int new_id()
+static int new_id(void)
{
static int id = 0;
if (id == 0)
void fe_tray_set_icon (feicon icon);
void fe_tray_set_tooltip (const char *text);
void fe_open_chan_list (server *serv, char *filter, int do_refresh);
-const char *fe_get_default_font ();
+const char *fe_get_default_font (void);
#endif
int identd_plugin_init (hexchat_plugin *plugin_handle, char **plugin_name,
char **plugin_desc, char **plugin_version, char *arg);
-int identd_plugin_deinit ();
+int identd_plugin_deinit (void);
#endif
}
static char *
-plugin_get_libdir ()
+plugin_get_libdir (void)
{
const char *libdir;
#include "textevents.h"
static void
-pevent_load_defaults ()
+pevent_load_defaults (void)
{
int i;
}
void
-pevent_make_pntevts ()
+pevent_make_pntevts (void)
{
int i, m;
char out[1024];
}
static void
-pevent_check_all_loaded ()
+pevent_check_all_loaded (void)
{
int i;
void sound_play (const char *file, gboolean quiet);
void sound_play_event (int i);
void sound_beep (session *);
-void sound_load ();
-void sound_save ();
+void sound_load (void);
+void sound_save (void);
#endif
int elen;
};
-static int key_load_kbs ();
-static int key_save_kbs ();
+static int key_load_kbs (void);
+static int key_save_kbs (void);
static int key_action_handle_command (GtkWidget * wid, GdkEventKey * evt,
char *d1, char *d2,
struct session *sess);
}
static void
-close_ignore_gui_callback ()
+close_ignore_gui_callback (void)
{
ignore_save ();
ignorewin = 0;
}
static GtkWidget *
-menu_quick_endsub ()
+menu_quick_endsub (void)
{
/* Just delete the first element in the linked list pointed to by first */
if (submenu_list)
}
static void
-menu_search ()
+menu_search (void)
{
mg_search_toggle (current_sess);
}
void tray_apply_setup (void);
-static gboolean tray_menu_try_restore ();
+static gboolean tray_menu_try_restore (void);
static void tray_cleanup (void);
static void tray_init (void);
}
static gboolean
-tray_menu_try_restore ()
+tray_menu_try_restore (void)
{
tray_cleanup();
tray_init();
}
static void
-initialize_enchant ()
+initialize_enchant (void)
{
GModule *enchant;
gpointer funcptr;