Changeset View
Changeset View
Standalone View
Standalone View
head/usr.bin/calendar/calendar.h
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
extern int doall; | extern int doall; | ||||
extern time_t t1, t2; | extern time_t t1, t2; | ||||
extern const char *calendarFile; | extern const char *calendarFile; | ||||
extern int yrdays; | extern int yrdays; | ||||
extern struct fixs neaster, npaskha, ncny, nfullmoon, nnewmoon; | extern struct fixs neaster, npaskha, ncny, nfullmoon, nnewmoon; | ||||
extern struct fixs nmarequinox, nsepequinox, njunsolstice, ndecsolstice; | extern struct fixs nmarequinox, nsepequinox, njunsolstice, ndecsolstice; | ||||
extern double UTCOffset; | extern double UTCOffset; | ||||
extern int EastLongitude; | extern int EastLongitude; | ||||
#ifdef WITH_ICONV | |||||
extern const char *outputEncoding; | |||||
#endif | |||||
#define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) | #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) | ||||
/* Flags to determine the returned values by determinestyle() in parsedata.c */ | /* Flags to determine the returned values by determinestyle() in parsedata.c */ | ||||
#define F_NONE 0x00000 | #define F_NONE 0x00000 | ||||
#define F_MONTH 0x00001 | #define F_MONTH 0x00001 | ||||
#define F_DAYOFWEEK 0x00002 | #define F_DAYOFWEEK 0x00002 | ||||
#define F_DAYOFMONTH 0x00004 | #define F_DAYOFMONTH 0x00004 | ||||
▲ Show 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | |||||
#define MAXMOONS 18 | #define MAXMOONS 18 | ||||
void pom(int year, double UTCoffset, int *fms, int *nms); | void pom(int year, double UTCoffset, int *fms, int *nms); | ||||
void fpom(int year, double utcoffset, double *ffms, double *fnms); | void fpom(int year, double utcoffset, double *ffms, double *fnms); | ||||
/* sunpos.c */ | /* sunpos.c */ | ||||
void equinoxsolstice(int year, double UTCoffset, int *equinoxdays, int *solsticedays); | void equinoxsolstice(int year, double UTCoffset, int *equinoxdays, int *solsticedays); | ||||
void fequinoxsolstice(int year, double UTCoffset, double *equinoxdays, double *solsticedays); | void fequinoxsolstice(int year, double UTCoffset, double *equinoxdays, double *solsticedays); | ||||
int calculatesunlongitude30(int year, int degreeGMToffset, int *ichinesemonths); | int calculatesunlongitude30(int year, int degreeGMToffset, int *ichinesemonths); | ||||
#ifdef WITH_ICONV | |||||
void set_new_encoding(void); | |||||
#endif |