131529Shelbig/*-
231529Shelbig * Copyright (c) 1997 Wolfgang Helbig
331529Shelbig * All rights reserved.
431529Shelbig *
531529Shelbig * Redistribution and use in source and binary forms, with or without
631529Shelbig * modification, are permitted provided that the following conditions
731529Shelbig * are met:
831529Shelbig * 1. Redistributions of source code must retain the above copyright
931529Shelbig *    notice, this list of conditions and the following disclaimer.
1031529Shelbig * 2. Redistributions in binary form must reproduce the above copyright
1131529Shelbig *    notice, this list of conditions and the following disclaimer in the
1231529Shelbig *    documentation and/or other materials provided with the distribution.
1331529Shelbig *
1431529Shelbig * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1531529Shelbig * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1631529Shelbig * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1731529Shelbig * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1831529Shelbig * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1931529Shelbig * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2031529Shelbig * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2131529Shelbig * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2231529Shelbig * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2331529Shelbig * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2431529Shelbig * SUCH DAMAGE.
2531529Shelbig *
2650476Speter * $FreeBSD$
2731529Shelbig */
2831698Shelbigstruct date {
2931529Shelbig	int y;	/* year */
3031529Shelbig	int m;	/* month */
3131529Shelbig	int d;	/* day */
3231698Shelbig};
3331529Shelbig
3431698Shelbigstruct date	*easterg(int _year, struct date *_dt);
3531698Shelbigstruct date	*easterog(int _year, struct date *_dt);
3631698Shelbigstruct date	*easteroj(int _year, struct date *_dt);
3731698Shelbigstruct date	*gdate(int _nd, struct date *_dt);
3831698Shelbigstruct date	*jdate(int _nd, struct date *_dt);
3931698Shelbigint		 ndaysg(struct date *_dt);
4031698Shelbigint		 ndaysj(struct date *_dt);
4131698Shelbigint		 week(int _nd, int *_year);
4231698Shelbigint		 weekday(int _nd);
43