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/stdarg/va_arg.c | 21 --------------------- src/stdarg/va_arg.h | 21 +++++++++++++++++++++ src/stdarg/va_end.c | 16 ---------------- src/stdarg/va_end.h | 16 ++++++++++++++++ src/stdarg/va_list.c | 12 ------------ src/stdarg/va_list.h | 12 ++++++++++++ src/stdarg/va_start.c | 21 --------------------- src/stdarg/va_start.h | 21 +++++++++++++++++++++ 8 files changed, 70 insertions(+), 70 deletions(-) delete mode 100644 src/stdarg/va_arg.c create mode 100644 src/stdarg/va_arg.h delete mode 100644 src/stdarg/va_end.c create mode 100644 src/stdarg/va_end.h delete mode 100644 src/stdarg/va_list.c create mode 100644 src/stdarg/va_list.h delete mode 100644 src/stdarg/va_start.c create mode 100644 src/stdarg/va_start.h (limited to 'src/stdarg') diff --git a/src/stdarg/va_arg.c b/src/stdarg/va_arg.c deleted file mode 100644 index 79584b2b..00000000 --- a/src/stdarg/va_arg.c +++ /dev/null @@ -1,21 +0,0 @@ -#define va_arg(__ap, __type) __builtin_va_arg(__ap, __type) - -/** get an unnamed parameter **/ - -/*** -retrieves the next unnamed parameter for use. The ARGUMENT(ap) parameter must -be first initialized with a call to FUNCTION(va_start). Each successive call to -FUNCTION(va_arg) evaluates the next argument as an object of type ARGUMENT(type) -and returns that value, modifying ARGUMENT(ap) for use in the next call to -FUNCTION(va_arg). -***/ - -/* -PROTOTYPE(TYPE(VAR(type)) va_arg(va_list ap, TYPE(VAR(type)));) - -UNDEFINED(There is no next argument) -UNDEFINED(The next argument is not compatible with TYPE(ARGUMENT(type))) -RETURN_SUCCESS(an object of TYPE(ARGUMENT(type)) which is the next unnamed function parameter) - -STDC(1) -*/ diff --git a/src/stdarg/va_arg.h b/src/stdarg/va_arg.h new file mode 100644 index 00000000..79584b2b --- /dev/null +++ b/src/stdarg/va_arg.h @@ -0,0 +1,21 @@ +#define va_arg(__ap, __type) __builtin_va_arg(__ap, __type) + +/** get an unnamed parameter **/ + +/*** +retrieves the next unnamed parameter for use. The ARGUMENT(ap) parameter must +be first initialized with a call to FUNCTION(va_start). Each successive call to +FUNCTION(va_arg) evaluates the next argument as an object of type ARGUMENT(type) +and returns that value, modifying ARGUMENT(ap) for use in the next call to +FUNCTION(va_arg). +***/ + +/* +PROTOTYPE(TYPE(VAR(type)) va_arg(va_list ap, TYPE(VAR(type)));) + +UNDEFINED(There is no next argument) +UNDEFINED(The next argument is not compatible with TYPE(ARGUMENT(type))) +RETURN_SUCCESS(an object of TYPE(ARGUMENT(type)) which is the next unnamed function parameter) + +STDC(1) +*/ diff --git a/src/stdarg/va_end.c b/src/stdarg/va_end.c deleted file mode 100644 index 62e585ae..00000000 --- a/src/stdarg/va_end.c +++ /dev/null @@ -1,16 +0,0 @@ -#define va_end(__ap) __builtin_va_end(__ap) - -/** end processing unnamed arguments **/ - -/*** -stops processing unnamed arguments that were previously begun with a call to -FUNCTION(va_start) so that the enclosing function may return normally. -***/ - -/* -PROTOTYPE(void va_end(va_list ap);) -UNDEFINED(ARGUMENT(ap) was not initialized by FUNCTION(va_start)) -UNDEFINED(THIS() is not called in the same function as FUNCTION(va_start)) - -STDC(1) -*/ diff --git a/src/stdarg/va_end.h b/src/stdarg/va_end.h new file mode 100644 index 00000000..62e585ae --- /dev/null +++ b/src/stdarg/va_end.h @@ -0,0 +1,16 @@ +#define va_end(__ap) __builtin_va_end(__ap) + +/** end processing unnamed arguments **/ + +/*** +stops processing unnamed arguments that were previously begun with a call to +FUNCTION(va_start) so that the enclosing function may return normally. +***/ + +/* +PROTOTYPE(void va_end(va_list ap);) +UNDEFINED(ARGUMENT(ap) was not initialized by FUNCTION(va_start)) +UNDEFINED(THIS() is not called in the same function as FUNCTION(va_start)) + +STDC(1) +*/ diff --git a/src/stdarg/va_list.c b/src/stdarg/va_list.c deleted file mode 100644 index 3f1e1110..00000000 --- a/src/stdarg/va_list.c +++ /dev/null @@ -1,12 +0,0 @@ -typedef __builtin_va_list va_list; - -/** variable length argument list **/ - -/*** -holds the information necessary for making calls to FUNCTION(va_start), -FUNCTION(va_copy), FUNCTION(va_arg), and FUNCTION(va_end). -***/ - -/* -STDC(1) -*/ diff --git a/src/stdarg/va_list.h b/src/stdarg/va_list.h new file mode 100644 index 00000000..3f1e1110 --- /dev/null +++ b/src/stdarg/va_list.h @@ -0,0 +1,12 @@ +typedef __builtin_va_list va_list; + +/** variable length argument list **/ + +/*** +holds the information necessary for making calls to FUNCTION(va_start), +FUNCTION(va_copy), FUNCTION(va_arg), and FUNCTION(va_end). +***/ + +/* +STDC(1) +*/ diff --git a/src/stdarg/va_start.c b/src/stdarg/va_start.c deleted file mode 100644 index 2f08ee9a..00000000 --- a/src/stdarg/va_start.c +++ /dev/null @@ -1,21 +0,0 @@ -#define va_start(__ap, __parmN) __builtin_va_start(__ap, __parmN) - -/** begin processing unnamed arguments **/ - -/*** -prepares unnamed arguments for use. It initializes ARGUMENT(ap) with the the -first argument after the argument named by ARGUMENT(parmN). The argument named -by ARGUMENT(parmN) must be the final named argument to function (i.e. the -argument just prior to LITERAL(`, ...')). -***/ - -/* -PROTOTYPE(void va_start(va_list ap, VAR(parmN));) - -UNDEFINED(ARGUMENT(parmN) is declared TYPE(register)) -UNDEFINED(ARGUMENT(parmN) is a function pointer) -UNDEFINED(ARGUMENT(parmN) is an array type) -UNDEFINED(ARGUMENT(parmN) is a type not compatible with default argument promotions) - -STDC(1) -*/ diff --git a/src/stdarg/va_start.h b/src/stdarg/va_start.h new file mode 100644 index 00000000..2f08ee9a --- /dev/null +++ b/src/stdarg/va_start.h @@ -0,0 +1,21 @@ +#define va_start(__ap, __parmN) __builtin_va_start(__ap, __parmN) + +/** begin processing unnamed arguments **/ + +/*** +prepares unnamed arguments for use. It initializes ARGUMENT(ap) with the the +first argument after the argument named by ARGUMENT(parmN). The argument named +by ARGUMENT(parmN) must be the final named argument to function (i.e. the +argument just prior to LITERAL(`, ...')). +***/ + +/* +PROTOTYPE(void va_start(va_list ap, VAR(parmN));) + +UNDEFINED(ARGUMENT(parmN) is declared TYPE(register)) +UNDEFINED(ARGUMENT(parmN) is a function pointer) +UNDEFINED(ARGUMENT(parmN) is an array type) +UNDEFINED(ARGUMENT(parmN) is a type not compatible with default argument promotions) + +STDC(1) +*/ -- cgit v1.2.1