1 /* Copyright(c) 1994  Danny Sadinoff
2    Portions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.
3 
4    https://github.com/hebcal/hebcal
5 
6   See section COPYING for conditions for redistribution
7 */
8 #ifndef __COMMON__
9 #define __COMMON__
10 
11 #include "greg.h"
12 
13 #define NISAN 1
14 #define IYYAR 2
15 #define SIVAN 3
16 #define TAMUZ 4
17 #define AV 5
18 #define ELUL 6
19 #define TISHREI 7
20 #define CHESHVAN 8
21 #define KISLEV 9
22 #define TEVET 10
23 #define SHVAT 11
24 #define ADAR_I 12
25 #define ADAR_II 13
26 
27 typedef struct hmonth
28 {
29     const char *name;
30 } hmonth_t;
31 
32 typedef hmonth_t hmonths_t [][15];
33 
34 extern hmonths_t hMonths;
35 
36 typedef struct molad {
37     long int day;
38     int hour, chalakim;
39 } molad_t;
40 
41 molad_t get_molad(int, int);
42 date_t abs2hebrew(long);
43 long hebrew2abs(date_t);
44 int days_in_heb_year(int);
45 int long_cheshvan(int);
46 int short_kislev(int);
47 int max_days_in_heb_month(int,int);
48 int lookup_hebrew_month(const char *);
49 #endif
50