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