From 77d0069e522400b63c2182fcc5f852718e4e6f2c Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sun, 16 Aug 2020 14:11:32 -0400 Subject: rename files that should never be compiled on their own to .h --- src/locale/LC_ALL.c | 12 --------- src/locale/LC_ALL.h | 12 +++++++++ src/locale/LC_COLLATE.c | 12 --------- src/locale/LC_COLLATE.h | 12 +++++++++ src/locale/LC_CTYPE.c | 13 ---------- src/locale/LC_CTYPE.h | 13 ++++++++++ src/locale/LC_MONETARY.c | 12 --------- src/locale/LC_MONETARY.h | 12 +++++++++ src/locale/LC_NUMERIC.c | 13 ---------- src/locale/LC_NUMERIC.h | 13 ++++++++++ src/locale/LC_TIME.c | 12 --------- src/locale/LC_TIME.h | 12 +++++++++ src/locale/struct_lconv.c | 65 ----------------------------------------------- src/locale/struct_lconv.h | 65 +++++++++++++++++++++++++++++++++++++++++++++++ 14 files changed, 139 insertions(+), 139 deletions(-) delete mode 100644 src/locale/LC_ALL.c create mode 100644 src/locale/LC_ALL.h delete mode 100644 src/locale/LC_COLLATE.c create mode 100644 src/locale/LC_COLLATE.h delete mode 100644 src/locale/LC_CTYPE.c create mode 100644 src/locale/LC_CTYPE.h delete mode 100644 src/locale/LC_MONETARY.c create mode 100644 src/locale/LC_MONETARY.h delete mode 100644 src/locale/LC_NUMERIC.c create mode 100644 src/locale/LC_NUMERIC.h delete mode 100644 src/locale/LC_TIME.c create mode 100644 src/locale/LC_TIME.h delete mode 100644 src/locale/struct_lconv.c create mode 100644 src/locale/struct_lconv.h (limited to 'src/locale') diff --git a/src/locale/LC_ALL.c b/src/locale/LC_ALL.c deleted file mode 100644 index 12702e1a..00000000 --- a/src/locale/LC_ALL.c +++ /dev/null @@ -1,12 +0,0 @@ -#define LC_ALL (0) - -/** all locale categories **/ - -/*** -is used as the ARGUMENT(category) in a call to FUNCTION(setlocale) to operate -on all categories of the current locale. -***/ - -/* -STDC(1) -*/ diff --git a/src/locale/LC_ALL.h b/src/locale/LC_ALL.h new file mode 100644 index 00000000..12702e1a --- /dev/null +++ b/src/locale/LC_ALL.h @@ -0,0 +1,12 @@ +#define LC_ALL (0) + +/** all locale categories **/ + +/*** +is used as the ARGUMENT(category) in a call to FUNCTION(setlocale) to operate +on all categories of the current locale. +***/ + +/* +STDC(1) +*/ diff --git a/src/locale/LC_COLLATE.c b/src/locale/LC_COLLATE.c deleted file mode 100644 index ea46b97f..00000000 --- a/src/locale/LC_COLLATE.c +++ /dev/null @@ -1,12 +0,0 @@ -#define LC_COLLATE (1) - -/** locale collation category **/ - -/*** -is used as the ARGUMENT(category) in a call to FUNCTION(setlocale) to operate -on the portion of the locale that affects sorting and collating strings. -***/ - -/* -STDC(1) -*/ diff --git a/src/locale/LC_COLLATE.h b/src/locale/LC_COLLATE.h new file mode 100644 index 00000000..ea46b97f --- /dev/null +++ b/src/locale/LC_COLLATE.h @@ -0,0 +1,12 @@ +#define LC_COLLATE (1) + +/** locale collation category **/ + +/*** +is used as the ARGUMENT(category) in a call to FUNCTION(setlocale) to operate +on the portion of the locale that affects sorting and collating strings. +***/ + +/* +STDC(1) +*/ diff --git a/src/locale/LC_CTYPE.c b/src/locale/LC_CTYPE.c deleted file mode 100644 index cfe07f22..00000000 --- a/src/locale/LC_CTYPE.c +++ /dev/null @@ -1,13 +0,0 @@ -#define LC_CTYPE (2) - -/** locale character handling category **/ - -/*** -is used as the ARGUMENT(category) in a call to FUNCTION(setlocale) to operate -on the portion of the locale that affects classifying and transforming -individual characters. -***/ - -/* -STDC(1) -*/ diff --git a/src/locale/LC_CTYPE.h b/src/locale/LC_CTYPE.h new file mode 100644 index 00000000..cfe07f22 --- /dev/null +++ b/src/locale/LC_CTYPE.h @@ -0,0 +1,13 @@ +#define LC_CTYPE (2) + +/** locale character handling category **/ + +/*** +is used as the ARGUMENT(category) in a call to FUNCTION(setlocale) to operate +on the portion of the locale that affects classifying and transforming +individual characters. +***/ + +/* +STDC(1) +*/ diff --git a/src/locale/LC_MONETARY.c b/src/locale/LC_MONETARY.c deleted file mode 100644 index 82b5ca1c..00000000 --- a/src/locale/LC_MONETARY.c +++ /dev/null @@ -1,12 +0,0 @@ -#define LC_MONETARY (3) - -/** locale monetary formatting category **/ - -/*** -is used as the ARGUMENT(category) in a call to FUNCTION(setlocale) to operate -on the portion of the locale that affects formatting monetary values. -***/ - -/* -STDC(1) -*/ diff --git a/src/locale/LC_MONETARY.h b/src/locale/LC_MONETARY.h new file mode 100644 index 00000000..82b5ca1c --- /dev/null +++ b/src/locale/LC_MONETARY.h @@ -0,0 +1,12 @@ +#define LC_MONETARY (3) + +/** locale monetary formatting category **/ + +/*** +is used as the ARGUMENT(category) in a call to FUNCTION(setlocale) to operate +on the portion of the locale that affects formatting monetary values. +***/ + +/* +STDC(1) +*/ diff --git a/src/locale/LC_NUMERIC.c b/src/locale/LC_NUMERIC.c deleted file mode 100644 index 1c874956..00000000 --- a/src/locale/LC_NUMERIC.c +++ /dev/null @@ -1,13 +0,0 @@ -#define LC_NUMERIC (4) - -/** locale number formatting category **/ - -/*** -is used as the ARGUMENT(category) in a call to FUNCTION(setlocale) to operate -on the portion of the locale that affects formatting numeric values, except -for monetary values. -***/ - -/* -STDC(1) -*/ diff --git a/src/locale/LC_NUMERIC.h b/src/locale/LC_NUMERIC.h new file mode 100644 index 00000000..1c874956 --- /dev/null +++ b/src/locale/LC_NUMERIC.h @@ -0,0 +1,13 @@ +#define LC_NUMERIC (4) + +/** locale number formatting category **/ + +/*** +is used as the ARGUMENT(category) in a call to FUNCTION(setlocale) to operate +on the portion of the locale that affects formatting numeric values, except +for monetary values. +***/ + +/* +STDC(1) +*/ diff --git a/src/locale/LC_TIME.c b/src/locale/LC_TIME.c deleted file mode 100644 index f97a70a8..00000000 --- a/src/locale/LC_TIME.c +++ /dev/null @@ -1,12 +0,0 @@ -#define LC_TIME (5) - -/** locale time formatting category **/ - -/*** -is used as the ARGUMENT(category) in a call to FUNCTION(setlocale) to operate -on the portion of the locale that affects formatting date and time values. -***/ - -/* -STDC(1) -*/ diff --git a/src/locale/LC_TIME.h b/src/locale/LC_TIME.h new file mode 100644 index 00000000..f97a70a8 --- /dev/null +++ b/src/locale/LC_TIME.h @@ -0,0 +1,12 @@ +#define LC_TIME (5) + +/** locale time formatting category **/ + +/*** +is used as the ARGUMENT(category) in a call to FUNCTION(setlocale) to operate +on the portion of the locale that affects formatting date and time values. +***/ + +/* +STDC(1) +*/ diff --git a/src/locale/struct_lconv.c b/src/locale/struct_lconv.c deleted file mode 100644 index 561c59c2..00000000 --- a/src/locale/struct_lconv.c +++ /dev/null @@ -1,65 +0,0 @@ -struct lconv { - /** The character that separates the whole and decimal portions of non-monetary values **/ - char *decimal_point; /* "." */ - /** The character that separates groups of digits in the whole portion of non-monetary values **/ - char *thousands_sep; /* "" */ - /** A string indicating how to group digits of monetary values */ - char *grouping; /* "" */ - /** The three character ISO 4217 currency symbol of the current locale, followed by a fourth separating character **/ - char *int_curr_symbol; /* "" */ - /** The locale currency symbol in the current locale **/ - char *currency_symbol; /* "" */ - /** The character used for decimal points in monetary values **/ - char *mon_decimal_point; /* "" */ - /** The character separating digit groups in monetary values **/ - char *mon_thousands_sep; /* "" */ - /** A string indicating how to group digits in monetary values **/ - char *mon_grouping; /* "" */ - /** A string to indicate positive monetary values **/ - char *positive_sign; /* "" */ - /** A string to indicate negative monetary values **/ - char *negative_sign; /* "" */ - /** The number of digits after the decimal point in international monetary values **/ - char int_frac_digits; /* CHAR_MAX */ - /** The number of digits after the decimal point in monetary values **/ - char frac_digits; /* CHAR_MAX */ - /** Whether field(currency_symbol) precedes (1) or follows (0) positive monetary values **/ - char p_cs_precedes; /* CHAR_MAX */ - /** Whether field(currency_symbol) is (1) or is not (0) separated from positive monetary values by a space **/ - char p_sep_by_space; /* CHAR_MAX */ - /** Whether field(currency_symbol) precedes (1) or follows (0) negative monetary values **/ - char n_cs_precedes; /* CHAR_MAX */ - /** Whether field(currency_symbol) is (1) or is not(0) separated from negative monetary values by a space **/ - char n_sep_by_space; /* CHAR_MAX */ - /** The position of field(positive_sign) for positive monetary values **/ - char p_sign_posn; /* CHAR_MAX */ - /** The position of field(positive_sign) for negative monetary values **/ - char n_sign_posn; /* CHAR_MAX */ - #if __STDC_VERSION__ >= 199901L - /** Whether field(currency_symbol) precedes (1) or follows (0) positive international monetary values **/ - char int_p_cs_precedes; /* CHAR_MAX */ - /** Whether field(currency_symbol) is (1) or is not (0) separated from positive international monetary values by a space **/ - char int_p_sep_by_space; /* CHAR_MAX */ - /** Whether field(currency_symbol) precedes (1) or follows (0) negative international monetary values **/ - char int_n_cs_precedes; /* CHAR_MAX */ - /** Whether field(currency_symbol) is (1) or is not(0) separated from negative international monetary values by a space **/ - char int_n_sep_by_space; /* CHAR_MAX */ - /** The position of field(positive_sign) for positive international monetary values **/ - char int_p_sign_posn; /* CHAR_MAX */ - /** The position of field(positive_sign) for negative international monetary values **/ - char int_n_sign_posn; /* CHAR_MAX */ - #else - 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; - #endif -}; - -/* values specified in comments are for the "C" locale */ - -/* -STDC(1) -*/ diff --git a/src/locale/struct_lconv.h b/src/locale/struct_lconv.h new file mode 100644 index 00000000..561c59c2 --- /dev/null +++ b/src/locale/struct_lconv.h @@ -0,0 +1,65 @@ +struct lconv { + /** The character that separates the whole and decimal portions of non-monetary values **/ + char *decimal_point; /* "." */ + /** The character that separates groups of digits in the whole portion of non-monetary values **/ + char *thousands_sep; /* "" */ + /** A string indicating how to group digits of monetary values */ + char *grouping; /* "" */ + /** The three character ISO 4217 currency symbol of the current locale, followed by a fourth separating character **/ + char *int_curr_symbol; /* "" */ + /** The locale currency symbol in the current locale **/ + char *currency_symbol; /* "" */ + /** The character used for decimal points in monetary values **/ + char *mon_decimal_point; /* "" */ + /** The character separating digit groups in monetary values **/ + char *mon_thousands_sep; /* "" */ + /** A string indicating how to group digits in monetary values **/ + char *mon_grouping; /* "" */ + /** A string to indicate positive monetary values **/ + char *positive_sign; /* "" */ + /** A string to indicate negative monetary values **/ + char *negative_sign; /* "" */ + /** The number of digits after the decimal point in international monetary values **/ + char int_frac_digits; /* CHAR_MAX */ + /** The number of digits after the decimal point in monetary values **/ + char frac_digits; /* CHAR_MAX */ + /** Whether field(currency_symbol) precedes (1) or follows (0) positive monetary values **/ + char p_cs_precedes; /* CHAR_MAX */ + /** Whether field(currency_symbol) is (1) or is not (0) separated from positive monetary values by a space **/ + char p_sep_by_space; /* CHAR_MAX */ + /** Whether field(currency_symbol) precedes (1) or follows (0) negative monetary values **/ + char n_cs_precedes; /* CHAR_MAX */ + /** Whether field(currency_symbol) is (1) or is not(0) separated from negative monetary values by a space **/ + char n_sep_by_space; /* CHAR_MAX */ + /** The position of field(positive_sign) for positive monetary values **/ + char p_sign_posn; /* CHAR_MAX */ + /** The position of field(positive_sign) for negative monetary values **/ + char n_sign_posn; /* CHAR_MAX */ + #if __STDC_VERSION__ >= 199901L + /** Whether field(currency_symbol) precedes (1) or follows (0) positive international monetary values **/ + char int_p_cs_precedes; /* CHAR_MAX */ + /** Whether field(currency_symbol) is (1) or is not (0) separated from positive international monetary values by a space **/ + char int_p_sep_by_space; /* CHAR_MAX */ + /** Whether field(currency_symbol) precedes (1) or follows (0) negative international monetary values **/ + char int_n_cs_precedes; /* CHAR_MAX */ + /** Whether field(currency_symbol) is (1) or is not(0) separated from negative international monetary values by a space **/ + char int_n_sep_by_space; /* CHAR_MAX */ + /** The position of field(positive_sign) for positive international monetary values **/ + char int_p_sign_posn; /* CHAR_MAX */ + /** The position of field(positive_sign) for negative international monetary values **/ + char int_n_sign_posn; /* CHAR_MAX */ + #else + 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; + #endif +}; + +/* values specified in comments are for the "C" locale */ + +/* +STDC(1) +*/ -- cgit v1.2.1