diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-07-24 19:31:04 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-07-24 21:54:14 -0400 |
commit | c0de32e24cb35f30ec0d37406b19fcc377911df7 (patch) | |
tree | e4b81afaedc36a3b2750c7cbb728c4cf948909ff | |
parent | 945b524a8cdacbf82557d751252e6546f48d21ae (diff) | |
download | perl-c0de32e24cb35f30ec0d37406b19fcc377911df7.tar.gz |
Unused dVARs found by g++ -DPERL_GLOBAL_STRUCT_PRIVATE.
-rw-r--r-- | deb.c | 4 | ||||
-rw-r--r-- | op.c | 1 | ||||
-rw-r--r-- | pad.c | 4 | ||||
-rw-r--r-- | regcomp.c | 4 | ||||
-rw-r--r-- | sv.c | 4 | ||||
-rw-r--r-- | taint.c | 2 | ||||
-rw-r--r-- | toke.c | 2 |
7 files changed, 0 insertions, 21 deletions
@@ -59,7 +59,6 @@ void Perl_vdeb(pTHX_ const char *pat, va_list *args) { #ifdef DEBUGGING - dVAR; const char* const file = PL_curcop ? OutCopFILE(PL_curcop) : "<null>"; const char* const display_file = file ? file : "<free>"; const long line = PL_curcop ? (long)CopLINE(PL_curcop) : 0; @@ -83,7 +82,6 @@ I32 Perl_debstackptrs(pTHX) { #ifdef DEBUGGING - dVAR; PerlIO_printf(Perl_debug_log, "%8"UVxf" %8"UVxf" %8"IVdf" %8"IVdf" %8"IVdf"\n", PTR2UV(PL_curstack), PTR2UV(PL_stack_base), @@ -115,7 +113,6 @@ S_deb_stack_n(pTHX_ SV** stack_base, I32 stack_min, I32 stack_max, I32 mark_min, I32 mark_max) { #ifdef DEBUGGING - dVAR; I32 i = stack_max - 30; const I32 *markscan = PL_markstack + mark_min; @@ -205,7 +202,6 @@ void Perl_deb_stack_all(pTHX) { #ifdef DEBUGGING - dVAR; I32 si_ix; const PERL_SI *si; @@ -1118,7 +1118,6 @@ For example: OP * Perl_op_sibling_splice(OP *parent, OP *start, int del_count, OP* insert) { - dVAR; OP *first = start ? OP_SIBLING(start) : cLISTOPx(parent)->op_first; OP *rest; OP *last_del = NULL; @@ -1402,7 +1402,6 @@ Use macro PAD_SV instead of calling this function directly. SV * Perl_pad_sv(pTHX_ PADOFFSET po) { - dVAR; ASSERT_CURPAD_ACTIVE("pad_sv"); if (!po) @@ -1426,8 +1425,6 @@ Use the macro PAD_SETSV() rather than calling this function directly. void Perl_pad_setsv(pTHX_ PADOFFSET po, SV* sv) { - dVAR; - PERL_ARGS_ASSERT_PAD_SETSV; ASSERT_CURPAD_ACTIVE("pad_setsv"); @@ -1918,7 +1915,6 @@ dump the contents of a CV STATIC void S_cv_dump(pTHX_ const CV *cv, const char *title) { - dVAR; const CV * const outside = CvOUTSIDE(cv); PADLIST* const padlist = CvPADLIST(cv); @@ -15356,7 +15356,6 @@ STATIC U8 S_regtail_study(pTHX_ RExC_state_t *pRExC_state, regnode *p, const regnode *val,U32 depth) { - dVAR; regnode *scan; U8 exact = PSEUDO; #ifdef EXPERIMENTAL_INPLACESCAN @@ -15519,7 +15518,6 @@ void Perl_regdump(pTHX_ const regexp *r) { #ifdef DEBUGGING - dVAR; SV * const sv = sv_newmortal(); SV *dsv= sv_newmortal(); RXi_GET_DECL(r,ri); @@ -15618,7 +15616,6 @@ void Perl_regprop(pTHX_ const regexp *prog, SV *sv, const regnode *o, const regmatch_info *reginfo) { #ifdef DEBUGGING - dVAR; int k; /* Should be synchronized with * ANYOF_ #xdefines in regcomp.h */ @@ -16719,7 +16716,6 @@ S_dumpuntil(pTHX_ const regexp *r, const regnode *start, const regnode *node, const regnode *last, const regnode *plast, SV* sv, I32 indent, U32 depth) { - dVAR; U8 op = PSEUDO; /* Arbitrary non-END op. */ const regnode *next; const regnode *optstart= NULL; @@ -385,8 +385,6 @@ S_new_SV(pTHX_ const char *file, int line, const char *func) STATIC void S_del_sv(pTHX_ SV *p) { - dVAR; - PERL_ARGS_ASSERT_DEL_SV; if (DEBUG_D_TEST) { @@ -1855,7 +1853,6 @@ S_sv_display(pTHX_ SV *const sv, char *tmpbuf, STRLEN tmpbuf_size) { STATIC void S_not_a_number(pTHX_ SV *const sv) { - dVAR; char tmpbuf[64]; const char *pv; @@ -1876,7 +1873,6 @@ S_not_a_number(pTHX_ SV *const sv) STATIC void S_not_incrementable(pTHX_ SV *const sv) { - dVAR; char tmpbuf[64]; const char *pv; @@ -27,8 +27,6 @@ void Perl_taint_proper(pTHX_ const char *f, const char *const s) { #if defined(HAS_SETEUID) && defined(DEBUGGING) - dVAR; - PERL_ARGS_ASSERT_TAINT_PROPER; { @@ -378,8 +378,6 @@ static struct debug_tokens { STATIC int S_tokereport(pTHX_ I32 rv, const YYSTYPE* lvalp) { - dVAR; - PERL_ARGS_ASSERT_TOKEREPORT; if (DEBUG_T_TEST) { |