This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7bfe3bf
)
PERL_GLOBAL_STRUCT_PRIVATE: fix scope.c:arg_counts
author
David Mitchell
<davem@iabyn.com>
Fri, 17 Mar 2017 13:40:03 +0000
(13:40 +0000)
committer
David Mitchell
<davem@iabyn.com>
Fri, 17 Mar 2017 14:10:14 +0000
(14:10 +0000)
t/porting/libperl.t under -DPERL_GLOBAL_STRUCT_PRIVATE doesn't like
non-const static data structures
scope.c
patch
|
blob
|
blame
|
history
diff --git
a/scope.c
b/scope.c
index
c51a125
..
a7c17e8
100644
(file)
--- a/
scope.c
+++ b/
scope.c
@@
-788,7
+788,7
@@
Perl_save_alloc(pTHX_ I32 size, I32 pad)
}
}
-static U8 arg_counts[] = {
+static
const
U8 arg_counts[] = {
0, /* SAVEt_ALLOC */
0, /* SAVEt_CLEARPADRANGE */
0, /* SAVEt_CLEARSV */
0, /* SAVEt_ALLOC */
0, /* SAVEt_CLEARPADRANGE */
0, /* SAVEt_CLEARSV */