FAQ
Because RETURN uses sp, which isn't declared without dSP, I saw this:

CC/DECC/NOANSI_ALIAS /Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=.obj/NoList/Define=PERL_CORE PP_SYS.C

RETURN;
....^
%CC-E-UNDECLARED, In this statement, "sp" is not declared.
at line number 3490 in file D0:[CRAIG.PERL]PP_SYS.C;1

before the patch that follows. Or should I have simply put the
RETURN before the #else? Practice seems a bit inconsistent in this
module.

--- pp_sys.c;-0 Sun Jun 24 14:28:30 2001
+++ pp_sys.c Sun Jun 24 22:28:15 2001
@@ -3470,22 +3470,23 @@
anum = UNLINK(tmps);
}
}
#endif
SETi( anum >= 0 );
RETURN;
}

PP(pp_link)
{
+ dSP;
#ifdef HAS_LINK
- dSP; dTARGET;
+ dTARGET;
STRLEN n_a;
char *tmps2 = POPpx;
char *tmps = SvPV(TOPs, n_a);
TAINT_PROPER("link");
SETi( PerlLIO_link(tmps, tmps2) >= 0 );
#else
DIE(aTHX_ PL_no_func, "link");
#endif
RETURN;
}
[end of patch]

Search Discussions

  • Jarkko Hietaniemi at Jun 25, 2001 at 3:30 pm

    On Sun, Jun 24, 2001 at 11:41:36PM -0500, Craig A. Berry wrote:
    Because RETURN uses sp, which isn't declared without dSP, I saw this:

    CC/DECC/NOANSI_ALIAS /Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=.obj/NoList/Define=PERL_CORE PP_SYS.C

    RETURN;
    ....^
    %CC-E-UNDECLARED, In this statement, "sp" is not declared.
    at line number 3490 in file D0:[CRAIG.PERL]PP_SYS.C;1

    before the patch that follows. Or should I have simply put the
    RETURN before the #else? Practice seems a bit inconsistent in this
    module.
    Thanks, applied.

    --
    $jhi++; # http://www.iki.fi/jhi/
    # There is this special biologist word we use for 'stable'.
    # It is 'dead'. -- Jack Cohen

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupperl5-porters @
categoriesperl
postedJun 25, '01 at 4:43a
activeJun 25, '01 at 3:30p
posts2
users2
websiteperl.org

People

Translate

site design / logo © 2022 Grokbase