mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 23:52:22 +02:00
Perl fixes and additions. theme_register() / printformat() works now
with scripts git-svn-id: http://svn.irssi.org/repos/irssi/trunk@884 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
9a7491fbe6
commit
079932c405
10 changed files with 101 additions and 24 deletions
|
|
@ -14,4 +14,5 @@ INCLUDE: Query.xs
|
|||
INCLUDE: Rawlog.xs
|
||||
INCLUDE: Server.xs
|
||||
INCLUDE: Settings.xs
|
||||
INCLUDE: Themes.xs
|
||||
INCLUDE: Window.xs
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@ use ExtUtils::MakeMaker;
|
|||
|
||||
WriteMakefile('NAME' => 'Irssi',
|
||||
'LIBS' => '',
|
||||
'INC' => '-I@top_srcdir@/src -I@top_srcdir@/src/core @GLIB_CFLAGS@',
|
||||
'INC' => '-I@top_srcdir@ -I@top_srcdir@/src -I@top_srcdir@/src/core @GLIB_CFLAGS@',
|
||||
'VERSION_FROM' => '@srcdir@/Irssi.pm');
|
||||
|
|
|
|||
|
|
@ -298,13 +298,13 @@ window_item_is_active(item)
|
|||
|
||||
|
||||
#*******************************
|
||||
MODULE = Irssi PACKAGE = Irssi::Channel
|
||||
MODULE = Irssi PACKAGE = Irssi::Windowitem
|
||||
#*******************************
|
||||
|
||||
void
|
||||
print(channel, str, level=MSGLEVEL_CLIENTNOTICE)
|
||||
Irssi::Channel channel
|
||||
print(item, str, level=MSGLEVEL_CLIENTNOTICE)
|
||||
Irssi::Windowitem item
|
||||
int level
|
||||
char *str
|
||||
CODE:
|
||||
printtext(channel->server, channel->name, level, str);
|
||||
printtext(item->server, item->name, level, str);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,9 @@
|
|||
#include <XSUB.h>
|
||||
|
||||
#undef _
|
||||
#undef VERSION
|
||||
#include "../module.h"
|
||||
|
||||
#include "network.h"
|
||||
#include "commands.h"
|
||||
#include "log.h"
|
||||
|
|
@ -15,18 +17,21 @@
|
|||
#include "chatnets.h"
|
||||
#include "servers.h"
|
||||
#include "servers-reconnect.h"
|
||||
#include "servers-redirect.h"
|
||||
#include "servers-setup.h"
|
||||
#include "channels.h"
|
||||
#include "queries.h"
|
||||
#include "nicklist.h"
|
||||
|
||||
#include "perl/perl-common.h"
|
||||
|
||||
#include "fe-common/core/fe-windows.h"
|
||||
#include "fe-common/core/formats.h"
|
||||
#include "fe-common/core/printtext.h"
|
||||
#include "fe-common/core/window-items.h"
|
||||
#include "fe-common/core/themes.h"
|
||||
#include "fe-common/core/keyboard.h"
|
||||
|
||||
#include "perl/perl-common.h"
|
||||
|
||||
typedef COMMAND_REC *Irssi__Command;
|
||||
typedef LOG_REC *Irssi__Log;
|
||||
typedef LOG_ITEM_REC *Irssi__LogItem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue