version 1.7, 2001/09/27 18:19:20 |
version 1.10, 2004/12/10 15:00:27 |
|
|
* 2. Redistributions in binary form must reproduce the above copyright |
* 2. Redistributions in binary form must reproduce the above copyright |
* notice, this list of conditions and the following disclaimer in the |
* notice, this list of conditions and the following disclaimer in the |
* documentation and/or other materials provided with the distribution. |
* documentation and/or other materials provided with the distribution. |
* 3. All advertising materials mentioning features or use of this software |
* 3. Neither the name of the University nor the names of its contributors |
* must display the following acknowledgement: |
|
* This product includes software developed by the University of |
|
* California, Berkeley and its contributors. |
|
* 4. Neither the name of the University nor the names of its contributors |
|
* may be used to endorse or promote products derived from this software |
* may be used to endorse or promote products derived from this software |
* without specific prior written permission. |
* without specific prior written permission. |
* |
* |
|
|
int nlen; |
int nlen; |
char *uname; |
char *uname; |
int ulen; |
int ulen; |
int (*getev) __P((int)); |
int (*getev)(int); |
}; |
}; |
|
|
void cal __P((void)); |
void cal(void); |
void closecal __P((FILE *)); |
void closecal(FILE *); |
int getday __P((char *)); |
int getday(char *); |
int getdayvar __P((char *)); |
int getdayvar(char *); |
int getfield __P((char *, char **, int *)); |
int getfield(char *, char **, int *); |
int getmonth __P((char *)); |
int getmonth(char *); |
int easter __P((int)); |
int easter(int); |
int paskha __P((int)); |
int paskha(int); |
void insert __P((struct event **, struct event *)); |
void insert(struct event **, struct event *); |
struct match *isnow __P((char *, int)); |
struct match *isnow(char *, int); |
FILE *opencal __P((void)); |
FILE *opencal(void); |
void settime __P((time_t *)); |
void settime(time_t *); |
time_t Mktime __P((char *)); |
time_t Mktime(char *); |
void usage __P((void)); |
void usage(void); |
int foy __P((int)); |
int foy(int); |
void variable_weekday __P((int *, int, int)); |
void variable_weekday(int *, int, int); |
void setnnames __P((void)); |
void setnnames(void); |
|
|
/* some flags */ |
/* some flags */ |
#define F_ISMONTH 0x01 /* month (Januar ...) */ |
#define F_ISMONTH 0x01 /* month (Januar ...) */ |
|
|
#define EASTERNAMELEN (sizeof(EASTER) - 1) |
#define EASTERNAMELEN (sizeof(EASTER) - 1) |
#define PASKHA "paskha" |
#define PASKHA "paskha" |
#define PASKHALEN (sizeof(PASKHA) - 1) |
#define PASKHALEN (sizeof(PASKHA) - 1) |
|
|
|
/* calendars */ |
|
extern enum calendars { GREGORIAN = 0, JULIAN, LUNAR } calendar; |
|
extern u_long julian; |
|
|
#define NUMEV 2 /* Total number of such special events */ |
#define NUMEV 2 /* Total number of such special events */ |
extern struct specialev spev[NUMEV]; |
extern struct specialev spev[NUMEV]; |