diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-08-16 14:00:51 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-08-16 14:00:51 -0400 |
commit | 896e28812c51b9ffdf3efc00c7d7ef699e380a58 (patch) | |
tree | aaa25e093fb4a2ac4c57609e1f745e5ac0734ca8 /src/locale/__load_locale.c | |
parent | 0b0d1fe1d4fbf8560577d81e5af0549683eac8ba (diff) |
formatting
Diffstat (limited to 'src/locale/__load_locale.c')
-rw-r--r-- | src/locale/__load_locale.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/locale/__load_locale.c b/src/locale/__load_locale.c index f25392f8..66177eb6 100644 --- a/src/locale/__load_locale.c +++ b/src/locale/__load_locale.c @@ -1,19 +1,11 @@ -#include "locale.h" -#include "limits.h" -#include "stdio.h" -#include "string.h" +#include <locale.h> +#include <limits.h> +#include <stdio.h> +#include <string.h> #include "_locale.h" #include "ctype/_ctype.h" -#define LC_COLLATE_MASK (1<<0) -#define LC_CTYPE_MASK (1<<1) -#define LC_MONETARY_MASK (1<<2) -#define LC_NUMERIC_MASK (1<<3) -#define LC_TIME_MASK (1<<4) -#define LC_MESSAGES_MASK (1<<5) -#define LC_ALL_MASK (0xff) - #define setall(_map, _input, _mask) do { \ size_t _i; \ for (_i = 0; _i < sizeof(_input) - 1; _i++) { \ @@ -218,6 +210,7 @@ char * __load_locale(struct __locale_t *loc, int mask, const char *name) } } + #ifdef LC_MESSAGES if (mask & LC_MESSAGES_MASK) { strcpy(loc->messages, name); @@ -230,6 +223,7 @@ char * __load_locale(struct __locale_t *loc, int mask, const char *name) loc->lc_messages.noexpr = NULL; } } + #endif return (char*)name; } |