Deleted Added
full compact
calendar.h (15066) calendar.h (15714)
1/*
2 * Copyright (c) 1989, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 32 unchanged lines hidden (view full) ---

41
42void cal __P((void));
43void closecal __P((FILE *));
44int getday __P((char *));
45int getdayvar __P((char *));
46int getfield __P((char *, char **, int *));
47int getmonth __P((char *));
48int geteaster __P((char *, int));
1/*
2 * Copyright (c) 1989, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 32 unchanged lines hidden (view full) ---

41
42void cal __P((void));
43void closecal __P((FILE *));
44int getday __P((char *));
45int getdayvar __P((char *));
46int getfield __P((char *, char **, int *));
47int getmonth __P((char *));
48int geteaster __P((char *, int));
49int getpaskha __P((char *, int));
49int easter __P((int));
50int isnow __P((char *, int *, int *, int *));
51FILE *opencal __P((void));
52void settime __P((time_t));
53time_t Mktime __P((char *));
54void usage __P((void));
50int easter __P((int));
51int isnow __P((char *, int *, int *, int *));
52FILE *opencal __P((void));
53void settime __P((time_t));
54time_t Mktime __P((char *));
55void usage __P((void));
56void setnnames __P((void));
55
57
56#define isleap(y) (((y) % 4) == 0 && ((y) % 100) != 0 || ((y) % 400) == 0)
58#define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0)
57
58/* some flags */
59#define F_ISMONTH 0x01 /* month (Januar ...) */
60#define F_ISDAY 0x02 /* day of week (Sun, Mon, ...) */
61#define F_ISDAYVAR 0x04 /* variables day of week, like SundayLast */
62#define F_EASTER 0x08 /* Easter or easter depending days */
63
64extern f_dayAfter; /* days after current date */
65extern f_dayBefore; /* days bevore current date */
59
60/* some flags */
61#define F_ISMONTH 0x01 /* month (Januar ...) */
62#define F_ISDAY 0x02 /* day of week (Sun, Mon, ...) */
63#define F_ISDAYVAR 0x04 /* variables day of week, like SundayLast */
64#define F_EASTER 0x08 /* Easter or easter depending days */
65
66extern f_dayAfter; /* days after current date */
67extern f_dayBefore; /* days bevore current date */