summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embed.fnc3
-rw-r--r--op.c2
-rw-r--r--op.h2
-rw-r--r--proto.h2
4 files changed, 5 insertions, 4 deletions
diff --git a/embed.fnc b/embed.fnc
index eae7f257bf..1048331719 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -1858,7 +1858,8 @@ Mp |void |append_madprops|NULLOK MADPROP* tm|NULLOK OP* o|char slot
Mp |void |addmad |NULLOK MADPROP* tm|NULLOK MADPROP** root \
|char slot
Mp |MADPROP*|newMADsv |char key|NN SV* sv
-Mp |MADPROP*|newMADPROP |char key|char type|NULLOK void* val|I32 vlen
+Mp |MADPROP*|newMADPROP |char key|char type|NULLOK const void* val \
+ |I32 vlen
Mp |void |mad_free |NULLOK MADPROP* mp
# if defined(PERL_IN_TOKE_C) || defined(PERL_DECL_PROT)
diff --git a/op.c b/op.c
index d3fabf35b8..05ddc86cc8 100644
--- a/op.c
+++ b/op.c
@@ -2818,7 +2818,7 @@ Perl_newMADsv(pTHX_ char key, SV* sv)
}
MADPROP *
-Perl_newMADPROP(pTHX_ char key, char type, void* val, I32 vlen)
+Perl_newMADPROP(pTHX_ char key, char type, const void* val, I32 vlen)
{
MADPROP *mp;
Newxz(mp, 1, MADPROP);
diff --git a/op.h b/op.h
index f03251feac..f7ab172b13 100644
--- a/op.h
+++ b/op.h
@@ -635,7 +635,7 @@ struct loop {
struct madprop {
MADPROP* mad_next;
- void *mad_val;
+ const void *mad_val;
U32 mad_vlen;
/* short mad_count; */
char mad_key;
diff --git a/proto.h b/proto.h
index 3909b05a44..9ceac44461 100644
--- a/proto.h
+++ b/proto.h
@@ -4646,7 +4646,7 @@ PERL_CALLCONV void Perl_addmad(pTHX_ MADPROP* tm, MADPROP** root, char slot);
PERL_CALLCONV MADPROP* Perl_newMADsv(pTHX_ char key, SV* sv)
__attribute__nonnull__(pTHX_2);
-PERL_CALLCONV MADPROP* Perl_newMADPROP(pTHX_ char key, char type, void* val, I32 vlen);
+PERL_CALLCONV MADPROP* Perl_newMADPROP(pTHX_ char key, char type, const void* val, I32 vlen);
PERL_CALLCONV void Perl_mad_free(pTHX_ MADPROP* mp);
# if defined(PERL_IN_TOKE_C) || defined(PERL_DECL_PROT)