diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-06-23 07:01:34 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-06-25 06:42:58 -0400 |
commit | 20b7effb9761caf5aee8475b6a6d731b40c80cd7 (patch) | |
tree | 21daa8d7a8d91dd62ad42ceefe7027787d7ceaf5 /locale.c | |
parent | 51f14a05690a52120145e5118962964658734217 (diff) | |
download | perl-20b7effb9761caf5aee8475b6a6d731b40c80cd7.tar.gz |
Remove or downgrade unnecessary dVAR.
You need to configure with g++ *and* -Accflags=-DPERL_GLOBAL_STRUCT
or -Accflags=-DPERL_GLOBAL_STRUCT_PRIVATE to see any difference.
(g++ does not do the "post-annotation" form of "unused".)
The version code has some of these issues, reported upstream.
Diffstat (limited to 'locale.c')
-rw-r--r-- | locale.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -93,7 +93,6 @@ void Perl_set_numeric_radix(pTHX) { #ifdef USE_LOCALE_NUMERIC - dVAR; # ifdef HAS_LOCALECONV const struct lconv* const lc = localeconv(); @@ -164,7 +163,6 @@ Perl_new_numeric(pTHX_ const char *newnum) * POSIX::setlocale() */ char *save_newnum; - dVAR; if (! newnum) { Safefree(PL_numeric_name); @@ -198,8 +196,6 @@ void Perl_set_numeric_standard(pTHX) { #ifdef USE_LOCALE_NUMERIC - dVAR; - /* Toggle the LC_NUMERIC locale to C, if not already there. Probably * should use the macros like SET_NUMERIC_STANDARD() in perl.h instead of * calling this directly. */ @@ -220,8 +216,6 @@ void Perl_set_numeric_local(pTHX) { #ifdef USE_LOCALE_NUMERIC - dVAR; - /* Toggle the LC_NUMERIC locale to the current underlying default, if not * already there. Probably should use the macros like SET_NUMERIC_LOCAL() * in perl.h instead of calling this directly. */ @@ -300,8 +294,6 @@ Perl_new_collate(pTHX_ const char *newcoll) * should be called directly only from this file and from * POSIX::setlocale() */ - dVAR; - if (! newcoll) { if (PL_collation_name) { ++PL_collation_ix; @@ -493,8 +485,6 @@ Perl_init_i18nl10n(pTHX_ int printwarn) int ok = 1; #if defined(USE_LOCALE) - dVAR; - #ifdef USE_LOCALE_CTYPE char *curctype = NULL; #endif /* USE_LOCALE_CTYPE */ @@ -945,7 +935,6 @@ Perl_init_i18nl10n(pTHX_ int printwarn) char * Perl_mem_collxfrm(pTHX_ const char *s, STRLEN len, STRLEN *xlen) { - dVAR; char *xbuf; STRLEN xAlloc, xin, xout; /* xalloc is a reserved word in VC */ |