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/time/CLOCKS_PER_SEC.c | 11 ----------- src/time/CLOCKS_PER_SEC.h | 11 +++++++++++ src/time/clock_t.c | 13 ------------- src/time/clock_t.h | 13 +++++++++++++ src/time/struct_tm.c | 21 --------------------- src/time/struct_tm.h | 21 +++++++++++++++++++++ src/time/time_t.c | 13 ------------- src/time/time_t.h | 13 +++++++++++++ 8 files changed, 58 insertions(+), 58 deletions(-) delete mode 100644 src/time/CLOCKS_PER_SEC.c create mode 100644 src/time/CLOCKS_PER_SEC.h delete mode 100644 src/time/clock_t.c create mode 100644 src/time/clock_t.h delete mode 100644 src/time/struct_tm.c create mode 100644 src/time/struct_tm.h delete mode 100644 src/time/time_t.c create mode 100644 src/time/time_t.h (limited to 'src/time') diff --git a/src/time/CLOCKS_PER_SEC.c b/src/time/CLOCKS_PER_SEC.c deleted file mode 100644 index e8e8350d..00000000 --- a/src/time/CLOCKS_PER_SEC.c +++ /dev/null @@ -1,11 +0,0 @@ -#define CLOCKS_PER_SEC ((clock_t)1000000) - -/** clock ticks per second **/ - -/*** -is the number of clock ticks per second returned by FUNCTION(clock). -***/ - -/* -STDC(1) -*/ diff --git a/src/time/CLOCKS_PER_SEC.h b/src/time/CLOCKS_PER_SEC.h new file mode 100644 index 00000000..e8e8350d --- /dev/null +++ b/src/time/CLOCKS_PER_SEC.h @@ -0,0 +1,11 @@ +#define CLOCKS_PER_SEC ((clock_t)1000000) + +/** clock ticks per second **/ + +/*** +is the number of clock ticks per second returned by FUNCTION(clock). +***/ + +/* +STDC(1) +*/ diff --git a/src/time/clock_t.c b/src/time/clock_t.c deleted file mode 100644 index d6e5d966..00000000 --- a/src/time/clock_t.c +++ /dev/null @@ -1,13 +0,0 @@ -typedef long int - clock_t; - -/** clock ticks **/ - -/*** -is an arithmetic type representing clock ticks. -***/ - -/* -DEFINED_TYPE(an arithmetic type) -STDC(1) -*/ diff --git a/src/time/clock_t.h b/src/time/clock_t.h new file mode 100644 index 00000000..d6e5d966 --- /dev/null +++ b/src/time/clock_t.h @@ -0,0 +1,13 @@ +typedef long int + clock_t; + +/** clock ticks **/ + +/*** +is an arithmetic type representing clock ticks. +***/ + +/* +DEFINED_TYPE(an arithmetic type) +STDC(1) +*/ diff --git a/src/time/struct_tm.c b/src/time/struct_tm.c deleted file mode 100644 index e7f0376f..00000000 --- a/src/time/struct_tm.c +++ /dev/null @@ -1,21 +0,0 @@ -struct tm { - int tm_sec; /* Seconds [0,60] */ - int tm_min; /* Minutes [0, 59] */ - int tm_hour; /* Hour [0,23] */ - int tm_mday; /* Day of the month [1,31] */ - int tm_mon; /* Month of the year [0,11] */ - int tm_year; /* Years since 1900 */ - int tm_wday; /* Day of the week [0,6] (Sunday = 0) */ - int tm_yday; /* Day of the year [0,365] */ - int tm_isdst; /* Daylight Saving Time flag */ -}; - -/** broken-down time **/ - -/*** -is used to represent time broken down into its individual components. -***/ - -/* -STDC(1) -*/ diff --git a/src/time/struct_tm.h b/src/time/struct_tm.h new file mode 100644 index 00000000..e7f0376f --- /dev/null +++ b/src/time/struct_tm.h @@ -0,0 +1,21 @@ +struct tm { + int tm_sec; /* Seconds [0,60] */ + int tm_min; /* Minutes [0, 59] */ + int tm_hour; /* Hour [0,23] */ + int tm_mday; /* Day of the month [1,31] */ + int tm_mon; /* Month of the year [0,11] */ + int tm_year; /* Years since 1900 */ + int tm_wday; /* Day of the week [0,6] (Sunday = 0) */ + int tm_yday; /* Day of the year [0,365] */ + int tm_isdst; /* Daylight Saving Time flag */ +}; + +/** broken-down time **/ + +/*** +is used to represent time broken down into its individual components. +***/ + +/* +STDC(1) +*/ diff --git a/src/time/time_t.c b/src/time/time_t.c deleted file mode 100644 index 58cf3fb0..00000000 --- a/src/time/time_t.c +++ /dev/null @@ -1,13 +0,0 @@ -typedef long int - time_t; - -/** time representation **/ - -/*** -is used for representing time. -***/ - -/* -DEFINED_TYPE(an arithmetic type) -STDC(1) -*/ diff --git a/src/time/time_t.h b/src/time/time_t.h new file mode 100644 index 00000000..58cf3fb0 --- /dev/null +++ b/src/time/time_t.h @@ -0,0 +1,13 @@ +typedef long int + time_t; + +/** time representation **/ + +/*** +is used for representing time. +***/ + +/* +DEFINED_TYPE(an arithmetic type) +STDC(1) +*/ -- cgit v1.2.1