summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGisle Aas <gisle@aas.no>2005-11-04 21:08:03 -0800
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-11-07 12:20:59 +0000
commitf43a9a3142f71956ec256aa7b03ca89db65cbb0c (patch)
treee9732d63f56305fe09f3bf4b78e6c55323eb479f
parenta524427e6ceca2ff254244fa1710549aac1dcfba (diff)
downloadperl-f43a9a3142f71956ec256aa7b03ca89db65cbb0c.tar.gz
Missing static declarations
Message-ID: <lracgj1bv0.fsf@caliper.activestate.com> p4raw-id: //depot/perl@26032
-rwxr-xr-xgenpacksizetables.pl2
-rw-r--r--pp_pack.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/genpacksizetables.pl b/genpacksizetables.pl
index 5872e86a9c..9dffc2c6ca 100755
--- a/genpacksizetables.pl
+++ b/genpacksizetables.pl
@@ -38,7 +38,7 @@ sub make_tables {
$unpredictable, $nocsum, $size, $condition);
}
- my $text = "const packprops_t packprops[512] = {\n";
+ my $text = "STATIC const packprops_t packprops[512] = {\n";
foreach my $arrayname (qw(normal shrieking)) {
my $array = $arrays{$arrayname} ||
die "No defined entries in $arrayname";
diff --git a/pp_pack.c b/pp_pack.c
index 24faef5325..b8e94a1e9e 100644
--- a/pp_pack.c
+++ b/pp_pack.c
@@ -369,7 +369,7 @@ S_mul128(pTHX_ SV *sv, U8 m)
typedef U8 packprops_t;
#if 'J'-'I' == 1
/* ASCII */
-const packprops_t packprops[512] = {
+STATIC const packprops_t packprops[512] = {
/* normal */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -490,7 +490,7 @@ const packprops_t packprops[512] = {
};
#else
/* EBCDIC (or bust) */
-const packprops_t packprops[512] = {
+STATIC const packprops_t packprops[512] = {
/* normal */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,