Skip to content

Commit

Permalink
locale.c: Don't ask a static fcn to be inlined
Browse files Browse the repository at this point in the history
It's too complicated to really be inlined, and the compiler can figure
things out itself given it is a static function
  • Loading branch information
khwilliamson committed May 9, 2021
1 parent 3f34849 commit d930626
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion embed.fnc
Expand Up @@ -3224,7 +3224,7 @@ ST |const char*|my_langinfo|const nl_item item|bool toggle
# else
ST |const char*|my_langinfo|const int item|bool toggle
# endif
iTR |const char *|save_to_buffer|NULLOK const char * string \
STR |const char *|save_to_buffer|NULLOK const char * string \
|NULLOK const char **buf \
|NULLOK Size_t *buf_size \
|const Size_t offset
Expand Down
2 changes: 1 addition & 1 deletion locale.c
Expand Up @@ -2606,7 +2606,7 @@ Perl_setlocale(const int category, const char * locale)

#ifdef USE_LOCALE

PERL_STATIC_INLINE const char *
STATIC const char *
S_save_to_buffer(const char * string, const char **buf, Size_t *buf_size,
const Size_t offset)
{
Expand Down
4 changes: 1 addition & 3 deletions proto.h
Expand Up @@ -5142,11 +5142,9 @@ STATIC void S_new_numeric(pTHX_ const char* newnum);
#define PERL_ARGS_ASSERT_NEW_NUMERIC
STATIC void S_restore_switched_locale(pTHX_ const int category, const char * const original_locale);
#define PERL_ARGS_ASSERT_RESTORE_SWITCHED_LOCALE
#ifndef PERL_NO_INLINE_FUNCTIONS
PERL_STATIC_INLINE const char * S_save_to_buffer(const char * string, const char **buf, Size_t *buf_size, const Size_t offset)
STATIC const char * S_save_to_buffer(const char * string, const char **buf, Size_t *buf_size, const Size_t offset)
__attribute__warn_unused_result__;
#define PERL_ARGS_ASSERT_SAVE_TO_BUFFER
#endif

STATIC void S_set_numeric_radix(pTHX_ const bool use_locale);
#define PERL_ARGS_ASSERT_SET_NUMERIC_RADIX
Expand Down

0 comments on commit d930626

Please sign in to comment.