From 77a1100e9523c395fd0a27cbc4d1fa5b93ba4351 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 9 Feb 2019 17:06:20 -0500 Subject: rearrange a bit --- src/_POSIX_SOURCE.c | 5 ----- src/_XOPEN_SOURCE.c | 0 src/_XOPEN_SOURCE_EXTENDED.c | 0 src/__DATE__.c | 12 ------------ src/__FILE__.c | 14 -------------- src/__LINE__.c | 14 -------------- src/__STDC_HOSTED__.c | 12 ------------ src/__STDC_IEC_559_COMPLEX__.c | 12 ------------ src/__STDC_IEC_559__.c | 12 ------------ src/__STDC_ISO_10646__.c | 15 --------------- src/__STDC_VERSION__.c | 11 ----------- src/__STDC__.c | 14 -------------- src/__TIME__.c | 12 ------------ src/nonstd/_FTM/_POSIX_SOURCE.c | 5 +++++ src/nonstd/_FTM/_XOPEN_SOURCE.c | 0 src/nonstd/_FTM/_XOPEN_SOURCE_EXTENDED.c | 0 src/nonstd/_PREDEF/__DATE__.c | 12 ++++++++++++ src/nonstd/_PREDEF/__FILE__.c | 14 ++++++++++++++ src/nonstd/_PREDEF/__LINE__.c | 14 ++++++++++++++ src/nonstd/_PREDEF/__STDC_HOSTED__.c | 12 ++++++++++++ src/nonstd/_PREDEF/__STDC_IEC_559_COMPLEX__.c | 12 ++++++++++++ src/nonstd/_PREDEF/__STDC_IEC_559__.c | 12 ++++++++++++ src/nonstd/_PREDEF/__STDC_ISO_10646__.c | 15 +++++++++++++++ src/nonstd/_PREDEF/__STDC_VERSION__.c | 11 +++++++++++ src/nonstd/_PREDEF/__STDC__.c | 14 ++++++++++++++ src/nonstd/_PREDEF/__TIME__.c | 12 ++++++++++++ 26 files changed, 133 insertions(+), 133 deletions(-) delete mode 100644 src/_POSIX_SOURCE.c delete mode 100644 src/_XOPEN_SOURCE.c delete mode 100644 src/_XOPEN_SOURCE_EXTENDED.c delete mode 100644 src/__DATE__.c delete mode 100644 src/__FILE__.c delete mode 100644 src/__LINE__.c delete mode 100644 src/__STDC_HOSTED__.c delete mode 100644 src/__STDC_IEC_559_COMPLEX__.c delete mode 100644 src/__STDC_IEC_559__.c delete mode 100644 src/__STDC_ISO_10646__.c delete mode 100644 src/__STDC_VERSION__.c delete mode 100644 src/__STDC__.c delete mode 100644 src/__TIME__.c create mode 100644 src/nonstd/_FTM/_POSIX_SOURCE.c create mode 100644 src/nonstd/_FTM/_XOPEN_SOURCE.c create mode 100644 src/nonstd/_FTM/_XOPEN_SOURCE_EXTENDED.c create mode 100644 src/nonstd/_PREDEF/__DATE__.c create mode 100644 src/nonstd/_PREDEF/__FILE__.c create mode 100644 src/nonstd/_PREDEF/__LINE__.c create mode 100644 src/nonstd/_PREDEF/__STDC_HOSTED__.c create mode 100644 src/nonstd/_PREDEF/__STDC_IEC_559_COMPLEX__.c create mode 100644 src/nonstd/_PREDEF/__STDC_IEC_559__.c create mode 100644 src/nonstd/_PREDEF/__STDC_ISO_10646__.c create mode 100644 src/nonstd/_PREDEF/__STDC_VERSION__.c create mode 100644 src/nonstd/_PREDEF/__STDC__.c create mode 100644 src/nonstd/_PREDEF/__TIME__.c (limited to 'src') diff --git a/src/_POSIX_SOURCE.c b/src/_POSIX_SOURCE.c deleted file mode 100644 index b594f3d9..00000000 --- a/src/_POSIX_SOURCE.c +++ /dev/null @@ -1,5 +0,0 @@ -#define _POSIX_SOURCE /** feature test macro **/ -/* -FTM(POSIX.1-1988) -POSIX(1) -*/ diff --git a/src/_XOPEN_SOURCE.c b/src/_XOPEN_SOURCE.c deleted file mode 100644 index e69de29b..00000000 diff --git a/src/_XOPEN_SOURCE_EXTENDED.c b/src/_XOPEN_SOURCE_EXTENDED.c deleted file mode 100644 index e69de29b..00000000 diff --git a/src/__DATE__.c b/src/__DATE__.c deleted file mode 100644 index 14e40fcb..00000000 --- a/src/__DATE__.c +++ /dev/null @@ -1,12 +0,0 @@ -#define __DATE__ /** date of compilation **/ - -/*** -is automatically defined by the compiler as the date of program -compilation, in the format DEFINITION("Mmm dd yyyy"). -***/ - -/* -VALUE_TYPE(string literal) -VALUE_FIXED(VAR("date-of-compilation")) -STDC(1) -*/ diff --git a/src/__FILE__.c b/src/__FILE__.c deleted file mode 100644 index 257ae89b..00000000 --- a/src/__FILE__.c +++ /dev/null @@ -1,14 +0,0 @@ -#define __FILE__ /** source file name **/ - -/*** -is automatically defined by the compiler as the file name of the -current source file being compiled as a character string literal. - -THIS() can be changed using PPDIR(line). -***/ - -/* -VALUE_TYPE(string literal) -VALUE_FIXED(VAR(the current file name)) -STDC(1) -*/ diff --git a/src/__LINE__.c b/src/__LINE__.c deleted file mode 100644 index c6acb1b1..00000000 --- a/src/__LINE__.c +++ /dev/null @@ -1,14 +0,0 @@ -#define __LINE__ /** source file line number **/ - -/*** -is automatically defined by the compiler as the current logical source -line in the source file being compiled. - -THIS() can be changed during compilation using PPDIR(line). -***/ - -/* -VALUE_TYPE(TYPE(int)) -VALUE_FIXED(VAR(the current line number)) -STDC(1) -*/ diff --git a/src/__STDC_HOSTED__.c b/src/__STDC_HOSTED__.c deleted file mode 100644 index 18df218b..00000000 --- a/src/__STDC_HOSTED__.c +++ /dev/null @@ -1,12 +0,0 @@ -#define __STDC_HOSTED__ - -/** hosted or free-standing implementation **/ - -/*** -is defined to the integer constant CONST(1) if the implementation -is hosted, CONST(0) otherwise. -***/ - -/* -STDC(199901) -*/ diff --git a/src/__STDC_IEC_559_COMPLEX__.c b/src/__STDC_IEC_559_COMPLEX__.c deleted file mode 100644 index 4bb15a57..00000000 --- a/src/__STDC_IEC_559_COMPLEX__.c +++ /dev/null @@ -1,12 +0,0 @@ -#define __STDC_IEC_559_COMPLEX__ - -/** IEC 60559 complex arithmetic **/ - -/*** -is defined to CONST(1) if the implementation conforms to Annex G -of ISO/IEC 9899 (IEC 60559 complex arithmetic). -***/ - -/* -STDC(199901) -*/ diff --git a/src/__STDC_IEC_559__.c b/src/__STDC_IEC_559__.c deleted file mode 100644 index 595e8764..00000000 --- a/src/__STDC_IEC_559__.c +++ /dev/null @@ -1,12 +0,0 @@ -#define __STDC_IEC_559__ - -/** IEC 60559 floating-point arithmetic **/ - -/*** -is defined to CONST(1) if the implementation conforms to Annex G -of ISO/IEC 9899 (IEC 60559 floating-point arithmetic). -***/ - -/* -STDC(199901) -*/ diff --git a/src/__STDC_ISO_10646__.c b/src/__STDC_ISO_10646__.c deleted file mode 100644 index 9aaff74f..00000000 --- a/src/__STDC_ISO_10646__.c +++ /dev/null @@ -1,15 +0,0 @@ -#define __STDC_ISO_10646__ - -/** supported UCS version **/ - -/*** -is defined if TYPE(wchar_t) represents characters encoded -in conformance with ISO/IEC 10646. In this case, THIS() is -defined as an integer CONST(yyyymmL), where CONST(yyyy) -represents the year and CONST(mm) the month of the supported -version of ISO/IEC 10646. -***/ - -/* -STDC(199901) -*/ diff --git a/src/__STDC_VERSION__.c b/src/__STDC_VERSION__.c deleted file mode 100644 index dedec29d..00000000 --- a/src/__STDC_VERSION__.c +++ /dev/null @@ -1,11 +0,0 @@ -#define __STDC_VERSION__ /** supported C standard **/ -/*** -declares the supported version of ISO/IEC 9899. If THIS() is not defined, -the implementation only supports ISO/IEC 9899:1990, without AMD1. -***/ -/* -VALUE_SELECT(`199409L', `ISO/IEC 9899:1990 AMD1') -VALUE_SELECT(`199901L', `ISO/IEC 9899:1999') -VALUE_SELECT(`201112L', `ISO/IEC 9899:2011') -STDC(199409) -*/ diff --git a/src/__STDC__.c b/src/__STDC__.c deleted file mode 100644 index 5bcfe7aa..00000000 --- a/src/__STDC__.c +++ /dev/null @@ -1,14 +0,0 @@ -#define __STDC__ (1) - -/** standard C support **/ - -/*** -is automatically defined by the compiler to indicate that it supports -some version of ISO/IEC 9899. -***/ - -/* -VALUE_TYPE(TYPE(int)) -VALUE_FIXED(1) -STDC(1) -*/ diff --git a/src/__TIME__.c b/src/__TIME__.c deleted file mode 100644 index 472e42c0..00000000 --- a/src/__TIME__.c +++ /dev/null @@ -1,12 +0,0 @@ -#define __TIME__ /** time of compilation **/ - -/*** -is automatically defined by the compiler as the time of compilation -in the format DEFINITION("hh:mm:ss"). -***/ - -/* -VALUE_TYPE(string literal) -VALUE_FIXED(VAR("time of compilation")) -STDC(1) -*/ diff --git a/src/nonstd/_FTM/_POSIX_SOURCE.c b/src/nonstd/_FTM/_POSIX_SOURCE.c new file mode 100644 index 00000000..b594f3d9 --- /dev/null +++ b/src/nonstd/_FTM/_POSIX_SOURCE.c @@ -0,0 +1,5 @@ +#define _POSIX_SOURCE /** feature test macro **/ +/* +FTM(POSIX.1-1988) +POSIX(1) +*/ diff --git a/src/nonstd/_FTM/_XOPEN_SOURCE.c b/src/nonstd/_FTM/_XOPEN_SOURCE.c new file mode 100644 index 00000000..e69de29b diff --git a/src/nonstd/_FTM/_XOPEN_SOURCE_EXTENDED.c b/src/nonstd/_FTM/_XOPEN_SOURCE_EXTENDED.c new file mode 100644 index 00000000..e69de29b diff --git a/src/nonstd/_PREDEF/__DATE__.c b/src/nonstd/_PREDEF/__DATE__.c new file mode 100644 index 00000000..14e40fcb --- /dev/null +++ b/src/nonstd/_PREDEF/__DATE__.c @@ -0,0 +1,12 @@ +#define __DATE__ /** date of compilation **/ + +/*** +is automatically defined by the compiler as the date of program +compilation, in the format DEFINITION("Mmm dd yyyy"). +***/ + +/* +VALUE_TYPE(string literal) +VALUE_FIXED(VAR("date-of-compilation")) +STDC(1) +*/ diff --git a/src/nonstd/_PREDEF/__FILE__.c b/src/nonstd/_PREDEF/__FILE__.c new file mode 100644 index 00000000..257ae89b --- /dev/null +++ b/src/nonstd/_PREDEF/__FILE__.c @@ -0,0 +1,14 @@ +#define __FILE__ /** source file name **/ + +/*** +is automatically defined by the compiler as the file name of the +current source file being compiled as a character string literal. + +THIS() can be changed using PPDIR(line). +***/ + +/* +VALUE_TYPE(string literal) +VALUE_FIXED(VAR(the current file name)) +STDC(1) +*/ diff --git a/src/nonstd/_PREDEF/__LINE__.c b/src/nonstd/_PREDEF/__LINE__.c new file mode 100644 index 00000000..c6acb1b1 --- /dev/null +++ b/src/nonstd/_PREDEF/__LINE__.c @@ -0,0 +1,14 @@ +#define __LINE__ /** source file line number **/ + +/*** +is automatically defined by the compiler as the current logical source +line in the source file being compiled. + +THIS() can be changed during compilation using PPDIR(line). +***/ + +/* +VALUE_TYPE(TYPE(int)) +VALUE_FIXED(VAR(the current line number)) +STDC(1) +*/ diff --git a/src/nonstd/_PREDEF/__STDC_HOSTED__.c b/src/nonstd/_PREDEF/__STDC_HOSTED__.c new file mode 100644 index 00000000..18df218b --- /dev/null +++ b/src/nonstd/_PREDEF/__STDC_HOSTED__.c @@ -0,0 +1,12 @@ +#define __STDC_HOSTED__ + +/** hosted or free-standing implementation **/ + +/*** +is defined to the integer constant CONST(1) if the implementation +is hosted, CONST(0) otherwise. +***/ + +/* +STDC(199901) +*/ diff --git a/src/nonstd/_PREDEF/__STDC_IEC_559_COMPLEX__.c b/src/nonstd/_PREDEF/__STDC_IEC_559_COMPLEX__.c new file mode 100644 index 00000000..4bb15a57 --- /dev/null +++ b/src/nonstd/_PREDEF/__STDC_IEC_559_COMPLEX__.c @@ -0,0 +1,12 @@ +#define __STDC_IEC_559_COMPLEX__ + +/** IEC 60559 complex arithmetic **/ + +/*** +is defined to CONST(1) if the implementation conforms to Annex G +of ISO/IEC 9899 (IEC 60559 complex arithmetic). +***/ + +/* +STDC(199901) +*/ diff --git a/src/nonstd/_PREDEF/__STDC_IEC_559__.c b/src/nonstd/_PREDEF/__STDC_IEC_559__.c new file mode 100644 index 00000000..595e8764 --- /dev/null +++ b/src/nonstd/_PREDEF/__STDC_IEC_559__.c @@ -0,0 +1,12 @@ +#define __STDC_IEC_559__ + +/** IEC 60559 floating-point arithmetic **/ + +/*** +is defined to CONST(1) if the implementation conforms to Annex G +of ISO/IEC 9899 (IEC 60559 floating-point arithmetic). +***/ + +/* +STDC(199901) +*/ diff --git a/src/nonstd/_PREDEF/__STDC_ISO_10646__.c b/src/nonstd/_PREDEF/__STDC_ISO_10646__.c new file mode 100644 index 00000000..9aaff74f --- /dev/null +++ b/src/nonstd/_PREDEF/__STDC_ISO_10646__.c @@ -0,0 +1,15 @@ +#define __STDC_ISO_10646__ + +/** supported UCS version **/ + +/*** +is defined if TYPE(wchar_t) represents characters encoded +in conformance with ISO/IEC 10646. In this case, THIS() is +defined as an integer CONST(yyyymmL), where CONST(yyyy) +represents the year and CONST(mm) the month of the supported +version of ISO/IEC 10646. +***/ + +/* +STDC(199901) +*/ diff --git a/src/nonstd/_PREDEF/__STDC_VERSION__.c b/src/nonstd/_PREDEF/__STDC_VERSION__.c new file mode 100644 index 00000000..dedec29d --- /dev/null +++ b/src/nonstd/_PREDEF/__STDC_VERSION__.c @@ -0,0 +1,11 @@ +#define __STDC_VERSION__ /** supported C standard **/ +/*** +declares the supported version of ISO/IEC 9899. If THIS() is not defined, +the implementation only supports ISO/IEC 9899:1990, without AMD1. +***/ +/* +VALUE_SELECT(`199409L', `ISO/IEC 9899:1990 AMD1') +VALUE_SELECT(`199901L', `ISO/IEC 9899:1999') +VALUE_SELECT(`201112L', `ISO/IEC 9899:2011') +STDC(199409) +*/ diff --git a/src/nonstd/_PREDEF/__STDC__.c b/src/nonstd/_PREDEF/__STDC__.c new file mode 100644 index 00000000..5bcfe7aa --- /dev/null +++ b/src/nonstd/_PREDEF/__STDC__.c @@ -0,0 +1,14 @@ +#define __STDC__ (1) + +/** standard C support **/ + +/*** +is automatically defined by the compiler to indicate that it supports +some version of ISO/IEC 9899. +***/ + +/* +VALUE_TYPE(TYPE(int)) +VALUE_FIXED(1) +STDC(1) +*/ diff --git a/src/nonstd/_PREDEF/__TIME__.c b/src/nonstd/_PREDEF/__TIME__.c new file mode 100644 index 00000000..472e42c0 --- /dev/null +++ b/src/nonstd/_PREDEF/__TIME__.c @@ -0,0 +1,12 @@ +#define __TIME__ /** time of compilation **/ + +/*** +is automatically defined by the compiler as the time of compilation +in the format DEFINITION("hh:mm:ss"). +***/ + +/* +VALUE_TYPE(string literal) +VALUE_FIXED(VAR("time of compilation")) +STDC(1) +*/ -- cgit v1.2.1