Changed name of loc_incl.h to loc_time.h
authorceriel <none@none>
Mon, 22 Apr 1991 13:21:11 +0000 (13:21 +0000)
committerceriel <none@none>
Mon, 22 Apr 1991 13:21:11 +0000 (13:21 +0000)
lang/cem/libcc.ansi/time/.distr
lang/cem/libcc.ansi/time/LIST
lang/cem/libcc.ansi/time/asctime.c
lang/cem/libcc.ansi/time/gmtime.c
lang/cem/libcc.ansi/time/loc_time.h [new file with mode: 0644]
lang/cem/libcc.ansi/time/localtime.c
lang/cem/libcc.ansi/time/misc.c
lang/cem/libcc.ansi/time/mktime.c
lang/cem/libcc.ansi/time/strftime.c
lang/cem/libcc.ansi/time/tzset.c

index bde041f..5b4a1ad 100644 (file)
@@ -5,7 +5,7 @@ clock.c
 ctime.c
 difftime.c
 gmtime.c
-loc_incl.h
+loc_time.h
 localtime.c
 misc.c
 mktime.c
index 6dfc5bb..4beee18 100644 (file)
@@ -1,4 +1,4 @@
-loc_incl.h
+loc_time.h
 ctime.c
 asctime.c
 localtime.c
index 8011624..ed07578 100644 (file)
@@ -5,7 +5,7 @@
 
 #include       <string.h>
 #include       <time.h>
-#include       "loc_incl.h"
+#include       "loc_time.h"
 
 #define        DATE_STR        "??? ??? ?? ??:??:?? ????\n"
 
index 7836091..92c57e7 100644 (file)
@@ -5,7 +5,7 @@
 
 #include       <time.h>
 #include       <limits.h>
-#include       "loc_incl.h"
+#include       "loc_time.h"
 
 struct tm *
 gmtime(register const time_t *timer)
diff --git a/lang/cem/libcc.ansi/time/loc_time.h b/lang/cem/libcc.ansi/time/loc_time.h
new file mode 100644 (file)
index 0000000..cc2dd95
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * loc_time.h - some local definitions
+ */
+/* $Header$ */
+
+#define        YEAR0           1900                    /* the first year */
+#define        EPOCH_YR        1970            /* EPOCH = Jan 1 1970 00:00:00 */
+#define        SECS_DAY        (24L * 60L * 60L)
+#define        LEAPYEAR(year)  (!((year) % 4) && (((year) % 100) || !((year) % 400)))
+#define        YEARSIZE(year)  (LEAPYEAR(year) ? 366 : 365)
+#define        FIRSTSUNDAY(timp)       (((timp)->tm_yday - (timp)->tm_wday + 420) % 7)
+#define        FIRSTDAYOF(timp)        (((timp)->tm_wday - (timp)->tm_yday + 420) % 7)
+#define        TIME_MAX        ULONG_MAX
+#define        ABB_LEN         3
+
+extern const int _ytab[2][12];
+extern const char *_days[];
+extern const char *_months[];
+
+void _tzset(void);
+unsigned _dstget(struct tm *timep);
+
+extern long _timezone;
+extern long _dst_off;
+extern int _daylight;
+extern char *_tzname[2];
index 871bfdf..36d2254 100644 (file)
@@ -4,7 +4,7 @@
 /* $Header$ */
 
 #include       <time.h>
-#include       "loc_incl.h"
+#include       "loc_time.h"
 
 /* We must be careful, since an int can't represent all the seconds in a day.
  * Hence the adjustment of minutes when adding timezone and dst information.
index 59f255e..cd1791f 100644 (file)
@@ -34,7 +34,7 @@ void _ftime(struct timeb *bp);
 #endif
 #endif
 
-#include       "loc_incl.h"
+#include       "loc_time.h"
 
 #define        RULE_LEN        120
 #define        TZ_LEN          10
index 0aa05ee..8b39f57 100644 (file)
@@ -5,7 +5,7 @@
 
 #include       <time.h>
 #include       <limits.h>
-#include       "loc_incl.h"
+#include       "loc_time.h"
 
 /* The code assumes that unsigned long can be converted to time_t.
  * A time_t should not be wider than unsigned long, since this would mean
index 92f67b7..5f40562 100644 (file)
@@ -4,7 +4,7 @@
 /* $Header$ */
 
 #include       <time.h>
-#include       "loc_incl.h"
+#include       "loc_time.h"
 
 /* The width can be -1 in both s_prnt() as in u_prnt(). This
  * indicates that as many characters as needed should be printed.
index 53d4dcb..a61f945 100644 (file)
@@ -6,7 +6,7 @@
 /* This function is present for System V && POSIX */
 
 #include       <time.h>
-#include       "loc_incl.h"
+#include       "loc_time.h"
 
 void
 tzset(void)