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/errno/EDOM.c | 12 ------------ src/errno/EDOM.h | 12 ++++++++++++ src/errno/ERANGE.c | 11 ----------- src/errno/ERANGE.h | 11 +++++++++++ src/errno/errno.c | 19 ------------------- src/errno/errno.h | 19 +++++++++++++++++++ 6 files changed, 42 insertions(+), 42 deletions(-) delete mode 100644 src/errno/EDOM.c create mode 100644 src/errno/EDOM.h delete mode 100644 src/errno/ERANGE.c create mode 100644 src/errno/ERANGE.h delete mode 100644 src/errno/errno.c create mode 100644 src/errno/errno.h (limited to 'src/errno') diff --git a/src/errno/EDOM.c b/src/errno/EDOM.c deleted file mode 100644 index ea1999d7..00000000 --- a/src/errno/EDOM.c +++ /dev/null @@ -1,12 +0,0 @@ -#define EDOM (1) - -/** domain error **/ - -/*** -is used to indicate that an argument supplied to a function is outside the -defined input domain. -***/ - -/* -STDC(1) -*/ diff --git a/src/errno/EDOM.h b/src/errno/EDOM.h new file mode 100644 index 00000000..ea1999d7 --- /dev/null +++ b/src/errno/EDOM.h @@ -0,0 +1,12 @@ +#define EDOM (1) + +/** domain error **/ + +/*** +is used to indicate that an argument supplied to a function is outside the +defined input domain. +***/ + +/* +STDC(1) +*/ diff --git a/src/errno/ERANGE.c b/src/errno/ERANGE.c deleted file mode 100644 index c6fb0bdf..00000000 --- a/src/errno/ERANGE.c +++ /dev/null @@ -1,11 +0,0 @@ -#define ERANGE (2) - -/** out of range **/ - -/*** -is used to indicated that the result of an operation is too large or too small. -***/ - -/* -STDC(1) -*/ diff --git a/src/errno/ERANGE.h b/src/errno/ERANGE.h new file mode 100644 index 00000000..c6fb0bdf --- /dev/null +++ b/src/errno/ERANGE.h @@ -0,0 +1,11 @@ +#define ERANGE (2) + +/** out of range **/ + +/*** +is used to indicated that the result of an operation is too large or too small. +***/ + +/* +STDC(1) +*/ diff --git a/src/errno/errno.c b/src/errno/errno.c deleted file mode 100644 index c0f379c5..00000000 --- a/src/errno/errno.c +++ /dev/null @@ -1,19 +0,0 @@ -#define errno (*__errno()) - -/** get system errors **/ - -/*** -is a modifiable lvalue of type TYPE(int) which is used to -indicate errors in standard library functions. It may be a macro or an -identifier with external linkage. It is initialized to 0 at program start, -but no function in the standard library will set it to 0. Library functions -may set it to a non-zero value if its use is not documented in their -description. -***/ - -/* -UNSPECIFIED(Whether THIS() is declared as a macro or an identifier with external linkage (C89, C95, and C99 only)) -UNDEFINED(A macro definition of THIS() is suppressed) -UNDEFINED(A program defines an identifier named THIS()) -STDC(1) -*/ diff --git a/src/errno/errno.h b/src/errno/errno.h new file mode 100644 index 00000000..c0f379c5 --- /dev/null +++ b/src/errno/errno.h @@ -0,0 +1,19 @@ +#define errno (*__errno()) + +/** get system errors **/ + +/*** +is a modifiable lvalue of type TYPE(int) which is used to +indicate errors in standard library functions. It may be a macro or an +identifier with external linkage. It is initialized to 0 at program start, +but no function in the standard library will set it to 0. Library functions +may set it to a non-zero value if its use is not documented in their +description. +***/ + +/* +UNSPECIFIED(Whether THIS() is declared as a macro or an identifier with external linkage (C89, C95, and C99 only)) +UNDEFINED(A macro definition of THIS() is suppressed) +UNDEFINED(A program defines an identifier named THIS()) +STDC(1) +*/ -- cgit v1.2.1