mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
Split expandos from special-vars.c to expandos.c. Added list of signals
to each expando that can might change it's value. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@964 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
5f941b8fa6
commit
d1eaeca255
19 changed files with 687 additions and 520 deletions
|
|
@ -19,9 +19,9 @@ irssi_LDADD = \
|
|||
|
||||
irssi_SOURCES = \
|
||||
gui-entry.c \
|
||||
gui-expandos.c \
|
||||
gui-printtext.c \
|
||||
gui-readline.c \
|
||||
gui-special-vars.c \
|
||||
gui-textwidget.c \
|
||||
gui-windows.c \
|
||||
mainwindows.c \
|
||||
|
|
@ -36,8 +36,6 @@ noinst_HEADERS = \
|
|||
gui-entry.h \
|
||||
gui-printtext.h \
|
||||
gui-readline.h \
|
||||
gui-special-vars.h \
|
||||
gui-textwidget.h \
|
||||
gui-windows.h \
|
||||
mainwindows.h \
|
||||
statusbar.h \
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
gui-special-vars.c : irssi
|
||||
gui-expandos.c : irssi
|
||||
|
||||
Copyright (C) 2000 Timo Sirainen
|
||||
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
*/
|
||||
|
||||
#include "module.h"
|
||||
#include "special-vars.h"
|
||||
#include "expandos.h"
|
||||
|
||||
#include "gui-entry.h"
|
||||
#include "gui-readline.h"
|
||||
|
|
@ -40,20 +40,20 @@ static char *expando_inputline(SERVER_REC *server, void *item, int *free_ret)
|
|||
return gui_entry_get_text();
|
||||
}
|
||||
|
||||
/* FIXME: value of cutbuffer */
|
||||
/* value of cutbuffer */
|
||||
static char *expando_cutbuffer(SERVER_REC *server, void *item, int *free_ret)
|
||||
{
|
||||
return cutbuffer;
|
||||
}
|
||||
|
||||
void gui_special_vars_init(void)
|
||||
void gui_expandos_init(void)
|
||||
{
|
||||
expando_create("E", expando_idletime);
|
||||
expando_create("L", expando_inputline);
|
||||
expando_create("U", expando_cutbuffer);
|
||||
expando_create("E", expando_idletime, NULL);
|
||||
expando_create("L", expando_inputline, NULL);
|
||||
expando_create("U", expando_cutbuffer, NULL);
|
||||
}
|
||||
|
||||
void gui_special_vars_deinit(void)
|
||||
void gui_expandos_deinit(void)
|
||||
{
|
||||
expando_destroy("E", expando_idletime);
|
||||
expando_destroy("L", expando_inputline);
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
#ifndef __GUI_SPECIAL_VARS_H
|
||||
#define __GUI_SPECIAL_VARS_H
|
||||
|
||||
void gui_special_vars_init(void);
|
||||
void gui_special_vars_deinit(void);
|
||||
|
||||
#endif
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
#ifndef __GUI_TEXTWIDGET_H
|
||||
#define __GUI_TEXTWIDGET_H
|
||||
|
||||
void gui_textwidget_init(void);
|
||||
void gui_textwidget_deinit(void);
|
||||
|
||||
#endif
|
||||
|
|
@ -35,9 +35,7 @@
|
|||
#include "mainwindows.h"
|
||||
#include "gui-printtext.h"
|
||||
#include "gui-readline.h"
|
||||
#include "gui-special-vars.h"
|
||||
#include "statusbar.h"
|
||||
#include "gui-textwidget.h"
|
||||
#include "gui-windows.h"
|
||||
|
||||
#include <signal.h>
|
||||
|
|
@ -50,6 +48,12 @@ void perl_deinit(void);
|
|||
void irc_init(void);
|
||||
void irc_deinit(void);
|
||||
|
||||
void gui_expandos_init(void);
|
||||
void gui_expandos_deinit(void);
|
||||
|
||||
void gui_textwidget_init(void);
|
||||
void gui_textwidget_deinit(void);
|
||||
|
||||
void mainwindow_activity_init(void);
|
||||
void mainwindow_activity_deinit(void);
|
||||
|
||||
|
|
@ -111,9 +115,9 @@ static void textui_finish_init(void)
|
|||
|
||||
screen_refresh_freeze();
|
||||
gui_entry_init();
|
||||
gui_expandos_init();
|
||||
gui_printtext_init();
|
||||
gui_readline_init();
|
||||
gui_special_vars_init();
|
||||
gui_textwidget_init();
|
||||
mainwindows_init();
|
||||
mainwindow_activity_init();
|
||||
|
|
@ -146,13 +150,13 @@ static void textui_deinit(void)
|
|||
|
||||
signal_remove("gui exit", (SIGNAL_FUNC) sig_exit);
|
||||
gui_textwidget_deinit();
|
||||
gui_special_vars_deinit();
|
||||
statusbar_deinit();
|
||||
gui_printtext_deinit();
|
||||
gui_readline_deinit();
|
||||
gui_windows_deinit();
|
||||
mainwindow_activity_deinit();
|
||||
mainwindows_deinit();
|
||||
gui_expandos_deinit();
|
||||
gui_entry_deinit();
|
||||
deinit_screen();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue