mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 11:27:35 +00:00
LibC: Added additional fields to lconv struct
Added some additional fields to the lconv structure that were missing and set all their defaults.
This commit is contained in:
parent
d1c984da82
commit
57eb37160c
2 changed files with 45 additions and 0 deletions
|
@ -8,10 +8,34 @@ static char default_decimal_point[] = ".";
|
||||||
static char default_thousands_sep[] = ",";
|
static char default_thousands_sep[] = ",";
|
||||||
static char default_grouping[] = "\x03\x03";
|
static char default_grouping[] = "\x03\x03";
|
||||||
|
|
||||||
|
static char default_empty_string[] = "";
|
||||||
|
static char default_empty_value = 127;
|
||||||
|
|
||||||
static struct lconv default_locale = {
|
static struct lconv default_locale = {
|
||||||
default_decimal_point,
|
default_decimal_point,
|
||||||
default_thousands_sep,
|
default_thousands_sep,
|
||||||
default_grouping,
|
default_grouping,
|
||||||
|
default_empty_string,
|
||||||
|
default_empty_string,
|
||||||
|
default_empty_string,
|
||||||
|
default_empty_string,
|
||||||
|
default_empty_string,
|
||||||
|
default_empty_string,
|
||||||
|
default_empty_string,
|
||||||
|
default_empty_value,
|
||||||
|
default_empty_value,
|
||||||
|
default_empty_value,
|
||||||
|
default_empty_value,
|
||||||
|
default_empty_value,
|
||||||
|
default_empty_value,
|
||||||
|
default_empty_value,
|
||||||
|
default_empty_value,
|
||||||
|
default_empty_value,
|
||||||
|
default_empty_value,
|
||||||
|
default_empty_value,
|
||||||
|
default_empty_value,
|
||||||
|
default_empty_value,
|
||||||
|
default_empty_value
|
||||||
};
|
};
|
||||||
|
|
||||||
char* setlocale(int category, const char* locale)
|
char* setlocale(int category, const char* locale)
|
||||||
|
|
|
@ -17,6 +17,27 @@ struct lconv {
|
||||||
char* decimal_point;
|
char* decimal_point;
|
||||||
char* thousands_sep;
|
char* thousands_sep;
|
||||||
char* grouping;
|
char* grouping;
|
||||||
|
char* int_curr_symbol;
|
||||||
|
char* currency_symbol;
|
||||||
|
char* mon_decimal_point;
|
||||||
|
char* mon_thousands_sep;
|
||||||
|
char* mon_grouping;
|
||||||
|
char* positive_sign;
|
||||||
|
char* negative_sign;
|
||||||
|
char int_frac_digits;
|
||||||
|
char frac_digits;
|
||||||
|
char p_cs_precedes;
|
||||||
|
char p_sep_by_space;
|
||||||
|
char n_cs_precedes;
|
||||||
|
char n_sep_by_space;
|
||||||
|
char p_sign_posn;
|
||||||
|
char n_sign_posn;
|
||||||
|
char int_p_cs_precedes;
|
||||||
|
char int_p_sep_by_space;
|
||||||
|
char int_n_cs_precedes;
|
||||||
|
char int_n_sep_by_space;
|
||||||
|
char int_p_sign_posn;
|
||||||
|
char int_n_sign_posn;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct lconv* localeconv();
|
struct lconv* localeconv();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue