develooper Front page | perl.perl5.porters | Postings from August 2016

Why does perlcall.pod have dSP before call_argv?

Thread Next
From:
Father Chrysostomos
Date:
August 12, 2016 05:23
Subject:
Why does perlcall.pod have dSP before call_argv?
Message ID:
20160812052354.3208.qmail@lists-nntp.develooper.com
<perlcall.pod>
And here is an example of I<call_argv> which will call
I<PrintList>.

    static char * words[] = {"alpha", "beta", "gamma", "delta", NULL};

    static void
    call_PrintList()
    {
        dSP;

        call_argv("PrintList", G_DISCARD, words);
    }
</perlcall.pod>

Why is that dSP there?  Does it do anything?  It looks like a mistake
to me.  Can it be deleted?

It appears to go back to the first version of this document, in
a0d0e21ea (perl 5.000).


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About