plain objects weren't blessed correctly in lists

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1554 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-06-11 23:54:50 +00:00 committed by cras
commit 3a0534da46
8 changed files with 13 additions and 27 deletions

View file

@ -310,11 +310,9 @@ void
commands()
PREINIT:
GSList *tmp;
HV *stash;
PPCODE:
stash = gv_stashpv("Irssi::Command", 0);
for (tmp = commands; tmp != NULL; tmp = tmp->next) {
push_bless(tmp->data, stash);
XPUSHs(sv_2mortal(plain_bless(tmp->data, "Irssi::Command")));
}
void

View file

@ -4,11 +4,9 @@ void
ignores()
PREINIT:
GSList *tmp;
HV *stash;
PPCODE:
stash = gv_stashpv("Irssi::Ignore", 0);
for (tmp = servers; tmp != NULL; tmp = tmp->next) {
push_bless(tmp->data, stash);
XPUSHs(sv_2mortal(plain_bless(tmp->data, "Irssi::Ignore")));
}
int

View file

@ -4,11 +4,9 @@ void
logs()
PREINIT:
GSList *tmp;
HV *stash;
PPCODE:
stash = gv_stashpv("Irssi::Log", 0);
for (tmp = logs; tmp != NULL; tmp = tmp->next) {
push_bless(tmp->data, stash);
XPUSHs(sv_2mortal(plain_bless(tmp->data, "Irssi::Log")));
}
Irssi::Log

View file

@ -13,11 +13,9 @@ void
reconnects()
PREINIT:
GSList *tmp;
HV *stash;
PPCODE:
stash = gv_stashpv("Irssi::Reconnect", 0);
for (tmp = reconnects; tmp != NULL; tmp = tmp->next) {
push_bless(tmp->data, stash);
XPUSHs(sv_2mortal(plain_bless(tmp->data, "Irssi::Reconnect")));
}
Irssi::Connect

View file

@ -4,11 +4,9 @@ void
windows()
PREINIT:
GSList *tmp;
HV *stash;
PPCODE:
stash = gv_stashpv("Irssi::Window", 0);
for (tmp = windows; tmp != NULL; tmp = tmp->next) {
push_bless(tmp->data, stash);
XPUSHs(sv_2mortal(plain_bless(tmp->data, "Irssi::Window")));
}