mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 16:12:30 +02:00
I always forget Perl 5.004 doesn't have PL_na .. so, now I've declared for
5.004, and changed all STRLEN n_a code to use PL_na instead. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2238 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
d4ee6fd604
commit
617123b5d4
10 changed files with 21 additions and 35 deletions
|
|
@ -25,7 +25,6 @@ static GSList *event_hash2list(HV *hv)
|
|||
{
|
||||
HE *he;
|
||||
GSList *list;
|
||||
STRLEN n_a;
|
||||
|
||||
if (hv == NULL)
|
||||
return NULL;
|
||||
|
|
@ -35,7 +34,7 @@ static GSList *event_hash2list(HV *hv)
|
|||
while ((he = hv_iternext(hv)) != NULL) {
|
||||
I32 len;
|
||||
char *key = hv_iterkey(he, &len);
|
||||
char *value = SvPV(HeVAL(he), n_a);
|
||||
char *value = SvPV(HeVAL(he), PL_na);
|
||||
|
||||
list = g_slist_append(list, g_strdup(key));
|
||||
list = g_slist_append(list, g_strdup(value));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue