Changed name of loc_incl.h to loc_time.h
This commit is contained in:
parent
ab8022ccbd
commit
d6a224ea5f
10 changed files with 35 additions and 9 deletions
|
@ -5,7 +5,7 @@ clock.c
|
|||
ctime.c
|
||||
difftime.c
|
||||
gmtime.c
|
||||
loc_incl.h
|
||||
loc_time.h
|
||||
localtime.c
|
||||
misc.c
|
||||
mktime.c
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
loc_incl.h
|
||||
loc_time.h
|
||||
ctime.c
|
||||
asctime.c
|
||||
localtime.c
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include "loc_incl.h"
|
||||
#include "loc_time.h"
|
||||
|
||||
#define DATE_STR "??? ??? ?? ??:??:?? ????\n"
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
26
lang/cem/libcc.ansi/time/loc_time.h
Normal file
26
lang/cem/libcc.ansi/time/loc_time.h
Normal file
|
@ -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];
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue