"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/hd-data2.c" between
gcal-4.tar.gz and gcal-4.1.tar.gz

About: Gcal displays month/year calendar sheets, eternal holiday and fixed date lists in many ways.

hd-data2.c  (gcal-4):hd-data2.c  (gcal-4.1)
skipping to change at line 120 skipping to change at line 120
ptr_cc_id, "+", 24, 6, year, hd_elems, fday, count); ptr_cc_id, "+", 24, 6, year, hd_elems, fday, count);
holiday (*init_data, detected, _(hd_text[HD_LABOUR_DAY].ht_text), ptr_cc_id, holiday (*init_data, detected, _(hd_text[HD_LABOUR_DAY].ht_text), ptr_cc_id,
"+", DAY_MIN, 5, year, hd_elems, fday, count); "+", DAY_MIN, 5, year, hd_elems, fday, count);
holiday (*init_data, detected, _(hd_text[HD_ST_CHARLES_DAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_ST_CHARLES_DAY].ht_text),
ptr_cc_id, "+", 4, 11, year, hd_elems, fday, count); ptr_cc_id, "+", 4, 11, year, hd_elems, fday, count);
holiday (*init_data, detected, _(hd_text[HD_SYLVESTER].ht_text), ptr_cc_id, holiday (*init_data, detected, _(hd_text[HD_SYLVESTER].ht_text), ptr_cc_id,
"+", dvec[MONTH_MAX - 1], MONTH_MAX, year, hd_elems, fday, count); "+", dvec[MONTH_MAX - 1], MONTH_MAX, year, hd_elems, fday, count);
holiday (*init_data, detected, _(hd_text[HD_THREE_KINGS_DAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_THREE_KINGS_DAY].ht_text),
ptr_cc_id, "+", 6, MONTH_MIN, year, hd_elems, fday, count); ptr_cc_id, "+", 6, MONTH_MIN, year, hd_elems, fday, count);
base_christian_hdy (init_data, detected, easter, year, hd_elems, fday, base_christian_hdy (init_data, detected, easter, year, hd_elems, fday,
count); count, ptr_cc_id);
} }
void void
ae_hdy (init_data, detected, easter, year, hd_elems, fday, count) ae_hdy (init_data, detected, easter, year, hd_elems, fday, count)
Bool *init_data; Bool *init_data;
const Bool detected; const Bool detected;
int easter; int easter;
const int year; const int year;
int *hd_elems; int *hd_elems;
const int fday; const int fday;
skipping to change at line 226 skipping to change at line 226
holiday (*init_data, detected, _(hd_text[HD_SYLVESTER].ht_text), ptr_cc_id, holiday (*init_data, detected, _(hd_text[HD_SYLVESTER].ht_text), ptr_cc_id,
DIS_HLS_PREF, dvec[MONTH_MAX - 1], MONTH_MAX, year, hd_elems, fday, DIS_HLS_PREF, dvec[MONTH_MAX - 1], MONTH_MAX, year, hd_elems, fday,
count); count);
day = eval_holiday (DAY_MIN, 6, year, 6, TRUE) + DAY_MAX; day = eval_holiday (DAY_MIN, 6, year, 6, TRUE) + DAY_MAX;
holiday (*init_data, detected, _(hd_text[HD_THE_QUEENS_BIRTHDAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_THE_QUEENS_BIRTHDAY].ht_text),
ptr_cc_id, "+", day, 6, year, hd_elems, fday, count); ptr_cc_id, "+", day, 6, year, hd_elems, fday, count);
if (year > 1980) if (year > 1980)
holiday (*init_data, detected, _(hd_text[HD_INDEPENDENCE_DAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_INDEPENDENCE_DAY].ht_text),
ptr_cc_id, "+", DAY_MIN, 11, year, hd_elems, fday, count); ptr_cc_id, "+", DAY_MIN, 11, year, hd_elems, fday, count);
base_christian_hdy (init_data, detected, easter, year, hd_elems, fday, base_christian_hdy (init_data, detected, easter, year, hd_elems, fday,
count); count, ptr_cc_id);
} }
void void
ai_hdy (init_data, detected, easter, year, hd_elems, fday, count) ai_hdy (init_data, detected, easter, year, hd_elems, fday, count)
Bool *init_data; Bool *init_data;
const Bool detected; const Bool detected;
int easter; int easter;
const int year; const int year;
int *hd_elems; int *hd_elems;
const int fday; const int fday;
skipping to change at line 277 skipping to change at line 277
day = eval_holiday (dvec[5 - 1], 5, year, 5, FALSE); day = eval_holiday (dvec[5 - 1], 5, year, 5, FALSE);
holiday (*init_data, detected, _(hd_text[HD_NATIONAL_HOLIDAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_NATIONAL_HOLIDAY].ht_text),
ptr_cc_id, "+", day, 5, year, hd_elems, fday, count); ptr_cc_id, "+", day, 5, year, hd_elems, fday, count);
holiday (*init_data, detected, _(hd_text[HD_SYLVESTER].ht_text), ptr_cc_id, holiday (*init_data, detected, _(hd_text[HD_SYLVESTER].ht_text), ptr_cc_id,
DIS_HLS_PREF, dvec[MONTH_MAX - 1], MONTH_MAX, year, hd_elems, fday, DIS_HLS_PREF, dvec[MONTH_MAX - 1], MONTH_MAX, year, hd_elems, fday,
count); count);
day = eval_holiday (DAY_MIN, 6, year, 6, TRUE) + DAY_MAX; day = eval_holiday (DAY_MIN, 6, year, 6, TRUE) + DAY_MAX;
holiday (*init_data, detected, _(hd_text[HD_THE_QUEENS_BIRTHDAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_THE_QUEENS_BIRTHDAY].ht_text),
ptr_cc_id, "+", day, 6, year, hd_elems, fday, count); ptr_cc_id, "+", day, 6, year, hd_elems, fday, count);
base_christian_hdy (init_data, detected, easter, year, hd_elems, fday, base_christian_hdy (init_data, detected, easter, year, hd_elems, fday,
count); count, ptr_cc_id);
} }
void void
al_hdy (init_data, detected, easter, year, hd_elems, fday, count) al_hdy (init_data, detected, easter, year, hd_elems, fday, count)
Bool *init_data; Bool *init_data;
const Bool detected; const Bool detected;
int easter; int easter;
const int year; const int year;
int *hd_elems; int *hd_elems;
const int fday; const int fday;
skipping to change at line 443 skipping to change at line 443
holiday (*init_data, detected, _(hd_text[HD_GOOD_FRIDAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_GOOD_FRIDAY].ht_text),
ptr_cc_id, "+", easter - 2, 0, year, hd_elems, fday, count); ptr_cc_id, "+", easter - 2, 0, year, hd_elems, fday, count);
holiday (*init_data, detected, _(hd_text[HD_LABOUR_DAY].ht_text), ptr_cc_id, holiday (*init_data, detected, _(hd_text[HD_LABOUR_DAY].ht_text), ptr_cc_id,
"+", DAY_MIN, 5, year, hd_elems, fday, count); "+", DAY_MIN, 5, year, hd_elems, fday, count);
holiday (*init_data, detected, _(hd_text[HD_SYLVESTER].ht_text), ptr_cc_id, holiday (*init_data, detected, _(hd_text[HD_SYLVESTER].ht_text), ptr_cc_id,
DIS_HLS_PREF, dvec[MONTH_MAX - 1], MONTH_MAX, year, hd_elems, fday, DIS_HLS_PREF, dvec[MONTH_MAX - 1], MONTH_MAX, year, hd_elems, fday,
count); count);
holiday (*init_data, detected, _(hd_text[HD_THE_QUEENS_BIRTHDAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_THE_QUEENS_BIRTHDAY].ht_text),
ptr_cc_id, "+", dvec[4 - 1], 4, year, hd_elems, fday, count); ptr_cc_id, "+", dvec[4 - 1], 4, year, hd_elems, fday, count);
base_christian_hdy (init_data, detected, easter, year, hd_elems, fday, base_christian_hdy (init_data, detected, easter, year, hd_elems, fday,
count); count, ptr_cc_id);
} }
void void
an_bo_hdy (init_data, detected, easter, year, hd_elems, fday, count) an_bo_hdy (init_data, detected, easter, year, hd_elems, fday, count)
Bool *init_data; Bool *init_data;
const Bool detected; const Bool detected;
int easter; int easter;
const int year; const int year;
int *hd_elems; int *hd_elems;
const int fday; const int fday;
skipping to change at line 773 skipping to change at line 773
_(hd_text[HD_MARYS_IMMACULATE_CONCEPTION].ht_text), ptr_cc_id, "+", _(hd_text[HD_MARYS_IMMACULATE_CONCEPTION].ht_text), ptr_cc_id, "+",
8, MONTH_MAX, year, hd_elems, fday, count); 8, MONTH_MAX, year, hd_elems, fday, count);
holiday (*init_data, detected, _(hd_text[HD_NATIONAL_HOLIDAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_NATIONAL_HOLIDAY].ht_text),
ptr_cc_id, "+", 26, 10, year, hd_elems, fday, count); ptr_cc_id, "+", 26, 10, year, hd_elems, fday, count);
holiday (*init_data, detected, _(hd_text[HD_SYLVESTER].ht_text), ptr_cc_id, holiday (*init_data, detected, _(hd_text[HD_SYLVESTER].ht_text), ptr_cc_id,
DIS_HLS_PREF, dvec[MONTH_MAX - 1], MONTH_MAX, year, hd_elems, fday, DIS_HLS_PREF, dvec[MONTH_MAX - 1], MONTH_MAX, year, hd_elems, fday,
count); count);
holiday (*init_data, detected, _(hd_text[HD_THREE_KINGS_DAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_THREE_KINGS_DAY].ht_text),
ptr_cc_id, "+", 6, MONTH_MIN, year, hd_elems, fday, count); ptr_cc_id, "+", 6, MONTH_MIN, year, hd_elems, fday, count);
base_christian_hdy (init_data, detected, easter, year, hd_elems, fday, base_christian_hdy (init_data, detected, easter, year, hd_elems, fday,
count); count, ptr_cc_id);
} }
void void
au_ct_hdy (init_data, detected, easter, year, hd_elems, fday, count) au_ct_hdy (init_data, detected, easter, year, hd_elems, fday, count)
Bool *init_data; Bool *init_data;
const Bool detected; const Bool detected;
int easter; int easter;
const int year; const int year;
int *hd_elems; int *hd_elems;
const int fday; const int fday;
skipping to change at line 1325 skipping to change at line 1325
holiday (*init_data, detected, _(hd_text[HD_SYLVESTER].ht_text), ptr_cc_id, holiday (*init_data, detected, _(hd_text[HD_SYLVESTER].ht_text), ptr_cc_id,
DIS_HLS_PREF, dvec[MONTH_MAX - 1], MONTH_MAX, year, hd_elems, fday, DIS_HLS_PREF, dvec[MONTH_MAX - 1], MONTH_MAX, year, hd_elems, fday,
count); count);
day = eval_holiday (DAY_MIN, 10, year, DAY_MIN, TRUE); day = eval_holiday (DAY_MIN, 10, year, DAY_MIN, TRUE);
holiday (*init_data, detected, _(hd_text[HD_UNITED_NATIONS_DAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_UNITED_NATIONS_DAY].ht_text),
ptr_cc_id, "+", day, 10, year, hd_elems, fday, count); ptr_cc_id, "+", day, 10, year, hd_elems, fday, count);
if (year > 1965) if (year > 1965)
holiday (*init_data, detected, _(hd_text[HD_INDEPENDENCE_DAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_INDEPENDENCE_DAY].ht_text),
ptr_cc_id, "+", dvec[11 - 1], 11, year, hd_elems, fday, count); ptr_cc_id, "+", dvec[11 - 1], 11, year, hd_elems, fday, count);
base_christian_hdy (init_data, detected, easter, year, hd_elems, fday, base_christian_hdy (init_data, detected, easter, year, hd_elems, fday,
count); count, ptr_cc_id);
} }
void void
bd_hdy (init_data, detected, easter, year, hd_elems, fday, count) bd_hdy (init_data, detected, easter, year, hd_elems, fday, count)
Bool *init_data; Bool *init_data;
const Bool detected; const Bool detected;
int easter; int easter;
const int year; const int year;
int *hd_elems; int *hd_elems;
const int fday; const int fday;
skipping to change at line 1582 skipping to change at line 1582
ptr_cc_id, "+", easter + 39, 0, year, hd_elems, fday, count); ptr_cc_id, "+", easter + 39, 0, year, hd_elems, fday, count);
holiday (*init_data, detected, _(hd_text[HD_LABOUR_DAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_LABOUR_DAY].ht_text),
ptr_cc_id, "+", DAY_MIN, 5, year, hd_elems, fday, count); ptr_cc_id, "+", DAY_MIN, 5, year, hd_elems, fday, count);
holiday (*init_data, detected, _(hd_text[HD_MARYS_ASCENSION_DAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_MARYS_ASCENSION_DAY].ht_text),
ptr_cc_id, "+", 15, 8, year, hd_elems, fday, count); ptr_cc_id, "+", 15, 8, year, hd_elems, fday, count);
holiday (*init_data, detected, _(hd_text[HD_NATIONAL_HOLIDAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_NATIONAL_HOLIDAY].ht_text),
ptr_cc_id, "+", DAY_MIN, 8, year, hd_elems, fday, count); ptr_cc_id, "+", DAY_MIN, 8, year, hd_elems, fday, count);
holiday (*init_data, detected, _(hd_text[HD_WOMENS_DAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_WOMENS_DAY].ht_text),
ptr_cc_id, "+", 8, 3, year, hd_elems, fday, count); ptr_cc_id, "+", 8, 3, year, hd_elems, fday, count);
base_christian_hdy (init_data, detected, easter, year, hd_elems, fday, base_christian_hdy (init_data, detected, easter, year, hd_elems, fday,
count); count, ptr_cc_id);
} }
void void
bm_hdy (init_data, detected, easter, year, hd_elems, fday, count) bm_hdy (init_data, detected, easter, year, hd_elems, fday, count)
Bool *init_data; Bool *init_data;
const Bool detected; const Bool detected;
int easter; int easter;
const int year; const int year;
int *hd_elems; int *hd_elems;
const int fday; const int fday;
skipping to change at line 1779 skipping to change at line 1779
day = eval_holiday (DAY_MIN, 6, year, 5, TRUE); day = eval_holiday (DAY_MIN, 6, year, 5, TRUE);
holiday (*init_data, detected, _(hd_text[HD_LABOUR_DAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_LABOUR_DAY].ht_text),
ptr_cc_id, "+", day, 6, year, hd_elems, fday, count); ptr_cc_id, "+", day, 6, year, hd_elems, fday, count);
day = eval_holiday (DAY_MIN, 8, year, DAY_MIN, TRUE); day = eval_holiday (DAY_MIN, 8, year, DAY_MIN, TRUE);
holiday (*init_data, detected, _(hd_text[HD_SLAVE_LIBERATION_DAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_SLAVE_LIBERATION_DAY].ht_text),
ptr_cc_id, "+", day, 8, year, hd_elems, fday, count); ptr_cc_id, "+", day, 8, year, hd_elems, fday, count);
holiday (*init_data, detected, _(hd_text[HD_SYLVESTER].ht_text), ptr_cc_id, holiday (*init_data, detected, _(hd_text[HD_SYLVESTER].ht_text), ptr_cc_id,
DIS_HLS_PREF, dvec[MONTH_MAX - 1], MONTH_MAX, year, hd_elems, fday, DIS_HLS_PREF, dvec[MONTH_MAX - 1], MONTH_MAX, year, hd_elems, fday,
count); count);
base_christian_hdy (init_data, detected, easter, year, hd_elems, fday, base_christian_hdy (init_data, detected, easter, year, hd_elems, fday,
count); count, ptr_cc_id);
} }
void void
bt_hdy (init_data, detected, easter, year, hd_elems, fday, count) bt_hdy (init_data, detected, easter, year, hd_elems, fday, count)
Bool *init_data; Bool *init_data;
const Bool detected; const Bool detected;
int easter; int easter;
const int year; const int year;
int *hd_elems; int *hd_elems;
const int fday; const int fday;
skipping to change at line 3175 skipping to change at line 3175
holiday (*init_data, detected, _(hd_text[HD_NATIONAL_HOLIDAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_NATIONAL_HOLIDAY].ht_text),
ptr_cc_id, "+", 7, MONTH_MAX, year, hd_elems, fday, count); ptr_cc_id, "+", 7, MONTH_MAX, year, hd_elems, fday, count);
holiday (*init_data, detected, _(hd_text[HD_ARMISTICE_DAY].ht_text), holiday (*init_data, detected, _(hd_text[HD_ARMISTICE_DAY].ht_text),
ptr_cc_id, "+", 15, 11, year, hd_elems, fday, count); ptr_cc_id, "+", 15, 11, year, hd_elems, fday, count);
holiday (*init_data, detected, _(hd_text[HD_RE_DAY].ht_text), ptr_cc_id, holiday (*init_data, detected, _(hd_text[HD_RE_DAY].ht_text), ptr_cc_id,
"+", 7, 8, year, hd_elems, fday, count); "+", 7, 8, year, hd_elems, fday, count);
holiday (*init_data, detected, _(hd_text[HD_SYLVESTER].ht_text), ptr_cc_id, holiday (*init_data, detected, _(hd_text[HD_SYLVESTER].ht_text), ptr_cc_id,
DIS_HLS_PREF, dvec[MONTH_MAX - 1], MONTH_MAX, year, hd_elems, fday, DIS_HLS_PREF, dvec[MONTH_MAX - 1], MONTH_MAX, year, hd_elems, fday,
count); count);
base_christian_hdy (init_data, detected, easter, year, hd_elems, fday, base_christian_hdy (init_data, detected, easter, year, hd_elems, fday,
count); count, ptr_cc_id);
} }
void void
ck_hdy (init_data, detected, easter, year, hd_elems, fday, count) ck_hdy (init_data, detected, easter, year, hd_elems, fday, count)
Bool *init_data; Bool *init_data;
const Bool detected; const Bool detected;
int easter; int easter;
const int year; const int year;
int *hd_elems; int *hd_elems;
const int fday; const int fday;
 End of changes. 9 change blocks. 
9 lines changed or deleted 9 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS