Ap |SV* |filter_add |filter_t funcp|SV* datasv
Ap |void |filter_del |filter_t funcp
Ap |I32 |filter_read |int idx|SV* buffer|int maxlen
-Ap |const char** |get_op_descs
-Ap |const char** |get_op_names
+Ap |char** |get_op_descs
+Ap |char** |get_op_names
p |const char* |get_no_modify
p |U32* |get_opargs
Ap |PPADDR_t*|get_ppaddr
Apd |char* |sv_recode_to_utf8 |SV* sv|SV *encoding
Apd |bool |sv_cat_decode |SV* dsv|SV *encoding|SV *ssv|int *offset \
|char* tstr|int tlen
-Apd |const char*|sv_reftype |const SV* sv|int ob
+Apd |char* |sv_reftype |const SV* sv|int ob
Apd |void |sv_replace |SV* sv|SV* nsv
Apd |void |sv_report_used
Apd |void |sv_reset |const char* s|HV* stash
Ap |void |sys_intern_init
#endif
-Ap |const char *|custom_op_name |const OP* op
-Ap |const char *|custom_op_desc |const OP* op
+Ap |char * |custom_op_name |const OP* op
+Ap |char * |custom_op_desc |const OP* op
#if defined(PERL_COPY_ON_WRITE)
pMX |int |sv_release_IVX |SV *sv
U32 gp_cvgen; /* generational validity of cached gv_cv */
U32 gp_flags; /* XXX unused */
line_t gp_line; /* line first declared at (for -w) */
- const char * gp_file; /* file first declared in (for -w) */
+ char * gp_file; /* file first declared in (for -w) */
};
#define GvXPVGV(gv) ((XPVGV*)SvANY(gv))
LEAVE;
}
-
-
-const char* Perl_custom_op_name(pTHX_ const OP* o)
+char*
+Perl_custom_op_name(pTHX_ const OP* o)
{
const IV index = PTR2IV(o->op_ppaddr);
SV* keysv;
return SvPV_nolen(HeVAL(he));
}
-const char* Perl_custom_op_desc(pTHX_ const OP* o)
+char*
+Perl_custom_op_desc(pTHX_ const OP* o)
{
const IV index = PTR2IV(o->op_ppaddr);
SV* keysv;
return SvPV_nolen(HeVAL(he));
}
-
#include "XSUB.h"
/* Efficient sub that returns a constant scalar value. */
PL_op_desc[(o)->op_type])
#ifndef DOINIT
-EXT const char *PL_op_name[];
+EXT char *PL_op_name[];
#else
-EXT const char *PL_op_name[] = {
+EXT char *PL_op_name[] = {
"null",
"stub",
"scalar",
#endif
#ifndef DOINIT
-EXT const char *PL_op_desc[];
+EXT char *PL_op_desc[];
#else
-EXT const char *PL_op_desc[] = {
+EXT char *PL_op_desc[] = {
"null operation",
"stub",
"scalar",
PL_op_desc[(o)->op_type])
#ifndef DOINIT
-EXT const char *PL_op_name[];
+EXT char *PL_op_name[];
#else
-EXT const char *PL_op_name[] = {
+EXT char *PL_op_name[] = {
END
for (@ops) {
print <<END;
#ifndef DOINIT
-EXT const char *PL_op_desc[];
+EXT char *PL_op_desc[];
#else
-EXT const char *PL_op_desc[] = {
+EXT char *PL_op_desc[] = {
END
for (@ops) {
Returns a string describing what the SV is a reference to.
- const char* sv_reftype(const SV* sv, int ob)
+ char* sv_reftype(const SV* sv, int ob)
=for hackers
Found in file sv.c
PERL_CALLCONV SV* Perl_filter_add(pTHX_ filter_t funcp, SV* datasv);
PERL_CALLCONV void Perl_filter_del(pTHX_ filter_t funcp);
PERL_CALLCONV I32 Perl_filter_read(pTHX_ int idx, SV* buffer, int maxlen);
-PERL_CALLCONV const char** Perl_get_op_descs(pTHX);
-PERL_CALLCONV const char** Perl_get_op_names(pTHX);
+PERL_CALLCONV char** Perl_get_op_descs(pTHX);
+PERL_CALLCONV char** Perl_get_op_names(pTHX);
PERL_CALLCONV const char* Perl_get_no_modify(pTHX);
PERL_CALLCONV U32* Perl_get_opargs(pTHX);
PERL_CALLCONV PPADDR_t* Perl_get_ppaddr(pTHX);
PERL_CALLCONV char* Perl_sv_pvbyten_force(pTHX_ SV* sv, STRLEN* lp);
PERL_CALLCONV char* Perl_sv_recode_to_utf8(pTHX_ SV* sv, SV *encoding);
PERL_CALLCONV bool Perl_sv_cat_decode(pTHX_ SV* dsv, SV *encoding, SV *ssv, int *offset, char* tstr, int tlen);
-PERL_CALLCONV const char* Perl_sv_reftype(pTHX_ const SV* sv, int ob);
+PERL_CALLCONV char* Perl_sv_reftype(pTHX_ const SV* sv, int ob);
PERL_CALLCONV void Perl_sv_replace(pTHX_ SV* sv, SV* nsv);
PERL_CALLCONV void Perl_sv_report_used(pTHX);
PERL_CALLCONV void Perl_sv_reset(pTHX_ const char* s, HV* stash);
PERL_CALLCONV void Perl_sys_intern_init(pTHX);
#endif
-PERL_CALLCONV const char * Perl_custom_op_name(pTHX_ const OP* op);
-PERL_CALLCONV const char * Perl_custom_op_desc(pTHX_ const OP* op);
+PERL_CALLCONV char * Perl_custom_op_name(pTHX_ const OP* op);
+PERL_CALLCONV char * Perl_custom_op_desc(pTHX_ const OP* op);
#if defined(PERL_COPY_ON_WRITE)
PERL_CALLCONV int Perl_sv_release_IVX(pTHX_ SV *sv);
=cut
*/
-const char *
+char *
Perl_sv_reftype(pTHX_ const SV *sv, int ob)
{
if (ob && SvOBJECT(sv)) {
- const char *name = HvNAME(SvSTASH(sv));
+ char *name = HvNAME(SvSTASH(sv));
return name ? name : "__ANON__";
}
else {
case SVt_PVNV:
case SVt_PVMG:
case SVt_PVBM:
- if (SvVOK(sv))
+ if (SvVOK(sv))
return "VSTRING";
if (SvROK(sv))
return "REF";
else
return "SCALAR";
-
+
case SVt_PVLV: return SvROK(sv) ? "REF"
/* tied lvalues should appear to be
* scalars for backwards compatitbility */
}
#endif
-const char **
+char **
Perl_get_op_names(pTHX)
{
return PL_op_name;
}
-const char **
+char **
Perl_get_op_descs(pTHX)
{
return PL_op_desc;