mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 16:12:30 +02:00
Perl works again :) Split to Irssi and Irssi::Irc packages.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@705 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
c1a191955b
commit
62dee8fdaf
20 changed files with 904 additions and 23 deletions
21
src/perl/perl-common.h
Normal file
21
src/perl/perl-common.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#ifndef __PERL_COMMON_H
|
||||
#define __PERL_COMMON_H
|
||||
|
||||
#define new_pv(a) \
|
||||
(newSVpv((a) == NULL ? "" : (a), (a) == NULL ? 0 : strlen(a)))
|
||||
|
||||
extern GHashTable *perl_stashes;
|
||||
|
||||
HV *irssi_get_stash_item(int type, int chat_type);
|
||||
|
||||
#define irssi_get_stash(item) \
|
||||
irssi_get_stash_item((item)->type, (item)->chat_type)
|
||||
|
||||
#define irssi_add_stash(type, chat_type, stash) \
|
||||
g_hash_table_insert(perl_stashes, GINT_TO_POINTER(type | \
|
||||
(chat_type << 24)), g_strdup(stash))
|
||||
|
||||
void perl_common_init(void);
|
||||
void perl_common_deinit(void);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue