Skip to content

Commit

Permalink
Make LC_MONETARY and LC_NUMERIC indexes adjacent
Browse files Browse the repository at this point in the history
We have indexes we use for locale categories.  The next commit will want
these two to be in consecutive order, with LC_NUMERIC first.

This commit just moves their definitions around.
  • Loading branch information
khwilliamson committed Nov 13, 2023
1 parent 42bdbb1 commit 1c8ebe6
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions locale_table.h
Expand Up @@ -52,6 +52,18 @@
# define USE_LOCALE_NUMERIC
# endif
#endif
#ifdef LC_MONETARY

PERL_LOCALE_TABLE_ENTRY(MONETARY, NULL)

# ifdef NO_LOCALE_MONETARY
# define HAS_IGNORED_LOCALE_CATEGORIES_
# define LC_MONETARY_AVAIL_ false
# else
# define LC_MONETARY_AVAIL_ true
# define USE_LOCALE_MONETARY
# endif
#endif
#ifdef LC_COLLATE

/* Perl outsources all its collation efforts to the libc strxfrm(), so
Expand Down Expand Up @@ -95,18 +107,6 @@
# define USE_LOCALE_MESSAGES
# endif
#endif
#ifdef LC_MONETARY

PERL_LOCALE_TABLE_ENTRY(MONETARY, NULL)

# ifdef NO_LOCALE_MONETARY
# define HAS_IGNORED_LOCALE_CATEGORIES_
# define LC_MONETARY_AVAIL_ false
# else
# define LC_MONETARY_AVAIL_ true
# define USE_LOCALE_MONETARY
# endif
#endif
#ifdef LC_ADDRESS

PERL_LOCALE_TABLE_ENTRY(ADDRESS, NULL)
Expand Down

0 comments on commit 1c8ebe6

Please sign in to comment.