Ap |bool |is_utf8_xdigit |NN const U8 *p
Ap |bool |is_utf8_mark |NN const U8 *p
p |OP* |jmaybe |NN OP* arg
-p |I32 |keyword |NN char* d|I32 len
+p |I32 |keyword |NN const char* d|I32 len
Ap |void |leave_scope |I32 base
p |void |lex_end
p |void |lex_start |SV* line
*/
I32
-Perl_keyword (pTHX_ char *name, I32 len)
+Perl_keyword (pTHX_ const char *name, I32 len)
{
$switch
unknown:
=item SvCUR_set
-Set the length of the string which is in the SV. See C<SvCUR>.
+Set the current length of the string which is in the SV. See C<SvCUR>.
void SvCUR_set(SV* sv, STRLEN len)
=for hackers
Found in file sv.h
+=item SvIV_set
+
+Set the value of the IV pointer in sv to val.
+
+ void SvIV_set(SV* sv, IV val)
+
+=for hackers
+Found in file sv.h
+
=item SvLEN
Returns the size of the string buffer in the SV, not including any part
=for hackers
Found in file sv.h
+=item SvLEN_set
+
+Set the actual length of the string which is in the SV.
+
+ void SvLEN_set(SV* sv, STRLEN len)
+
+=for hackers
+Found in file sv.h
+
+=item SvMAGIC_set
+
+Set the value of the MAGIC pointer in sv to val.
+
+ void SvMAGIC_set(SV* sv, MAGIC* val)
+
+=for hackers
+Found in file sv.h
+
=item SvNIOK
Returns a boolean indicating whether the SV contains a number, integer or
=for hackers
Found in file sv.h
+=item SvNV_set
+
+Set the value of the IV pointer in sv to val.
+
+ void SvNV_set(SV* sv, NV val)
+
+=for hackers
+Found in file sv.h
+
=item SvOK
Returns a boolean indicating whether the value is an SV. It also tells
=for hackers
Found in file sv.h
+=item SvPV_set
+
+Set the value of the PV pointer in sv to val.
+
+ void SvPV_set(SV* sv, char* val)
+
+=for hackers
+Found in file sv.h
+
=item SvREFCNT
Returns the value of the object's reference count.
=for hackers
Found in file sv.h
+=item SvRV_set
+
+Set the value of the RV pointer in sv to val.
+
+ void SvRV_set(SV* sv, SV* val)
+
+=for hackers
+Found in file sv.h
+
=item SvSTASH
Returns the stash of the SV.
=for hackers
Found in file sv.h
+=item SvSTASH_set
+
+Set the value of the STASH pointer in sv to val.
+
+ void SvSTASH_set(SV* sv, STASH* val)
+
+=for hackers
+Found in file sv.h
+
=item SvTAINT
Taints an SV if tainting is enabled.
=for hackers
Found in file sv.h
+=item SvUV_set
+
+Set the value of the PV pointer in sv to val.
+
+ void SvUV_set(SV* sv, UV val)
+
+=for hackers
+Found in file sv.h
+
=item SvVOK
Returns a boolean indicating whether the SV contains a v-string.
__attribute__((nonnull(pTHX_1)));
PERL_CALLCONV OP* Perl_jmaybe(pTHX_ OP* arg)
__attribute__((nonnull(pTHX_1)));
-PERL_CALLCONV I32 Perl_keyword(pTHX_ char* d, I32 len)
+PERL_CALLCONV I32 Perl_keyword(pTHX_ const char* d, I32 len)
__attribute__((nonnull(pTHX_1)));
PERL_CALLCONV void Perl_leave_scope(pTHX_ I32 base);
PERL_CALLCONV void Perl_lex_end(pTHX);
=for apidoc Am|HV*|SvSTASH|SV* sv
Returns the stash of the SV.
+=for apidoc Am|void|SvIV_set|SV* sv|IV val
+Set the value of the IV pointer in sv to val.
+
+=for apidoc Am|void|SvNV_set|SV* sv|NV val
+Set the value of the IV pointer in sv to val.
+
+=for apidoc Am|void|SvPV_set|SV* sv|char* val
+Set the value of the PV pointer in sv to val.
+
+=for apidoc Am|void|SvUV_set|SV* sv|UV val
+Set the value of the PV pointer in sv to val.
+
+=for apidoc Am|void|SvRV_set|SV* sv|SV* val
+Set the value of the RV pointer in sv to val.
+
+=for apidoc Am|void|SvMAGIC_set|SV* sv|MAGIC* val
+Set the value of the MAGIC pointer in sv to val.
+
+=for apidoc Am|void|SvSTASH_set|SV* sv|STASH* val
+Set the value of the STASH pointer in sv to val.
+
=for apidoc Am|void|SvCUR_set|SV* sv|STRLEN len
-Set the length of the string which is in the SV. See C<SvCUR>.
+Set the current length of the string which is in the SV. See C<SvCUR>.
+
+=for apidoc Am|void|SvLEN_set|SV* sv|STRLEN len
+Set the actual length of the string which is in the SV.
=cut
*/
} \
} STMT_END
+#define SvPVX_const(sv) ((const char*)SvPVX(sv))
+
#define BmRARE(sv) ((XPVBM*) SvANY(sv))->xbm_rare
#define BmUSEFUL(sv) ((XPVBM*) SvANY(sv))->xbm_useful
#define BmPREVIOUS(sv) ((XPVBM*) SvANY(sv))->xbm_previous
*/
I32
-Perl_keyword (pTHX_ char *name, I32 len)
+Perl_keyword (pTHX_ const char *name, I32 len)
{
switch (len)
{