Skip to content

Commit

Permalink
locale.c: Move a macro definition earlier in the file
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed May 6, 2023
1 parent 2bfbc2d commit 4ff029c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions locale.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@
* creation, so can be a file-level static. (Must come before #including
* perl.h) */
#include "config.h"

/* Returns the Unix errno portion; ignoring any others. This is a macro here
* instead of putting it into perl.h, because unclear to khw what should be
* done generally. */
#define GET_ERRNO saved_errno

#ifdef DEBUGGING
static int debug_initialization = 0;
# define DEBUG_INITIALIZATION_set(v) (debug_initialization = v)
Expand Down Expand Up @@ -337,11 +343,6 @@ S_mortalized_pv_copy(pTHX_ const char * const pv)

#endif

/* Returns the Unix errno portion; ignoring any others. This is a macro here
* instead of putting it into perl.h, because unclear to khw what should be
* done generally. */
#define GET_ERRNO saved_errno

/* Default values come from the C locale */
#define C_codeset "ANSI_X3.4-1968" /* Only in some Configurations, and usually
a single instance, so is a #define */
Expand Down

0 comments on commit 4ff029c

Please sign in to comment.