Skip to content

Commit

Permalink
locale.c: Change parameter name for static function
Browse files Browse the repository at this point in the history
category_locales_list is somewhat more descriptive than individ_locales
  • Loading branch information
khwilliamson committed May 6, 2023
1 parent 25b59bf commit b0b5066
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion embed.fnc
Expand Up @@ -4442,7 +4442,7 @@ S |const char *|less_dicey_setlocale_r \
( !defined(LC_ALL) || defined(USE_POSIX_2008_LOCALE) || \
defined(WIN32) )
S |const char *|calculate_LC_ALL_string \
|NN const char **individ_locales
|NN const char **category_locales_list
# endif
# if defined(WIN32)
ST |wchar_t *|Win_byte_string_to_wstring \
Expand Down
6 changes: 3 additions & 3 deletions locale.c
Expand Up @@ -1802,7 +1802,7 @@ const char *
# ifdef USE_QUERYLOCALE
S_calculate_LC_ALL_string(pTHX_ const locale_t cur_obj)
# else
S_calculate_LC_ALL_string(pTHX_ const char ** individ_locales)
S_calculate_LC_ALL_string(pTHX_ const char ** category_locales_list)
# endif

{
Expand Down Expand Up @@ -1862,7 +1862,7 @@ S_calculate_LC_ALL_string(pTHX_ const char ** individ_locales)
# ifdef USE_QUERYLOCALE
const char * entry = querylocale_l(i, cur_obj);
# else
const char * entry = individ_locales[i];
const char * entry = category_locales_list[i];
# endif

names_len += category_name_lengths[i]
Expand All @@ -1884,7 +1884,7 @@ S_calculate_LC_ALL_string(pTHX_ const char ** individ_locales)
# ifdef USE_QUERYLOCALE
const char * entry = querylocale_l(i, cur_obj);
# else
const char * entry = individ_locales[i];
const char * entry = category_locales_list[i];
# endif

new_len = my_strlcat(aggregate_locale, category_names[i], names_len);
Expand Down
4 changes: 2 additions & 2 deletions proto.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b0b5066

Please sign in to comment.