home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume19 / calentool / patch01 / patches01
Encoding:
Text File  |  1991-05-17  |  30.7 KB  |  964 lines

  1. *** patchlevel.h.orig    Fri Feb  1 12:20:38 1991
  2. --- patchlevel.h    Mon May 13 09:18:21 1991
  3. ***************
  4. *** 1,5 ****
  5.   /*
  6. !  * $Header: patchlevel.h,v 2.8 91/02/01 12:20:37 billr Exp $
  7.    */
  8.   /*
  9.    * patchlevel.h - current patchlevel of the current version
  10. --- 1,5 ----
  11.   /*
  12. !  * $Header: patchlevel.h,v 2.9 91/05/13 09:18:20 billr Exp $
  13.    */
  14.   /*
  15.    * patchlevel.h - current patchlevel of the current version
  16. ***************
  17. *** 6,9 ****
  18.    * of the calentool program
  19.    */
  20.   
  21. ! #define PATCHLEVEL    0
  22. --- 6,9 ----
  23.    * of the calentool program
  24.    */
  25.   
  26. ! #define PATCHLEVEL    1
  27. *** /dev/null    Mon May 13 09:20:00 1991
  28. --- Patches2_2    Mon May 13 09:13:54 1991
  29. ***************
  30. *** 0 ****
  31. --- 1,40 ----
  32. + # $Header: Patches2_2,v 2.0 91/05/13 09:13:44 billr Exp $
  33. + # Patchlevel 1 of Version 2.2
  34. +     ===========
  35. +     Bugs Fixed
  36. +     ===========
  37. + - Incorrect dates in the dates/world file (jk@computer-science.manchester.ac.uk)
  38. + - Printer selections from the menu use the wrong output format (brooks@ge-dab.ge.com)
  39. + - Printer support off by default
  40. + - Use TIME_OUT from ct.h (was being overriden elsewhere)
  41. + - Week PS printout overlaps the times on the left edge (brooks@ge-dab.ge.com)
  42. + - Incorrect dates in the dates/celtic file (slocum@orion.ssdc.honeywell.COM))
  43. + - Year display sometimes hangs (dougd@uts.amdahl.COM)
  44. + - Several typos in the man page (lms%tdjdo.tdat@suntzu.West.Sun.COM)
  45. + - dates/lives and dates/events not listed in DATEFILES entry in Makefile
  46. +   (mnolan@lpl.arizona.edu)
  47. + - Multiple copies of appointment reminders appear when editing a day
  48. +   page other than today (paulb@harley.tti.COM)
  49. + - Incorrect date for KAL 007 crash (paulb@harley.tti.COM)
  50. + - Crash with segmentation fault when adding an appointment to current
  51. +   day (paulb@harley.tti.COM)
  52. + - Crash when typing in very long appointment entries (dougd@uts.amdahl.COM)
  53. + - Appointments lasting longer than the length of the day page are
  54. +   silently truncated (brooks@sundance7.dab.ge.COM)
  55. + - ASCII week printout (-PW) only printed <weeklength> days when it
  56. +   should probably always print 7 days (brooks@sundance7.dab.ge.COM)
  57. +     ====================
  58. +     Feature Enhancements
  59. +     ====================
  60. + None.
  61. +     ==========
  62. +     Known Bugs
  63. +     ==========
  64. + * Doesn't compile "out of the box" on a Sun 2 (SunOS 4.0.3) - reason
  65. +   unknown.
  66. *** calentool.1.orig    Wed Mar 27 17:01:40 1991
  67. --- calentool.1    Mon May 13 09:17:51 1991
  68. ***************
  69. *** 1,6 ****
  70. ! .\" $Header: calentool.1,v 2.8 91/03/27 17:01:33 billr Exp $
  71.   .\"
  72. ! .TH CALENTOOL 1 "7 March 1991"
  73.   .ds Ps P\s-2OST\s+2S\s-2CRIPT\s+2\*R
  74.   .SH NAME
  75.   calentool - day/week/month/year-at-a-glance SunView tool (the Hacker's Almanac)
  76. --- 1,6 ----
  77. ! .\" $Header: calentool.1,v 2.9 91/05/13 09:17:46 billr Exp $
  78.   .\"
  79. ! .TH CALENTOOL 1 "10 May 1991"
  80.   .ds Ps P\s-2OST\s+2S\s-2CRIPT\s+2\*R
  81.   .SH NAME
  82.   calentool - day/week/month/year-at-a-glance SunView tool (the Hacker's Almanac)
  83. ***************
  84. *** 207,213 ****
  85.   .B \-e
  86.   or
  87.   .B \-E
  88. ! options are used, the date format is DD/MO and DD/MO/YY.
  89.   .TP
  90.   relative dates:
  91.   +n (n days from now, for example +1 for tomorrow)
  92. --- 207,213 ----
  93.   .B \-e
  94.   or
  95.   .B \-E
  96. ! options are used, the date format is DD/MO and DD/MO/YY.)
  97.   .TP
  98.   relative dates:
  99.   +n (n days from now, for example +1 for tomorrow)
  100. ***************
  101. *** 340,346 ****
  102.   .BI \-N " int"
  103.   Set the number of noteslots displayed to
  104.   .I int
  105. ! slots.  This is useful if the you increase the number of timeslots used
  106.   and want to keep the overall display size down.
  107.   .TP
  108.   .B \-o
  109. --- 340,346 ----
  110.   .BI \-N " int"
  111.   Set the number of noteslots displayed to
  112.   .I int
  113. ! slots.  This is useful if you increase the number of timeslots used
  114.   and want to keep the overall display size down.
  115.   .TP
  116.   .B \-o
  117. ***************
  118. *** 377,383 ****
  119.   shows all notes, while
  120.   .B \-P
  121.   does not show notes not marked for display in the month/year displays.
  122. ! No printout is provide of the current day's appointments, if there
  123.   are none.
  124.   By default, the output generated by the -[pP] command is
  125.   in ASCII, except for month printouts where the default is \*(Ps.
  126. --- 377,383 ----
  127.   shows all notes, while
  128.   .B \-P
  129.   does not show notes not marked for display in the month/year displays.
  130. ! No printout is provided of the current day's appointments, if there
  131.   are none.
  132.   By default, the output generated by the -[pP] command is
  133.   in ASCII, except for month printouts where the default is \*(Ps.
  134. ***************
  135. *** 406,412 ****
  136.   hour (1 to 24).  The end hour must be greater than the start hour.
  137.   If the start stop span is large, you should change the default font
  138.   to a smaller size font.  This can be done with the
  139. ! .B \-Wi
  140.   SunView window option or by setting it explicity in the defaults file
  141.   (see below).
  142.   .TP
  143. --- 406,412 ----
  144.   hour (1 to 24).  The end hour must be greater than the start hour.
  145.   If the start stop span is large, you should change the default font
  146.   to a smaller size font.  This can be done with the
  147. ! .B \-Wt
  148.   SunView window option or by setting it explicity in the defaults file
  149.   (see below).
  150.   .TP
  151. ***************
  152. *** 467,473 ****
  153.   .B \-7
  154.   Display all seven days in the week display.  This is useful if the installer
  155.   has set the default value to 5 or 6 days.
  156. ! Sundat through Saturday is the standard format.  Using the
  157.   .B \-e
  158.   or
  159.   .B \-E
  160. --- 467,473 ----
  161.   .B \-7
  162.   Display all seven days in the week display.  This is useful if the installer
  163.   has set the default value to 5 or 6 days.
  164. ! Sunday through Saturday is the standard format.  Using the
  165.   .B \-e
  166.   or
  167.   .B \-E
  168. ***************
  169. *** 514,520 ****
  170.   lines to show all scheduled time at a glance.  As the
  171.   .B More
  172.   button is toggled, the arrows change state such that the new active
  173. ! appointment has arrows drawna s solid lines and the previous appointment's
  174.   arrows (if any) are now dashed.
  175.   If appointment text is too wide for the
  176.   day page, scroll buttons appear to the right of the text and may be used to
  177. --- 514,520 ----
  178.   lines to show all scheduled time at a glance.  As the
  179.   .B More
  180.   button is toggled, the arrows change state such that the new active
  181. ! appointment has arrows drawn as solid lines and the previous appointment's
  182.   arrows (if any) are now dashed.
  183.   If appointment text is too wide for the
  184.   day page, scroll buttons appear to the right of the text and may be used to
  185. ***************
  186. *** 634,644 ****
  187.   a vertical indicator arrow appears and follows the cursor.  Drag the cursor
  188.   to the location of the final time slot and release the button.
  189.   The SunView L6 and L8 keys (COPY/PASTE or PUT/GET) may be also be
  190. ! used to paste the text from the shelf to an active appoinment slot
  191.   or from an appointment slot to the shelf.  When inserting a string
  192.   in calentool using PASTE the slot must be active first (i.e. the
  193.   .I mouse-LB
  194. ! must have been pressed first.
  195.   .SS "Changing an appointment"
  196.   Selecting the
  197.   .I mouse-RB
  198. --- 634,644 ----
  199.   a vertical indicator arrow appears and follows the cursor.  Drag the cursor
  200.   to the location of the final time slot and release the button.
  201.   The SunView L6 and L8 keys (COPY/PASTE or PUT/GET) may be also be
  202. ! used to paste the text from the shelf to an active appointment slot
  203.   or from an appointment slot to the shelf.  When inserting a string
  204.   in calentool using PASTE the slot must be active first (i.e. the
  205.   .I mouse-LB
  206. ! must have been pressed first).
  207.   .SS "Changing an appointment"
  208.   Selecting the
  209.   .I mouse-RB
  210. ***************
  211. *** 937,943 ****
  212.   movies
  213.   Historical events pertaining to motion pictures
  214.   .TP
  215. ! movies
  216.   Historical events pertaining to the music world (both popular and traditional)
  217.   .TP
  218.   radio
  219. --- 937,943 ----
  220.   movies
  221.   Historical events pertaining to motion pictures
  222.   .TP
  223. ! music
  224.   Historical events pertaining to the music world (both popular and traditional)
  225.   .TP
  226.   radio
  227. *** calentool.c.orig    Wed Mar 27 16:45:05 1991
  228. --- calentool.c    Mon May 13 09:17:58 1991
  229. ***************
  230. *** 1,5 ****
  231.   /*
  232. !  * $Header: calentool.c,v 2.5 91/03/27 16:44:59 billr Exp $
  233.    */
  234.   /*
  235.    * calentool.c
  236. --- 1,5 ----
  237.   /*
  238. !  * $Header: calentool.c,v 2.6 91/05/13 09:17:52 billr Exp $
  239.    */
  240.   /*
  241.    * calentool.c
  242. ***************
  243. *** 762,769 ****
  244.   #endif
  245.       /* only check appointments every TIME_OUT minutes */
  246.       timeout_cntr += update_interval;
  247. - #undef TIME_OUT
  248. - #define TIME_OUT 1
  249.       if (timeout_cntr/60 < TIME_OUT)
  250.           return(NOTIFY_DONE);
  251.       timeout_cntr = 0;
  252. --- 762,767 ----
  253. *** common.c.orig    Wed Mar 27 16:45:11 1991
  254. --- common.c    Mon May 13 09:18:03 1991
  255. ***************
  256. *** 1,5 ****
  257.   /*
  258. !  * $Header: common.c,v 1.2 91/03/27 16:45:05 billr Exp $
  259.    */
  260.   /*
  261.    * common.c
  262. --- 1,5 ----
  263.   /*
  264. !  * $Header: common.c,v 1.3 91/05/13 09:17:59 billr Exp $
  265.    */
  266.   /*
  267.    * common.c
  268. ***************
  269. *** 110,118 ****
  270.       /* make sure it doesn't extend too far and truncate if neccessary */
  271.       if (slotno >= n_tslots)
  272.           nappt->arrows = 0;    /* force notes to have no arrows */
  273. !     else if ((slotno + nappt->arrows) >= n_tslots)
  274. !         nappt->arrows = n_tslots - slotno - 1;    /* truncate */
  275. !     n_arrows = nappt->arrows;
  276.       if (nappt->flags & DELETED) {
  277.           /* look for matching non-deleted appt in list */
  278.           for (optr=slots[slotno].first;optr && !found;optr=optr->next)
  279. --- 110,119 ----
  280.       /* make sure it doesn't extend too far and truncate if neccessary */
  281.       if (slotno >= n_tslots)
  282.           nappt->arrows = 0;    /* force notes to have no arrows */
  283. !     if ((slotno + nappt->arrows) >= n_tslots)
  284. !         n_arrows = n_tslots - slotno - 1;    /* truncate */
  285. !     else
  286. !         n_arrows = nappt->arrows;
  287.       if (nappt->flags & DELETED) {
  288.           /* look for matching non-deleted appt in list */
  289.           for (optr=slots[slotno].first;optr && !found;optr=optr->next)
  290. ***************
  291. *** 514,521 ****
  292.       struct tm save;
  293.       int runl;
  294.   
  295. -     save = current;
  296.       fix_current_day();
  297.       /* set current to match dow of repeated appt */
  298.       if (appt->flags & EVERY_MON_FRI) {
  299.           if (current.tm_wday == SUN)
  300. --- 515,522 ----
  301.       struct tm save;
  302.       int runl;
  303.   
  304.       fix_current_day();
  305. +     save = current;
  306.       /* set current to match dow of repeated appt */
  307.       if (appt->flags & EVERY_MON_FRI) {
  308.           if (current.tm_wday == SUN)
  309. ***************
  310. *** 658,668 ****
  311.       struct appt_entry *aptr;
  312.       struct tm Saveday;
  313.       char *getenv();
  314. -     static time_t lastmod = (time_t)0;
  315. -     struct stat stbuf;
  316.   #ifndef CALENCHECK
  317.       char msgfile[128];
  318.       int some_appts = 0;    /* no appointments today */
  319.       static int icon_in_use = STD_ICON;
  320.       Icon cur_icon;
  321.       FILE *msgf;
  322. --- 659,668 ----
  323.       struct appt_entry *aptr;
  324.       struct tm Saveday;
  325.       char *getenv();
  326.   #ifndef CALENCHECK
  327.       char msgfile[128];
  328.       int some_appts = 0;    /* no appointments today */
  329. +     int read_file = 0;    /* reread appts file when true */
  330.       static int icon_in_use = STD_ICON;
  331.       Icon cur_icon;
  332.       FILE *msgf;
  333. ***************
  334. *** 679,685 ****
  335.   
  336.       sno = echoed_sno;    /* assume no console echo */
  337.       get_today();
  338. -     stat(apts_pathname, &stbuf);
  339.       Saveday = current;
  340.       /*
  341.        * Check to see if we're not displaying today.
  342. --- 679,684 ----
  343. ***************
  344. *** 691,697 ****
  345.       if ((int)window_get(frame, FRAME_CLOSED) && ymd_compare(closedate, today) != 0)
  346.           new_day++;
  347.   #endif
  348. !     if (ymd_compare(current, today) != 0 || new_day) {
  349.           if (day_is_open)
  350.               close_day();
  351.           current = today;
  352. --- 690,696 ----
  353.       if ((int)window_get(frame, FRAME_CLOSED) && ymd_compare(closedate, today) != 0)
  354.           new_day++;
  355.   #endif
  356. !     if (ymd_compare(current, today) != 0 || new_day || !day_is_open) {
  357.           if (day_is_open)
  358.               close_day();
  359.           current = today;
  360. ***************
  361. *** 698,715 ****
  362.   #ifdef CALENCHECK
  363.           new_day++;
  364.   #endif
  365. -     }
  366. -     if (stbuf.st_mtime > lastmod) {
  367. -         lastmod = stbuf.st_mtime;
  368. -         day_is_open = FALSE;    /* force reading appts file */
  369. -         sno = echoed_sno = -1;
  370. -     }
  371. -     if (day_is_open) {
  372. -         /* slot info is current */
  373. - #ifndef CALENCHECK
  374. -         unlock_cursors();
  375. - #endif
  376. -     } else {
  377.   #ifdef CALENCHECK
  378.           (void)get_day_appts();
  379.   #else
  380. --- 697,702 ----
  381. ***************
  382. *** 718,728 ****
  383.           err2console(TRUE);
  384.           (void)get_day_appts();
  385.           err2console(FALSE);
  386.   #endif
  387. -         day_is_open = TRUE;
  388.           read_only = save_ro;
  389.           if (new_day)
  390.               sno = echoed_sno = -1;
  391.       }
  392.   
  393.       slotno = (today.tm_hour - start_hour)*2 + today.tm_min/30;
  394. --- 705,720 ----
  395.           err2console(TRUE);
  396.           (void)get_day_appts();
  397.           err2console(FALSE);
  398. +         read_file++;
  399.   #endif
  400.           read_only = save_ro;
  401.           if (new_day)
  402.               sno = echoed_sno = -1;
  403. +     } else {
  404. +         /* slot info is current */
  405. + #ifndef CALENCHECK
  406. +         unlock_cursors();
  407. + #endif
  408.       }
  409.   
  410.       slotno = (today.tm_hour - start_hour)*2 + today.tm_min/30;
  411. ***************
  412. *** 856,861 ****
  413. --- 848,854 ----
  414.       if (new_day && (int)window_get(frame, FRAME_CLOSED)) {
  415.           /* update times so that it opens on today */
  416.           closedate = olddate = Saveday = today;
  417. +         read_file++;
  418.           /* update date field of the icons */
  419.           sprintf(datestr_day, "%d", today.tm_mday);
  420.           /* replace the date */
  421. ***************
  422. *** 899,908 ****
  423.       }
  424.   #endif
  425.   #ifndef CALENCHECK
  426. !     current = Saveday;
  427. !     err2console(TRUE);
  428. !     (void)get_day_appts();
  429. !     err2console(FALSE);
  430.       if (locked == 2)
  431.           unlock_cursors();
  432.   #endif
  433. --- 892,904 ----
  434.       }
  435.   #endif
  436.   #ifndef CALENCHECK
  437. !     if (read_file) {
  438. !         current = Saveday;
  439. !         err2console(TRUE);
  440. !         (void)get_day_appts();
  441. !         err2console(FALSE);
  442. !         day_is_open = TRUE;
  443. !     }
  444.       if (locked == 2)
  445.           unlock_cursors();
  446.   #endif
  447. *** ct.h.orig    Mon May 13 09:20:54 1991
  448. --- ct.h    Mon May 13 09:18:06 1991
  449. ***************
  450. *** 1,5 ****
  451.   /*
  452. !  * $Header: ct.h,v 2.5 91/03/27 16:45:12 billr Exp $
  453.    */
  454.   /*
  455.    * ct.h - header file for calentool
  456. --- 1,5 ----
  457.   /*
  458. !  * $Header: ct.h,v 2.6 91/05/13 09:18:04 billr Exp $
  459.    */
  460.   /*
  461.    * ct.h - header file for calentool
  462. ***************
  463. *** 27,33 ****
  464.    * define some or all of these here or in the Makefile. Combined,
  465.    * they save ~100K bytes for a statically linked object.
  466.    */
  467. ! #define NO_PRINTER        /* exclude printer support code */
  468.   /*#define NO_HOLIDAYS        /* exclude holiday checking code */
  469.   /*#define NO_SUN_MOON        /* exclude Sun/Moon data frames */
  470.   
  471. --- 27,33 ----
  472.    * define some or all of these here or in the Makefile. Combined,
  473.    * they save ~100K bytes for a statically linked object.
  474.    */
  475. ! /*#define NO_PRINTER        /* exclude printer support code */
  476.   /*#define NO_HOLIDAYS        /* exclude holiday checking code */
  477.   /*#define NO_SUN_MOON        /* exclude Sun/Moon data frames */
  478.   
  479. *** devent.c.orig    Wed Mar 27 16:45:28 1991
  480. --- devent.c    Mon May 13 09:18:12 1991
  481. ***************
  482. *** 1,5 ****
  483.   /*
  484. !  * $Header: devent.c,v 2.8 91/03/27 16:45:23 billr Exp $
  485.    */
  486.   /*
  487.    * devent.c
  488. --- 1,5 ----
  489.   /*
  490. !  * $Header: devent.c,v 2.9 91/05/13 09:18:07 billr Exp $
  491.    */
  492.   /*
  493.    * devent.c
  494. ***************
  495. *** 125,131 ****
  496.               /* in a different slot than we were before */
  497.               if (slots[box_index].active)
  498.                   /* display cursor at new location */
  499. !               text_cursor(box_index);
  500.             }
  501.           if (found_flag == FOUND_SLOT && event_id(event) == KEY_LEFT(8)
  502.           && event_is_up(event)) {
  503. --- 125,131 ----
  504.               /* in a different slot than we were before */
  505.               if (slots[box_index].active)
  506.                   /* display cursor at new location */
  507. !                 text_cursor(box_index);
  508.             }
  509.           if (found_flag == FOUND_SLOT && event_id(event) == KEY_LEFT(8)
  510.           && event_is_up(event)) {
  511. ***************
  512. *** 441,446 ****
  513. --- 441,448 ----
  514.   {
  515.       int    strl, x;
  516.   
  517. +     if (slots[slotno].cur_appt == NULL)
  518. +         return;
  519.       strl = strlen(&slots[slotno].cur_appt->str[slots[slotno].cur_appt->sindex]);
  520.       if (strl <= (day_message_size-1)) {
  521.           x = slots[slotno].slot_pos.left + strl * font->pf_defaultsize.x;
  522. *** notify.c.orig    Wed Mar 27 16:46:08 1991
  523. --- notify.c    Mon May 13 09:18:19 1991
  524. ***************
  525. *** 1,5 ****
  526.   /*
  527. !  * $Header: notify.c,v 2.4 91/03/27 16:46:01 billr Exp $
  528.    */
  529.   /*
  530.    * notify.c
  531. --- 1,5 ----
  532.   /*
  533. !  * $Header: notify.c,v 2.5 91/05/13 09:18:13 billr Exp $
  534.    */
  535.   /*
  536.    * notify.c
  537. ***************
  538. *** 1416,1422 ****
  539.   #endif
  540.           value = (int) menu_show(print_menu, panel, event, 0);
  541.           if (value > 0) {
  542. !             panel_set(item, PANEL_CLIENT_DATA, value, 0);
  543.               if (value == 3) {
  544.                   /* change printer */
  545.                   panel_set_value(prfile_pi, print_to_file);
  546. --- 1416,1422 ----
  547.   #endif
  548.           value = (int) menu_show(print_menu, panel, event, 0);
  549.           if (value > 0) {
  550. !             panel_set(item, PANEL_CLIENT_DATA, value+1, 0);
  551.               if (value == 3) {
  552.                   /* change printer */
  553.                   panel_set_value(prfile_pi, print_to_file);
  554. *** pcaldw.c.orig    Wed Mar 27 16:46:20 1991
  555. --- pcaldw.c    Mon May 13 09:18:23 1991
  556. ***************
  557. *** 1,5 ****
  558.   /*
  559. !  * $Header: pcaldw.c,v 1.2 91/03/27 16:46:17 billr Exp $
  560.    */
  561.   /*
  562.    * pcaldw - print pretty PostScript image of a day or week calendar
  563. --- 1,5 ----
  564.   /*
  565. !  * $Header: pcaldw.c,v 1.3 91/05/13 09:18:22 billr Exp $
  566.    */
  567.   /*
  568.    * pcaldw - print pretty PostScript image of a day or week calendar
  569. ***************
  570. *** 244,250 ****
  571.       "{",
  572.       "  90 rotate",
  573.       "  40 -50 translate",
  574. !     "  /offset -405 def",
  575.       "  /xscale 8.75 nweekd div 5.625 div def",
  576.       "  dayfont findfont 10 scalefont setfont",
  577.       "  gsave",
  578. --- 244,250 ----
  579.       "{",
  580.       "  90 rotate",
  581.       "  40 -50 translate",
  582. !     "  /offset -380 def",
  583.       "  /xscale 8.75 nweekd div 5.625 div def",
  584.       "  dayfont findfont 10 scalefont setfont",
  585.       "  gsave",
  586. *** printer.c.orig    Wed Mar 27 16:46:21 1991
  587. --- printer.c    Mon May 13 09:18:26 1991
  588. ***************
  589. *** 1,5 ****
  590.   /*
  591. !  * $Header: printer.c,v 1.1 91/03/27 16:46:20 billr Exp $
  592.    */
  593.   /*
  594.    * printer.c
  595. --- 1,5 ----
  596.   /*
  597. !  * $Header: printer.c,v 1.2 91/05/13 09:18:24 billr Exp $
  598.    */
  599.   /*
  600.    * printer.c
  601. ***************
  602. *** 228,234 ****
  603.   print_apts(which, dest)
  604.   int which, dest;
  605.   {
  606. !     int i, gd_rtn, target;
  607.       FILE *output, *pfp, *popen();
  608.       char cmd[80], *name, *cuserid(), *mail_subj();
  609.       struct tm Save;
  610. --- 228,234 ----
  611.   print_apts(which, dest)
  612.   int which, dest;
  613.   {
  614. !     int i, gd_rtn, target, ndays;
  615.       FILE *output, *pfp, *popen();
  616.       char cmd[80], *name, *cuserid(), *mail_subj();
  617.       struct tm Save;
  618. ***************
  619. *** 277,282 ****
  620. --- 277,285 ----
  621.                   /* looking at Sun */
  622.                   current.tm_mday++;
  623.               fix_current_day();
  624. +             ndays = nr_weekdays;
  625. +         } else {
  626. +             ndays = 7;
  627.           }
  628.           if (print_dev == PR_POSTSCRIPT)
  629.   #ifdef RASTER_ONLY
  630. ***************
  631. *** 285,291 ****
  632.               print_psweek(output, (which == PRI_WEEK_XNOTES ? TRUE : FALSE));
  633.   #endif
  634.           else
  635. !             for (i=0;i<nr_weekdays;i++) {
  636.                   gd_rtn = get_day_appts();
  637.                   if ((gd_rtn && which == PRI_WEEK) ||
  638.                       (gd_rtn & ~SOME_MKNOTES && which == PRI_WEEK_XNOTES))
  639. --- 288,294 ----
  640.               print_psweek(output, (which == PRI_WEEK_XNOTES ? TRUE : FALSE));
  641.   #endif
  642.           else
  643. !             for (i=0;i<ndays;i++) {
  644.                   gd_rtn = get_day_appts();
  645.                   if ((gd_rtn && which == PRI_WEEK) ||
  646.                       (gd_rtn & ~SOME_MKNOTES && which == PRI_WEEK_XNOTES))
  647. *** version.c.orig    Wed Mar 27 17:14:59 1991
  648. --- version.c    Mon May 13 09:18:28 1991
  649. ***************
  650. *** 1,5 ****
  651.   /*
  652. !  * $Header: version.c,v 2.10 91/03/27 17:14:50 billr Exp $
  653.    */
  654.   /*
  655.    * version.c - current version of calentool program
  656. --- 1,5 ----
  657.   /*
  658. !  * $Header: version.c,v 2.11 91/05/13 09:18:27 billr Exp $
  659.    */
  660.   /*
  661.    * version.c - current version of calentool program
  662. ***************
  663. *** 30,38 ****
  664.   
  665.   static char vers[64];
  666.   static char vers_name[] = "Calendar Tool V2.2";
  667. ! static char vers_date[] = " [3/26/91]";
  668.   #ifdef TEST
  669. ! static char vers_test[] = "delta";
  670.   #endif
  671.   
  672.   char *
  673. --- 30,38 ----
  674.   
  675.   static char vers[64];
  676.   static char vers_name[] = "Calendar Tool V2.2";
  677. ! static char vers_date[] = " [5/10/91]";
  678.   #ifdef TEST
  679. ! static char vers_test[] = "epsilon";
  680.   #endif
  681.   
  682.   char *
  683. *** ypaint.c.orig    Wed Mar 27 16:46:53 1991
  684. --- ypaint.c    Mon May 13 09:18:30 1991
  685. ***************
  686. *** 1,5 ****
  687.   /*
  688. !  * $Header: ypaint.c,v 2.5 91/03/27 16:46:51 billr Exp $
  689.    */
  690.   /*
  691.    * ypaint.c
  692. --- 1,5 ----
  693.   /*
  694. !  * $Header: ypaint.c,v 2.6 91/05/13 09:18:29 billr Exp $
  695.    */
  696.   /*
  697.    * ypaint.c
  698. ***************
  699. *** 66,72 ****
  700.       print_button(TRUE);
  701.   
  702.       /* Which days have appointments? */
  703. !     for (i=1; i<=dysize(current.tm_year + 1900); i++)
  704.           busy_today[i] = 0;
  705.       Save = current;
  706.       current.tm_mon = JAN;
  707. --- 66,72 ----
  708.       print_button(TRUE);
  709.   
  710.       /* Which days have appointments? */
  711. !     for (i=0; i<dysize(current.tm_year + 1900); i++)
  712.           busy_today[i] = 0;
  713.       Save = current;
  714.       current.tm_mon = JAN;
  715. ***************
  716. *** 177,188 ****
  717.                   else
  718.                       busy_today[current.tm_yday]++;
  719.               }
  720. !         } else if ((appt.flags & REPEAT) || (appt.flags & EVERY_SOMEDAY)) {
  721.               /* find 1st appt in this year */
  722. !             if (appt.flags & RUN)
  723. !                 runl = appt.runlength;
  724. !             else
  725. !                 runl = 1;
  726.               if (appt.flags & EVERY_SOMEDAY)
  727.                   find_date(&appt);
  728.               while (ymd_compare(current, First) < 0 && runl) {
  729. --- 177,185 ----
  730.                   else
  731.                       busy_today[current.tm_yday]++;
  732.               }
  733. !         } else if (appt.flags & RUN) {
  734.               /* find 1st appt in this year */
  735. !             runl = appt.runlength;
  736.               if (appt.flags & EVERY_SOMEDAY)
  737.                   find_date(&appt);
  738.               while (ymd_compare(current, First) < 0 && runl) {
  739. *** Makefile.orig    Wed Mar 27 17:01:29 1991
  740. --- Makefile    Mon May 13 09:18:33 1991
  741. ***************
  742. *** 1,4 ****
  743. ! # $Header: Makefile,v 2.7 91/03/27 17:01:26 billr Exp $
  744.   #
  745.   #C DEFINES (make macro DEFINES):
  746.   # (These can all be set in ct.h also)
  747. --- 1,4 ----
  748. ! # $Header: Makefile,v 2.8 91/05/13 09:18:31 billr Exp $
  749.   #
  750.   #C DEFINES (make macro DEFINES):
  751.   # (These can all be set in ct.h also)
  752. ***************
  753. *** 89,95 ****
  754.        dates/lives3 dates/lives4 dates/lives5 dates/lives6 dates/lotr\
  755.        dates/movies dates/music dates/radio dates/sfo dates/space\
  756.        dates/sports dates/television dates/usa_holiday dates/usa_other\
  757. !      dates/usa_states dates/witchcraft dates/world
  758.   SRCS=    calentool.c common.c datelib.o devent.c dpaint.c event.c\
  759.        expire.c holidays.c init.c moon.c mpaint.c notify.c pcal.c\
  760.        pcaldw.c printer.c ras2ps.c riseset.c tool.c utils.c\
  761. --- 89,96 ----
  762.        dates/lives3 dates/lives4 dates/lives5 dates/lives6 dates/lotr\
  763.        dates/movies dates/music dates/radio dates/sfo dates/space\
  764.        dates/sports dates/television dates/usa_holiday dates/usa_other\
  765. !      dates/usa_states dates/witchcraft dates/world\
  766. !      dates/events dates/lives
  767.   SRCS=    calentool.c common.c datelib.o devent.c dpaint.c event.c\
  768.        expire.c holidays.c init.c moon.c mpaint.c notify.c pcal.c\
  769.        pcaldw.c printer.c ras2ps.c riseset.c tool.c utils.c\
  770. *** dates/space.orig    Thu Mar  7 16:21:31 1991
  771. --- dates/space    Mon May 13 09:36:56 1991
  772. ***************
  773. *** 1,5 ****
  774.   # CalenTool V2.2 - nflag=1 range=1,12 - DO NOT REMOVE THIS LINE
  775. ! # $Header: space,v 2.4 91/03/07 16:21:27 billr Exp $
  776.   # Dates related to events in aviation, astronomy and space exploration
  777.   # Today in History dates provided by Robert Heckendorn at
  778.   # Hewlett-Packard in Fort Collins, Colorado.
  779. --- 1,5 ----
  780.   # CalenTool V2.2 - nflag=1 range=1,12 - DO NOT REMOVE THIS LINE
  781. ! # $Header: space,v 2.5 91/05/13 09:36:51 billr Exp $
  782.   # Dates related to events in aviation, astronomy and space exploration
  783.   # Today in History dates provided by Robert Heckendorn at
  784.   # Hewlett-Packard in Fort Collins, Colorado.
  785. ***************
  786. *** 126,132 ****
  787.   ** 04 19 99 99 00 USSR Salyut 7 space station put into orbit (1982)
  788.   ** 04 20 99 99 00 American Harold Graham makes first rocket belt flight (1961)
  789.   ** 04 20 99 99 00 Canadian ANIK A2 became first commercial satellite in orbit (1973)
  790. - ** 04 20 99 99 00 Korean Airlines flight 707 is forced to crash land in the Soviet Union after begin fired on by a Soviet interceptor (1978)
  791.   ** 04 20 99 99 00 Soyuz T-8 launched; mission aborted when capsule fails to dock with Salyut station (1983)
  792.   ** 04 20 99 99 00 The manned lunar module of Apollo 16 landed on the moon (1972)
  793.   ** 04 21 99 99 00 Apollo 16 Astronauts John W. Young and Charles M. Duke explore the moon's surface (1972)
  794. --- 126,131 ----
  795. ***************
  796. *** 313,318 ****
  797. --- 312,318 ----
  798.   ** 08 30 99 99 00 Maiden Voyage of Discovery carrying first non-astronaut Charlie Walker (1984)
  799.   ** 08 31 99 99 00 269 people killed after Korean Airlines 747 shot down by USSR (1983)
  800.   ** 09 01 99 99 00 Pioneer 11, first craft to fly by Saturn (1979)
  801. + ** 09 01 99 99 00 Korean Airlines flight 007 is forced to crash land in the Soviet Union after begin fired on by a Soviet interceptor (1983)
  802.   ** 09 02 99 99 00 The asteroid Juno discovered (1804)
  803.   ** 09 03 99 99 00 Viking II lander sets down on Mars (1976)
  804.   ** 09 04 99 99 00 NASA launches its first Orbital Geophysical Observatory (OGO-1) (1964)
  805. *** dates/usa_other.orig    Thu Mar  7 16:21:38 1991
  806. --- dates/usa_other    Mon May 13 09:36:58 1991
  807. ***************
  808. *** 1,5 ****
  809.   # CalenTool V2.2 - nflag=1 range=1,12 - DO NOT REMOVE THIS LINE
  810. ! # $Header: usa_other,v 2.3 91/03/07 16:21:37 billr Exp $
  811.   # Special days file for calentool (rel 2.1); modified from network posting by
  812.   # RPC Rodgers, UCSF, Nov. 1988
  813.   # Misc US and Canadian holidays fixed by exact date or as nth mday of month
  814. --- 1,5 ----
  815.   # CalenTool V2.2 - nflag=1 range=1,12 - DO NOT REMOVE THIS LINE
  816. ! # $Header: usa_other,v 2.4 91/05/13 09:36:57 billr Exp $
  817.   # Special days file for calentool (rel 2.1); modified from network posting by
  818.   # RPC Rodgers, UCSF, Nov. 1988
  819.   # Misc US and Canadian holidays fixed by exact date or as nth mday of month
  820. ***************
  821. *** 37,43 ****
  822.   ** 04 15 99 99 00 Federal Income Tax is Due 
  823.   ** 04 19 99 99 00 Patriot's Day
  824.   ** 04 22 99 99 00 Earth Day
  825. ! ** 04 23 99 99 00 National Secretary Day
  826.   ** 04 Fr 99 99 00 [L] Arbor Day
  827.   ** 04 Su 99 99 00 [1] <4> Daylight Savings Time Begins (set clocks forward 1 h)
  828.   ** 05 01 99 99 00 Law Day (declared by Eisenhower)
  829. --- 37,43 ----
  830.   ** 04 15 99 99 00 Federal Income Tax is Due 
  831.   ** 04 19 99 99 00 Patriot's Day
  832.   ** 04 22 99 99 00 Earth Day
  833. ! ** 04 We 99 99 00 [4] National Secretary Day
  834.   ** 04 Fr 99 99 00 [L] Arbor Day
  835.   ** 04 Su 99 99 00 [1] <4> Daylight Savings Time Begins (set clocks forward 1 h)
  836.   ** 05 01 99 99 00 Law Day (declared by Eisenhower)
  837. *** dates/world.orig    Thu Mar  7 16:21:46 1991
  838. --- dates/world    Mon May 13 09:37:02 1991
  839. ***************
  840. *** 1,5 ****
  841.   # CalenTool V2.2 - nflag=1 range=1,12 - DO NOT REMOVE THIS LINE
  842. ! # $Header: world,v 2.6 91/03/07 16:21:42 billr Exp $
  843.   # Special days file for calentool (rel 2.1); modified from network posting by
  844.   # RPC Rodgers, UCSF, Nov. 1988
  845.   # Various holidays and special days commemorated around the world
  846. --- 1,5 ----
  847.   # CalenTool V2.2 - nflag=1 range=1,12 - DO NOT REMOVE THIS LINE
  848. ! # $Header: world,v 2.7 91/05/13 09:36:58 billr Exp $
  849.   # Special days file for calentool (rel 2.1); modified from network posting by
  850.   # RPC Rodgers, UCSF, Nov. 1988
  851.   # Various holidays and special days commemorated around the world
  852. ***************
  853. *** 101,107 ****
  854.   ** 03 27 99 99 00 Armed Forces Day (Burma)
  855.   ** 03 29 99 99 00 Memorial Day (Madagascar)
  856.   ** 03 31 99 99 00 National Day (Malta)
  857. ! ** 04 01 99 99 00 Beginning of the financial year (Britan)
  858.   ** 04 01 99 99 00 Youth Day (Benin)
  859.   ** 04 02 99 99 00 Malvinas Day (Argentina)
  860.   ** 04 03 99 99 00 Jimmu Tenno Sai, Demise of the First Emperor (Japan)
  861. --- 101,107 ----
  862.   ** 03 27 99 99 00 Armed Forces Day (Burma)
  863.   ** 03 29 99 99 00 Memorial Day (Madagascar)
  864.   ** 03 31 99 99 00 National Day (Malta)
  865. ! ** 04 01 99 99 00 Beginning of the financial year (Britain)
  866.   ** 04 01 99 99 00 Youth Day (Benin)
  867.   ** 04 02 99 99 00 Malvinas Day (Argentina)
  868.   ** 04 03 99 99 00 Jimmu Tenno Sai, Demise of the First Emperor (Japan)
  869. ***************
  870. *** 145,150 ****
  871. --- 145,151 ----
  872.   ** 04 30 99 99 00 Sho Konsai, Commemoration for the Departed (Japan)
  873.   ** 04 30 99 99 00 Queen's Birthday (Netherlands, Netherlands Antilles)
  874.   ** 04 30 99 99 00 The Workers Day (Uruguay)
  875. + ** 05 Mo 99 99 00 [1] Bank Holiday (UK)
  876.   ** 05 01 99 99 00 Labor Day (many places)
  877.   ** 05 01 99 00 00 Tag der Arbeit (Germany)
  878.   ** 05 02 99 99 00 Constitution Day (Japan)
  879. ***************
  880. *** 156,162 ****
  881.   ** 05 05 99 99 00 Coronation Day (Thailand)
  882.   ** 05 05 99 99 00 Independence Day/Battle of Puebla (Mexico)
  883.   ** 05 05 99 99 00 Liberation Day (Netherlands)
  884. - ** 05 06 99 99 00 Bank Holiday (UK)
  885.   ** 05 06 99 99 00 Bataan Day (Philippines)
  886.   ** 05 08 99 99 00 Buddha's Birthday (South Korea)
  887.   ** 05 08 99 99 00 Elections for National Assembly (Philippines)
  888. --- 157,162 ----
  889. ***************
  890. *** 191,197 ****
  891.   ** 05 25 99 99 00 Independence Day (Jordan)
  892.   ** 05 25 99 99 00 Revolution in Sudan (Libyan Arab Republic)
  893.   ** 05 27 99 99 00 Kaigun Kinenbi, Navy Commemoration Day (Japan)
  894. - ** 05 27 99 99 00 Bank Holiday (UK)
  895.   ** 05 28 99 99 00 Mothers Day (Central African Republic)
  896.   ** 05 31 99 99 00 Pya Martyrs Day (Togo)
  897.   ** 05 31 99 99 00 Republic Day (South Africa)
  898. --- 191,196 ----
  899. ***************
  900. *** 309,315 ****
  901.   ** 08 03 99 99 00 Massacre du Pidjiguiti (Guinea-Bissau)
  902.   ** 08 03 99 99 00 Memorial Day of Archbishop Makarios (Cyprus)
  903.   ** 08 04 99 99 00 Freedom Day (Guyana)
  904. ! ** 08 05 99 99 00 Bank Holiday (Scotland, Northern Ireland)
  905.   ** 08 06 99 99 00 Bank Holiday (Australia, Fiji, Iceland)
  906.   ** 08 06 99 99 00 Caricom (Barbados)
  907.   ** 08 06 99 99 00 Emancipation Day (Bahamas)
  908. --- 308,314 ----
  909.   ** 08 03 99 99 00 Massacre du Pidjiguiti (Guinea-Bissau)
  910.   ** 08 03 99 99 00 Memorial Day of Archbishop Makarios (Cyprus)
  911.   ** 08 04 99 99 00 Freedom Day (Guyana)
  912. ! ** 08 Mo 99 99 00 [1] Bank Holiday (Scotland, Northern Ireland)
  913.   ** 08 06 99 99 00 Bank Holiday (Australia, Fiji, Iceland)
  914.   ** 08 06 99 99 00 Caricom (Barbados)
  915.   ** 08 06 99 99 00 Emancipation Day (Bahamas)
  916. ***************
  917. *** 340,346 ****
  918.   ** 08 24 99 99 00 National Flag Day (Liberia)
  919.   ** 08 25 99 99 00 Constitution Day (Paragual)
  920.   ** 08 25 99 99 00 Independence Day (Uruguay)
  921. ! ** 08 26 99 99 00 Bank Holiday (England, Wales)
  922.   ** 08 27 99 99 00 Liberation Day (Hong Kong)
  923.   ** 08 28 99 99 00 Heroes Day (Philippines)
  924.   ** 08 30 99 99 00 St. Rose of Lima (Peru)
  925. --- 339,345 ----
  926.   ** 08 24 99 99 00 National Flag Day (Liberia)
  927.   ** 08 25 99 99 00 Constitution Day (Paragual)
  928.   ** 08 25 99 99 00 Independence Day (Uruguay)
  929. ! ** 08 Mo 99 99 00 [L] Bank Holiday (England, Wales)
  930.   ** 08 27 99 99 00 Liberation Day (Hong Kong)
  931.   ** 08 28 99 99 00 Heroes Day (Philippines)
  932.   ** 08 30 99 99 00 St. Rose of Lima (Peru)
  933. *** dates/celtic.orig    Thu Mar  7 16:21:05 1991
  934. --- dates/celtic    Mon May 13 09:38:26 1991
  935. ***************
  936. *** 1,10 ****
  937.   # CalenTool V2.2 - nflag=1 range=2,11 - DO NOT REMOVE THIS LINE
  938. ! # $Header: celtic,v 2.3 91/03/07 16:21:04 billr Exp $
  939.   # Special days file for calentool (rel 2.1); modified from network posting by
  940.   # RPC Rodgers, UCSF, Nov. 1988
  941.   # Dates of interest to Celts
  942.   #
  943. ! ** 02 01 99 99 00 Oimelc (Winter purification & approach of spring)
  944.   ** 05 01 99 99 00 Beltaine (Feast of sun god Bel)
  945. ! ** 08 01 99 99 00 Lughnasa (Feast of god Lugh, 30 day Celtic feast centers on this day)
  946. ! ** 11 01 99 99 00 Samhain (beginning of Celtic year, most important holiday)
  947. --- 1,10 ----
  948.   # CalenTool V2.2 - nflag=1 range=2,11 - DO NOT REMOVE THIS LINE
  949. ! # $Header: celtic,v 2.4 91/05/13 09:38:16 billr Exp $
  950.   # Special days file for calentool (rel 2.1); modified from network posting by
  951.   # RPC Rodgers, UCSF, Nov. 1988
  952.   # Dates of interest to Celts
  953.   #
  954. ! ** 02 02 99 99 00 Oimelc (Winter purification & approach of spring)
  955.   ** 05 01 99 99 00 Beltaine (Feast of sun god Bel)
  956. ! ** 08 02 99 99 00 Lughnasa (Feast of god Lugh, 30 day Celtic feast centers on this day)
  957. ! ** 10 31 99 99 00 Samhain (beginning of Celtic year, most important holiday)
  958.