#define JDAY(date) ((date) - STARTDATE + JDAY_BASE + 1) #define PART_SUPP_BRIDGE(tgt, p, s) \ { \ long tot_scnt = tdefs[SUPP].base * scale; \ tgt = (p + s * (tot_scnt / SUPP_PER_PART + \ (long) ((p - 1) / tot_scnt))) % tot_scnt + 1; \ ...