mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Added WINDOW_REC declaration to common.h, removed unneeded #include "servers.h" from fe-windows.h which broke several files, added the #include in them.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2272 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
4d1938d4ef
commit
bf5b6c08c5
@ -91,4 +91,6 @@ typedef struct _SERVER_CONNECT_REC SERVER_CONNECT_REC;
|
|||||||
typedef struct _SERVER_SETUP_REC SERVER_SETUP_REC;
|
typedef struct _SERVER_SETUP_REC SERVER_SETUP_REC;
|
||||||
typedef struct _CHANNEL_SETUP_REC CHANNEL_SETUP_REC;
|
typedef struct _CHANNEL_SETUP_REC CHANNEL_SETUP_REC;
|
||||||
|
|
||||||
|
typedef struct _WINDOW_REC WINDOW_REC;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -102,6 +102,7 @@ static void nicklist_destroy(CHANNEL_REC *channel, NICK_REC *nick)
|
|||||||
{
|
{
|
||||||
signal_emit("nicklist remove", 2, channel, nick);
|
signal_emit("nicklist remove", 2, channel, nick);
|
||||||
|
|
||||||
|
if (g_hash_table_size(nick->module_data) > 5) g_error("BUG!"); // FIXME: debug
|
||||||
MODULE_DATA_DEINIT(nick);
|
MODULE_DATA_DEINIT(nick);
|
||||||
g_free(nick->nick);
|
g_free(nick->nick);
|
||||||
g_free_not_null(nick->realname);
|
g_free_not_null(nick->realname);
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
|
||||||
#include "chatnets.h"
|
#include "chatnets.h"
|
||||||
|
#include "servers.h"
|
||||||
#include "servers-setup.h"
|
#include "servers-setup.h"
|
||||||
#include "channels.h"
|
#include "channels.h"
|
||||||
#include "channels-setup.h"
|
#include "channels-setup.h"
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
#include "chat-protocols.h"
|
#include "chat-protocols.h"
|
||||||
#include "chatnets.h"
|
#include "chatnets.h"
|
||||||
|
#include "servers.h"
|
||||||
#include "channels.h"
|
#include "channels.h"
|
||||||
#include "channels-setup.h"
|
#include "channels-setup.h"
|
||||||
#include "nicklist.h"
|
#include "nicklist.h"
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include "irssi-version.h"
|
#include "irssi-version.h"
|
||||||
|
|
||||||
|
#include "servers.h"
|
||||||
#include "channels.h"
|
#include "channels.h"
|
||||||
#include "servers-setup.h"
|
#include "servers-setup.h"
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#include "line-split.h"
|
#include "line-split.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include "irssi-version.h"
|
#include "irssi-version.h"
|
||||||
|
#include "servers.h"
|
||||||
|
|
||||||
#include "fe-windows.h"
|
#include "fe-windows.h"
|
||||||
#include "printtext.h"
|
#include "printtext.h"
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "module.h"
|
#include "module.h"
|
||||||
|
#include "modules.h"
|
||||||
#include "signals.h"
|
#include "signals.h"
|
||||||
#include "commands.h"
|
#include "commands.h"
|
||||||
#include "pidwait.h"
|
#include "pidwait.h"
|
||||||
|
@ -27,12 +27,14 @@
|
|||||||
#include "special-vars.h"
|
#include "special-vars.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
|
||||||
#include "window-items.h"
|
#include "servers.h"
|
||||||
#include "fe-queries.h"
|
|
||||||
#include "channels.h"
|
#include "channels.h"
|
||||||
#include "nicklist.h"
|
#include "nicklist.h"
|
||||||
#include "hilight-text.h"
|
|
||||||
#include "ignore.h"
|
#include "ignore.h"
|
||||||
|
|
||||||
|
#include "window-items.h"
|
||||||
|
#include "fe-queries.h"
|
||||||
|
#include "hilight-text.h"
|
||||||
#include "printtext.h"
|
#include "printtext.h"
|
||||||
|
|
||||||
#define ishighalnum(c) ((unsigned char) (c) >= 128 || isalnum(c))
|
#define ishighalnum(c) ((unsigned char) (c) >= 128 || isalnum(c))
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
|
||||||
#include "chat-protocols.h"
|
#include "chat-protocols.h"
|
||||||
|
#include "servers.h"
|
||||||
#include "queries.h"
|
#include "queries.h"
|
||||||
|
|
||||||
#include "fe-windows.h"
|
#include "fe-windows.h"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#ifndef __WINDOWS_H
|
#ifndef __WINDOWS_H
|
||||||
#define __WINDOWS_H
|
#define __WINDOWS_H
|
||||||
|
|
||||||
#include "servers.h"
|
|
||||||
#include "window-item-def.h"
|
#include "window-item-def.h"
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
@ -17,7 +16,7 @@ typedef struct {
|
|||||||
unsigned int sticky:1;
|
unsigned int sticky:1;
|
||||||
} WINDOW_BIND_REC;
|
} WINDOW_BIND_REC;
|
||||||
|
|
||||||
typedef struct {
|
struct _WINDOW_REC {
|
||||||
int refnum;
|
int refnum;
|
||||||
char *name;
|
char *name;
|
||||||
|
|
||||||
@ -48,7 +47,7 @@ typedef struct {
|
|||||||
void *theme; /* THEME_REC */
|
void *theme; /* THEME_REC */
|
||||||
|
|
||||||
void *gui_data;
|
void *gui_data;
|
||||||
} WINDOW_REC;
|
};
|
||||||
|
|
||||||
extern GSList *windows;
|
extern GSList *windows;
|
||||||
extern WINDOW_REC *active_win;
|
extern WINDOW_REC *active_win;
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
|
||||||
#include "levels.h"
|
#include "levels.h"
|
||||||
|
#include "servers.h"
|
||||||
|
|
||||||
#include "fe-windows.h"
|
#include "fe-windows.h"
|
||||||
#include "window-items.h"
|
#include "window-items.h"
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
|
||||||
#include "irc.h"
|
#include "irc.h"
|
||||||
|
#include "irc-servers.h"
|
||||||
#include "irc-queries.h"
|
#include "irc-queries.h"
|
||||||
#include "dcc-chat.h"
|
#include "dcc-chat.h"
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#include "signals.h"
|
#include "signals.h"
|
||||||
#include "levels.h"
|
#include "levels.h"
|
||||||
|
|
||||||
|
#include "irc-servers.h"
|
||||||
#include "irc-channels.h"
|
#include "irc-channels.h"
|
||||||
#include "channel-rejoin.h"
|
#include "channel-rejoin.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user