Skip to content

Commit

Permalink
locale.c: Declare three static arrays to be so.
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Apr 30, 2021
1 parent f94564b commit 904b0cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions locale.c
Expand Up @@ -167,7 +167,7 @@ S_stdize_locale(pTHX_ char *locs)
* the second array is their names. These arrays are in mostly arbitrary
* order. */

const int categories[] = {
STATIC const int categories[] = {

# ifdef USE_LOCALE_NUMERIC
LC_NUMERIC,
Expand Down Expand Up @@ -218,7 +218,7 @@ const int categories[] = {

/* The top-most real element is LC_ALL */

const char * const category_names[] = {
STATIC const char * const category_names[] = {

# ifdef USE_LOCALE_NUMERIC
"LC_NUMERIC",
Expand Down Expand Up @@ -460,7 +460,7 @@ S_category_name(const int category)

/* A third array, parallel to the ones above to map from category to its
* equivalent mask */
const int category_masks[] = {
STATIC const int category_masks[] = {
# ifdef USE_LOCALE_NUMERIC
LC_NUMERIC_MASK,
# endif
Expand Down

0 comments on commit 904b0cc

Please sign in to comment.