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/stdlib/EXIT_FAILURE.c | 13 ------------- src/stdlib/EXIT_FAILURE.h | 13 +++++++++++++ src/stdlib/EXIT_SUCCESS.c | 13 ------------- src/stdlib/EXIT_SUCCESS.h | 13 +++++++++++++ src/stdlib/MB_CUR_MAX.c | 13 ------------- src/stdlib/MB_CUR_MAX.h | 13 +++++++++++++ src/stdlib/RAND_MAX.c | 12 ------------ src/stdlib/RAND_MAX.h | 12 ++++++++++++ src/stdlib/div_t.c | 15 --------------- src/stdlib/div_t.h | 15 +++++++++++++++ src/stdlib/ldiv_t.c | 15 --------------- src/stdlib/ldiv_t.h | 15 +++++++++++++++ 12 files changed, 81 insertions(+), 81 deletions(-) delete mode 100644 src/stdlib/EXIT_FAILURE.c create mode 100644 src/stdlib/EXIT_FAILURE.h delete mode 100644 src/stdlib/EXIT_SUCCESS.c create mode 100644 src/stdlib/EXIT_SUCCESS.h delete mode 100644 src/stdlib/MB_CUR_MAX.c create mode 100644 src/stdlib/MB_CUR_MAX.h delete mode 100644 src/stdlib/RAND_MAX.c create mode 100644 src/stdlib/RAND_MAX.h delete mode 100644 src/stdlib/div_t.c create mode 100644 src/stdlib/div_t.h delete mode 100644 src/stdlib/ldiv_t.c create mode 100644 src/stdlib/ldiv_t.h (limited to 'src/stdlib') diff --git a/src/stdlib/EXIT_FAILURE.c b/src/stdlib/EXIT_FAILURE.c deleted file mode 100644 index 14d28dc0..00000000 --- a/src/stdlib/EXIT_FAILURE.c +++ /dev/null @@ -1,13 +0,0 @@ -#define EXIT_FAILURE (1) - -/** unsuccessful program termination **/ - -/*** -is used as the ARGUMENT(status) argument to FUNCTION(exit) or FUNCTION(_Exit), -or the return value from FUNCTION(main), to indicate that the program is -exiting unsuccessfully. -***/ - -/* -STDC(1) -*/ diff --git a/src/stdlib/EXIT_FAILURE.h b/src/stdlib/EXIT_FAILURE.h new file mode 100644 index 00000000..14d28dc0 --- /dev/null +++ b/src/stdlib/EXIT_FAILURE.h @@ -0,0 +1,13 @@ +#define EXIT_FAILURE (1) + +/** unsuccessful program termination **/ + +/*** +is used as the ARGUMENT(status) argument to FUNCTION(exit) or FUNCTION(_Exit), +or the return value from FUNCTION(main), to indicate that the program is +exiting unsuccessfully. +***/ + +/* +STDC(1) +*/ diff --git a/src/stdlib/EXIT_SUCCESS.c b/src/stdlib/EXIT_SUCCESS.c deleted file mode 100644 index 3b0bc2fa..00000000 --- a/src/stdlib/EXIT_SUCCESS.c +++ /dev/null @@ -1,13 +0,0 @@ -#define EXIT_SUCCESS (0) - -/** successful program termination **/ - -/*** -is used as the ARGUMENT(status) argument to FUNCTION(exit) or FUNCTION(_Exit), -or the return value from FUNCTION(main), to indicate that the program is -exiting successfully. -***/ - -/* -STDC(1) -*/ diff --git a/src/stdlib/EXIT_SUCCESS.h b/src/stdlib/EXIT_SUCCESS.h new file mode 100644 index 00000000..3b0bc2fa --- /dev/null +++ b/src/stdlib/EXIT_SUCCESS.h @@ -0,0 +1,13 @@ +#define EXIT_SUCCESS (0) + +/** successful program termination **/ + +/*** +is used as the ARGUMENT(status) argument to FUNCTION(exit) or FUNCTION(_Exit), +or the return value from FUNCTION(main), to indicate that the program is +exiting successfully. +***/ + +/* +STDC(1) +*/ diff --git a/src/stdlib/MB_CUR_MAX.c b/src/stdlib/MB_CUR_MAX.c deleted file mode 100644 index 1b833ba4..00000000 --- a/src/stdlib/MB_CUR_MAX.c +++ /dev/null @@ -1,13 +0,0 @@ -#define MB_CUR_MAX (4) - -/** current longest multibyte character **/ - -/*** -is the maximum number of bytes required to store any character in the current -multibyte character set as specified by CONSTANT(LC_CTYPE). -***/ - -/* -VALUE_MAX(CONSTANT(MB_LEN_MAX)) -STDC(1) -*/ diff --git a/src/stdlib/MB_CUR_MAX.h b/src/stdlib/MB_CUR_MAX.h new file mode 100644 index 00000000..1b833ba4 --- /dev/null +++ b/src/stdlib/MB_CUR_MAX.h @@ -0,0 +1,13 @@ +#define MB_CUR_MAX (4) + +/** current longest multibyte character **/ + +/*** +is the maximum number of bytes required to store any character in the current +multibyte character set as specified by CONSTANT(LC_CTYPE). +***/ + +/* +VALUE_MAX(CONSTANT(MB_LEN_MAX)) +STDC(1) +*/ diff --git a/src/stdlib/RAND_MAX.c b/src/stdlib/RAND_MAX.c deleted file mode 100644 index 08b432e5..00000000 --- a/src/stdlib/RAND_MAX.c +++ /dev/null @@ -1,12 +0,0 @@ -#define RAND_MAX (32767) - -/** random number range **/ - -/*** -is the maximum value returned by FUNCTION(rand). -***/ - -/* -VALUE_MIN(32767) -STDC(1) -*/ diff --git a/src/stdlib/RAND_MAX.h b/src/stdlib/RAND_MAX.h new file mode 100644 index 00000000..08b432e5 --- /dev/null +++ b/src/stdlib/RAND_MAX.h @@ -0,0 +1,12 @@ +#define RAND_MAX (32767) + +/** random number range **/ + +/*** +is the maximum value returned by FUNCTION(rand). +***/ + +/* +VALUE_MIN(32767) +STDC(1) +*/ diff --git a/src/stdlib/div_t.c b/src/stdlib/div_t.c deleted file mode 100644 index 7d17ddf2..00000000 --- a/src/stdlib/div_t.c +++ /dev/null @@ -1,15 +0,0 @@ -typedef struct { - int quot; - int rem; -} div_t; - -/** quotient and remainder **/ - -/*** -is the type returned by FUNCTION(div) to hold both the quotient and remainder -of an integer division. -***/ - -/* -STDC(1) -*/ diff --git a/src/stdlib/div_t.h b/src/stdlib/div_t.h new file mode 100644 index 00000000..7d17ddf2 --- /dev/null +++ b/src/stdlib/div_t.h @@ -0,0 +1,15 @@ +typedef struct { + int quot; + int rem; +} div_t; + +/** quotient and remainder **/ + +/*** +is the type returned by FUNCTION(div) to hold both the quotient and remainder +of an integer division. +***/ + +/* +STDC(1) +*/ diff --git a/src/stdlib/ldiv_t.c b/src/stdlib/ldiv_t.c deleted file mode 100644 index 0dac2bb0..00000000 --- a/src/stdlib/ldiv_t.c +++ /dev/null @@ -1,15 +0,0 @@ -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -/** long quotient and remainder **/ - -/*** -is the type returned by FUNCTION(ldiv) to hold both the quotient and remainder -of an integer division. -***/ - -/* -STDC(1) -*/ diff --git a/src/stdlib/ldiv_t.h b/src/stdlib/ldiv_t.h new file mode 100644 index 00000000..0dac2bb0 --- /dev/null +++ b/src/stdlib/ldiv_t.h @@ -0,0 +1,15 @@ +typedef struct { + long int quot; + long int rem; +} ldiv_t; + +/** long quotient and remainder **/ + +/*** +is the type returned by FUNCTION(ldiv) to hold both the quotient and remainder +of an integer division. +***/ + +/* +STDC(1) +*/ -- cgit v1.2.1