diff options
Diffstat (limited to 'src/perl/ui/Themes.xs')
-rw-r--r-- | src/perl/ui/Themes.xs | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/perl/ui/Themes.xs b/src/perl/ui/Themes.xs index eea5238f..28507ac1 100644 --- a/src/perl/ui/Themes.xs +++ b/src/perl/ui/Themes.xs @@ -91,7 +91,6 @@ void theme_register(formats) SV *formats PREINIT: - STRLEN n_a; AV *av; FORMAT_REC *formatrecs; char *key, *value; @@ -110,8 +109,8 @@ CODE: formatrecs[0].def = g_strdup("Perl script"); for (fpos = 1, n = 0; n < len; n++, fpos++) { - key = SvPV(*av_fetch(av, n, 0), n_a); n++; - value = SvPV(*av_fetch(av, n, 0), n_a); + key = SvPV(*av_fetch(av, n, 0), PL_na); n++; + value = SvPV(*av_fetch(av, n, 0), PL_na); formatrecs[fpos].tag = g_strdup(key); formatrecs[fpos].def = g_strdup(value); @@ -125,7 +124,6 @@ printformat(level, format, ...) int level char *format PREINIT: - STRLEN n_a; TEXT_DEST_REC dest; char *arglist[MAX_FORMAT_PARAMS+1]; int n; @@ -133,7 +131,7 @@ CODE: format_create_dest(&dest, NULL, NULL, level, NULL); memset(arglist, 0, sizeof(arglist)); for (n = 2; n < items && n < MAX_FORMAT_PARAMS+2; n++) { - arglist[n-2] = SvPV(ST(n), n_a); + arglist[n-2] = SvPV(ST(n), PL_na); } printformat_perl(&dest, format, arglist); @@ -149,7 +147,6 @@ printformat(server, target, level, format, ...) int level char *format PREINIT: - STRLEN n_a; TEXT_DEST_REC dest; char *arglist[MAX_FORMAT_PARAMS+1]; int n; @@ -157,7 +154,7 @@ CODE: format_create_dest(&dest, server, target, level, NULL); memset(arglist, 0, sizeof(arglist)); for (n = 4; n < items && n < MAX_FORMAT_PARAMS+4; n++) { - arglist[n-4] = SvPV(ST(n), n_a); + arglist[n-4] = SvPV(ST(n), PL_na); } printformat_perl(&dest, format, arglist); @@ -172,7 +169,6 @@ printformat(window, level, format, ...) int level char *format PREINIT: - STRLEN n_a; TEXT_DEST_REC dest; char *arglist[MAX_FORMAT_PARAMS+1]; int n; @@ -180,7 +176,7 @@ CODE: format_create_dest(&dest, NULL, NULL, level, window); memset(arglist, 0, sizeof(arglist)); for (n = 3; n < items && n < MAX_FORMAT_PARAMS+3; n++) { - arglist[n-3] = SvPV(ST(n), n_a); + arglist[n-3] = SvPV(ST(n), PL_na); } printformat_perl(&dest, format, arglist); @@ -195,7 +191,6 @@ printformat(item, level, format, ...) int level char *format PREINIT: - STRLEN n_a; TEXT_DEST_REC dest; char *arglist[MAX_FORMAT_PARAMS+1]; int n; @@ -203,7 +198,7 @@ CODE: format_create_dest(&dest, item->server, item->name, level, NULL); memset(arglist, 0, sizeof(arglist)); for (n = 3; n < items && n < MAX_FORMAT_PARAMS+3; n++) { - arglist[n-3] = SvPV(ST(n), n_a); + arglist[n-3] = SvPV(ST(n), PL_na); } printformat_perl(&dest, format, arglist); |