home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / sun / volume2 / calentool / patch6 / patches06
Encoding:
Text File  |  1990-02-04  |  14.8 KB  |  511 lines

  1. *** /tmp/,RCSt1a14217    Thu Jan  4 14:29:02 1990
  2. --- Makefile    Thu Jan  4 14:28:40 1990
  3. ***************
  4. *** 1,4
  5. ! # $Header: Makefile,v 2.4 89/12/19 12:25:42 billr Exp $
  6.   #
  7.   #DATELIB_DIR  Directory containing the Date Library
  8.   #PRINT_CMD    Command to send postscript to appropriate printer
  9.  
  10. --- 1,4 -----
  11. ! # $Header: Makefile,v 2.5 90/01/04 14:28:28 billr Exp $
  12.   #
  13.   #DATELIB_DIR  Directory containing the Date Library
  14.   #PRINT_CMD    Command to send postscript to appropriate printer
  15. ***************
  16. *** 34,39
  17.   
  18.   CC = cc
  19.   DEFINES=  #-DDATELIB_DIR=\"./dates\" -DSTART_HOUR=7 -DEND_HOUR=19 -DSTART_YEAR=88
  20.   CFLAGS=    -g ${DEFINES}
  21.   CC_CFLAGS = ${CFLAGS} -DCALENCHECK
  22.   LIBS=    -lsuntool -lsunwindow -lpixrect -lm
  23.  
  24. --- 34,41 -----
  25.   
  26.   CC = cc
  27.   DEFINES=  #-DDATELIB_DIR=\"./dates\" -DSTART_HOUR=7 -DEND_HOUR=19 -DSTART_YEAR=88
  28. + # Warning: SunOS 4.x: Using -O[n] on "wpaint.c" causes the week display
  29. + # to not work properly. Other files seem to compile OK with -O[1-4].
  30.   CFLAGS=    -g ${DEFINES}
  31.   CC_CFLAGS = ${CFLAGS} -DCALENCHECK
  32.   LIBS=    -lsuntool -lsunwindow -lpixrect -lm
  33. *** /tmp/,RCSt1a14398    Thu Jan  4 15:09:36 1990
  34. --- PATCHLOG    Thu Jan  4 15:09:06 1990
  35. ***************
  36. *** 1,4
  37. ! # $Header: PATCHLOG,v 2.6 89/12/15 17:13:23 billr Exp $
  38.   
  39.   #$Log:    PATCHLOG,v $
  40.   # Revision 2.6  89/12/15  17:13:23  billr
  41.  
  42. --- 1,4 -----
  43. ! # $Header: PATCHLOG,v 2.7 90/01/04 15:08:48 billr Exp $
  44.   
  45.   #$Log:    PATCHLOG,v $
  46.   # Revision 2.7  90/01/04  15:08:48  billr
  47. ***************
  48. *** 1,6
  49.   # $Header: PATCHLOG,v 2.6 89/12/15 17:13:23 billr Exp $
  50.   
  51.   #$Log:    PATCHLOG,v $
  52.   # Revision 2.6  89/12/15  17:13:23  billr
  53.   # Patchlevel 5 of calentool fixes the following bugs and adds features:
  54.   # 
  55.  
  56. --- 1,21 -----
  57.   # $Header: PATCHLOG,v 2.7 90/01/04 15:08:48 billr Exp $
  58.   
  59.   #$Log:    PATCHLOG,v $
  60. + # Revision 2.7  90/01/04  15:08:48  billr
  61. + # Patchlevel 6 of calentool fixes the following bugs:
  62. + # 
  63. + #===========
  64. + #Bugs Fixed:
  65. + #===========
  66. + #Fix bug where holidays are not shown in the day display if there
  67. + #    are no regular appointments for that day. <smb@research.att.com>,
  68. + #    <phil@grumpy.cgrg.ohio-state.edu>
  69. + #Fix bug that caused the year display to be off by one on its display.
  70. + #    <seamans@seaimage@nlm.nih.gov>, <shen@burma.crd.ge.COM>
  71. + #Fixed typos in the world and space date files. <rodgers@maxwell.mmwb.ucsf.edu>
  72. + #Added a warning to the Makefile regarding optimizing the "wpaint.c" file.
  73. + #    <seamans@seaimage@nlm.nih.gov>
  74. + #
  75.   # Revision 2.6  89/12/15  17:13:23  billr
  76.   # Patchlevel 5 of calentool fixes the following bugs and adds features:
  77.   # 
  78. *** /tmp/,RCSt1a14237    Thu Jan  4 14:31:04 1990
  79. --- dpaint.c    Thu Jan  4 14:30:43 1990
  80. ***************
  81. *** 1,5
  82.   /*
  83. !  * $Header: dpaint.c,v 2.4 89/12/15 17:17:25 billr Exp $
  84.    */
  85.   /*
  86.    * dpaint.c
  87.  
  88. --- 1,5 -----
  89.   /*
  90. !  * $Header: dpaint.c,v 2.5 90/01/04 14:30:12 billr Exp $
  91.    */
  92.   /*
  93.    * dpaint.c
  94. ***************
  95. *** 224,230
  96.        * First check to see if the user has selected any holiday
  97.        * options and add them in.
  98.        */
  99. !     if (a_dates(&appt, holiday_a))
  100.           add_note(&appt);
  101.       if (c_dates(&appt, holiday_c))
  102.           add_note(&appt);
  103.  
  104. --- 224,231 -----
  105.        * First check to see if the user has selected any holiday
  106.        * options and add them in.
  107.        */
  108. !     if (a_dates(&appt, holiday_a)) {
  109. !         some_appt |= (holiday_a == 1 ? SOME_MKNOTES : SOME_NOTES);
  110.           add_note(&appt);
  111.       }
  112.       if (c_dates(&appt, holiday_c)) {
  113. ***************
  114. *** 226,232
  115.        */
  116.       if (a_dates(&appt, holiday_a))
  117.           add_note(&appt);
  118. !     if (c_dates(&appt, holiday_c))
  119.           add_note(&appt);
  120.       working(FALSE);
  121.       if (i = i_dates(&appt, holiday_i))
  122.  
  123. --- 227,235 -----
  124.       if (a_dates(&appt, holiday_a)) {
  125.           some_appt |= (holiday_a == 1 ? SOME_MKNOTES : SOME_NOTES);
  126.           add_note(&appt);
  127. !     }
  128. !     if (c_dates(&appt, holiday_c)) {
  129. !         some_appt |= (holiday_c == 1 ? SOME_MKNOTES : SOME_NOTES);
  130.           add_note(&appt);
  131.       }
  132.       working(FALSE);
  133. ***************
  134. *** 228,233
  135.           add_note(&appt);
  136.       if (c_dates(&appt, holiday_c))
  137.           add_note(&appt);
  138.       working(FALSE);
  139.       if (i = i_dates(&appt, holiday_i))
  140.           if (i == 2) {
  141.  
  142. --- 231,237 -----
  143.       if (c_dates(&appt, holiday_c)) {
  144.           some_appt |= (holiday_c == 1 ? SOME_MKNOTES : SOME_NOTES);
  145.           add_note(&appt);
  146. +     }
  147.       working(FALSE);
  148.       if (i = i_dates(&appt, holiday_i))
  149.           if (i == 2) {
  150. ***************
  151. *** 240,246
  152.               /* now second half of string in the next note */
  153.               strcpy(appt.str, &buf[(int)(sptr-appt.str)+1]);
  154.               add_note(&appt);
  155. !         } else
  156.               add_note(&appt);
  157.       working(TRUE);
  158.       if (j_dates(&appt, holiday_j))
  159.  
  160. --- 244,252 -----
  161.               /* now second half of string in the next note */
  162.               strcpy(appt.str, &buf[(int)(sptr-appt.str)+1]);
  163.               add_note(&appt);
  164. !             some_appt |= (holiday_i == 1 ? SOME_MKNOTES : SOME_NOTES);
  165. !         } else {
  166. !             some_appt |= (holiday_i == 1 ? SOME_MKNOTES : SOME_NOTES);
  167.               add_note(&appt);
  168.           }
  169.       working(TRUE);
  170. ***************
  171. *** 242,247
  172.               add_note(&appt);
  173.           } else
  174.               add_note(&appt);
  175.       working(TRUE);
  176.       if (j_dates(&appt, holiday_j))
  177.           add_note(&appt);
  178.  
  179. --- 248,254 -----
  180.           } else {
  181.               some_appt |= (holiday_i == 1 ? SOME_MKNOTES : SOME_NOTES);
  182.               add_note(&appt);
  183. +         }
  184.       working(TRUE);
  185.       if (j_dates(&appt, holiday_j)) {
  186.           some_appt |= (holiday_j == 1 ? SOME_MKNOTES : SOME_NOTES);
  187. ***************
  188. *** 243,249
  189.           } else
  190.               add_note(&appt);
  191.       working(TRUE);
  192. !     if (j_dates(&appt, holiday_j))
  193.           add_note(&appt);
  194.       if (s_dates(&appt, holiday_s))
  195.           add_note(&appt);
  196.  
  197. --- 250,257 -----
  198.               add_note(&appt);
  199.           }
  200.       working(TRUE);
  201. !     if (j_dates(&appt, holiday_j)) {
  202. !         some_appt |= (holiday_j == 1 ? SOME_MKNOTES : SOME_NOTES);
  203.           add_note(&appt);
  204.       }
  205.       if (s_dates(&appt, holiday_s)) {
  206. ***************
  207. *** 245,251
  208.       working(TRUE);
  209.       if (j_dates(&appt, holiday_j))
  210.           add_note(&appt);
  211. !     if (s_dates(&appt, holiday_s))
  212.           add_note(&appt);
  213.   #endif
  214.               
  215.  
  216. --- 253,261 -----
  217.       if (j_dates(&appt, holiday_j)) {
  218.           some_appt |= (holiday_j == 1 ? SOME_MKNOTES : SOME_NOTES);
  219.           add_note(&appt);
  220. !     }
  221. !     if (s_dates(&appt, holiday_s)) {
  222. !         some_appt |= (holiday_s == 1 ? SOME_MKNOTES : SOME_NOTES);
  223.           add_note(&appt);
  224.       }
  225.   #endif
  226. ***************
  227. *** 247,252
  228.           add_note(&appt);
  229.       if (s_dates(&appt, holiday_s))
  230.           add_note(&appt);
  231.   #endif
  232.               
  233.       /*
  234.  
  235. --- 257,263 -----
  236.       if (s_dates(&appt, holiday_s)) {
  237.           some_appt |= (holiday_s == 1 ? SOME_MKNOTES : SOME_NOTES);
  238.           add_note(&appt);
  239. +     }
  240.   #endif
  241.               
  242.       /*
  243. *** /tmp/,RCSt1a14252    Thu Jan  4 14:32:26 1990
  244. --- patchlevel.h    Thu Jan  4 14:31:58 1990
  245. ***************
  246. *** 1,5
  247.   /*
  248. !  * $Header: patchlevel.h,v 2.6 89/12/15 17:18:00 billr Exp $
  249.    */
  250.   /*
  251.    * patchlevel.h - current patchlevel of calentool program
  252.  
  253. --- 1,5 -----
  254.   /*
  255. !  * $Header: patchlevel.h,v 2.7 90/01/04 14:31:42 billr Exp $
  256.    */
  257.   /*
  258.    * patchlevel.h - current patchlevel of calentool program
  259. ***************
  260. *** 5,8
  261.    * patchlevel.h - current patchlevel of calentool program
  262.    */
  263.   
  264. ! #define PATCHLEVEL    5
  265.  
  266. --- 5,8 -----
  267.    * patchlevel.h - current patchlevel of calentool program
  268.    */
  269.   
  270. ! #define PATCHLEVEL    6
  271. *** /tmp/,RCSt1a14262    Thu Jan  4 14:33:27 1990
  272. --- version.c    Thu Jan  4 14:33:10 1990
  273. ***************
  274. *** 1,5
  275.   /*
  276. !  * $Header: version.c,v 2.6 89/12/15 17:18:32 billr Exp $
  277.    */
  278.   /*
  279.    * version.c - current version of calentool program
  280.  
  281. --- 1,5 -----
  282.   /*
  283. !  * $Header: version.c,v 2.7 90/01/04 14:33:02 billr Exp $
  284.    */
  285.   /*
  286.    * version.c - current version of calentool program
  287. ***************
  288. *** 24,27
  289.    * notice remains intact.
  290.    */
  291.   
  292. ! char version[] = "Calendar Tool V2.1p5";
  293.  
  294. --- 24,27 -----
  295.    * notice remains intact.
  296.    */
  297.   
  298. ! char version[] = "Calendar Tool V2.1p6";
  299. *** /tmp/,RCSt1a14267    Thu Jan  4 14:34:09 1990
  300. --- ypaint.c    Thu Jan  4 14:29:46 1990
  301. ***************
  302. *** 1,5
  303.   /*
  304. !  * $Header: ypaint.c,v 2.2 89/12/15 17:18:43 billr Exp $
  305.    */
  306.   /*
  307.    * ypaint.c
  308.  
  309. --- 1,5 -----
  310.   /*
  311. !  * $Header: ypaint.c,v 2.3 90/01/04 14:29:27 billr Exp $
  312.    */
  313.   /*
  314.    * ypaint.c
  315. ***************
  316. *** 33,39
  317.   {
  318.       int monthnr, daynr, boxnr, i, j, k, thismonth;
  319.       int row, col, x, y;
  320. !     int busy_today[366], startbox, nrdays, yrday, extra_days;
  321.       char title[5], c[3], buf[100];
  322.       Rect *rect;
  323.       struct tm Save;
  324.  
  325. --- 33,39 -----
  326.   {
  327.       int monthnr, daynr, boxnr, i, j, k, thismonth;
  328.       int row, col, x, y;
  329. !     int busy_today[367], startbox, nrdays, yrday, extra_days;
  330.       char title[5], c[3], buf[100];
  331.       Rect *rect;
  332.       struct tm Save;
  333. ***************
  334. *** 61,67
  335.       print_button(TRUE);
  336.   
  337.       /* Which days have appointments? */
  338. !     for (i=0; i<dysize(current.tm_year + 1900); i++)
  339.           busy_today[i] = 0;
  340.       Save = current;
  341.       current.tm_mon = JAN;
  342.  
  343. --- 61,67 -----
  344.       print_button(TRUE);
  345.   
  346.       /* Which days have appointments? */
  347. !     for (i=1; i<=dysize(current.tm_year + 1900); i++)
  348.           busy_today[i] = 0;
  349.       Save = current;
  350.       current.tm_mon = JAN;
  351. ***************
  352. *** 187,193
  353.        * check to see if the user has selected any holiday
  354.        * options and add them in.
  355.        */
  356. !     for (i=0; i<dysize(current.tm_year + 1900); i++) {
  357.           working(TRUE);
  358.           if (holiday_a == 1 && a_dates(&appt, holiday_a))
  359.               busy_today[i]++;
  360.  
  361. --- 187,193 -----
  362.        * check to see if the user has selected any holiday
  363.        * options and add them in.
  364.        */
  365. !     for (i=1; i<=dysize(current.tm_year + 1900); i++) {
  366.           working(TRUE);
  367.           if (holiday_a == 1 && a_dates(&appt, holiday_a))
  368.               busy_today[i]++;
  369. ***************
  370. *** 228,234
  371.   
  372.       /* draw months */
  373.       monthnr = 0;
  374. !     yrday = 0;
  375.       extra_days = 0;
  376.       if (monday_first) {
  377.           if (First.tm_wday == SUN)
  378.  
  379. --- 228,234 -----
  380.   
  381.       /* draw months */
  382.       monthnr = 0;
  383. !     yrday = 1;
  384.       extra_days = 0;
  385.       if (monday_first) {
  386.           if (First.tm_wday == SUN)
  387. *** /tmp/,RCSt1a13496    Thu Jan  4 10:24:27 1990
  388. --- dates/world    Thu Jan  4 10:23:34 1990
  389. ***************
  390. *** 1,5
  391.   # CalenTool V2 - DO NOT REMOVE THIS LINE
  392. ! # $Header: world,v 2.3 89/12/18 17:14:00 billr Exp $
  393.   # Special days file for calentool (rel 2.1); modified from network posting by
  394.   # RPC Rodgers, UCSF, Nov. 1988
  395.   # Various holidays commemorated around the world (non-US and Canadian)
  396.  
  397. --- 1,5 -----
  398.   # CalenTool V2 - DO NOT REMOVE THIS LINE
  399. ! # $Header: world,v 2.4 90/01/04 10:23:23 billr Exp $
  400.   # Special days file for calentool (rel 2.1); modified from network posting by
  401.   # RPC Rodgers, UCSF, Nov. 1988
  402.   # Various holidays commemorated around the world (non-US and Canadian)
  403. ***************
  404. *** 41,47
  405.   ** 01 23 99 99 00 Feast of St. Ildefonsus
  406.   ** 01 24 99 99 00 Economic Liberation Day (Togo)
  407.   ** 01 26 99 99 00 Republic Day (India)
  408. ! ** 01 26 99 99 00 Australia Day (Australia)
  409.   ** 02 01 99 99 00 Chinese New Year Holiday (3 days) (Taiwan)
  410.   ** 02 03 99 99 00 Setsubun, Change of Season or "Bean Throwing Night" (Japan)
  411.   ** 02 04 99 99 00 Independence Commemoration Day (Sri Lanka)
  412.  
  413. --- 41,47 -----
  414.   ** 01 23 99 99 00 Feast of St. Ildefonsus
  415.   ** 01 24 99 99 00 Economic Liberation Day (Togo)
  416.   ** 01 26 99 99 00 Republic Day (India)
  417. ! ** 01 26 99 99 00 Australia Day; observed on nearest Monday (Australia)
  418.   ** 02 01 99 99 00 Chinese New Year Holiday (3 days) (Taiwan)
  419.   ** 02 03 99 99 00 Setsubun, Change of Season or "Bean Throwing Night" (Japan)
  420.   ** 02 04 99 99 00 Independence Commemoration Day (Sri Lanka)
  421. ***************
  422. *** 358,365
  423.   ** 09 24 99 99 00 Republic Day (Trinidad, Tobago)
  424.   ** 09 25 99 99 00 Army Day (Mozambique)
  425.   ** 09 25 99 99 00 Referendum Day (Rwanda)
  426. ! ** 09 26 99 99 00 National Day (Maldives, Yemen Deomcratic Republic)
  427. ! ** 09 26 99 99 00 Revolution Anniversary Day (Yemen Arab)
  428.   ** 09 27 99 99 00 Feast of Finding the True Cross (Ethiopia)
  429.   ** 09 28 99 99 00 Confucious' Day (Taiwan)
  430.   ** 09 29 99 99 00 Battle of Boqueron (Paraquay)
  431.  
  432. --- 358,365 -----
  433.   ** 09 24 99 99 00 Republic Day (Trinidad, Tobago)
  434.   ** 09 25 99 99 00 Army Day (Mozambique)
  435.   ** 09 25 99 99 00 Referendum Day (Rwanda)
  436. ! ** 09 26 99 99 00 National Day (Maldives, Yemen Democratic Republic)
  437. ! ** 09 26 99 99 00 Revolution Anniversary Day (Yemen Arab Republic)
  438.   ** 09 27 99 99 00 Feast of Finding the True Cross (Ethiopia)
  439.   ** 09 28 99 99 00 Confucious' Day (Taiwan)
  440.   ** 09 29 99 99 00 Battle of Boqueron (Paraquay)
  441. ***************
  442. *** 364,369
  443.   ** 09 28 99 99 00 Confucious' Day (Taiwan)
  444.   ** 09 29 99 99 00 Battle of Boqueron (Paraquay)
  445.   ** 09 30 99 99 00 Botswanna Day (Botswanna)
  446.   ** 10 01 99 99 00 Armed Forces Day (South Korea)
  447.   ** 10 01 99 99 00 Independence Day (Nigeria)
  448.   #** 10 01 99 99 00 Labor Day (Australia) [really 1st Monday in October]
  449.  
  450. --- 364,370 -----
  451.   ** 09 28 99 99 00 Confucious' Day (Taiwan)
  452.   ** 09 29 99 99 00 Battle of Boqueron (Paraquay)
  453.   ** 09 30 99 99 00 Botswanna Day (Botswanna)
  454. + ** 10 Mo 99 99 00 [1] Labor Day (Australia)
  455.   ** 10 01 99 99 00 Armed Forces Day (South Korea)
  456.   ** 10 01 99 99 00 Independence Day (Nigeria)
  457.   ** 10 01 99 99 00 National Liberation Day (2 days) (China)
  458. ***************
  459. *** 366,372
  460.   ** 09 30 99 99 00 Botswanna Day (Botswanna)
  461.   ** 10 01 99 99 00 Armed Forces Day (South Korea)
  462.   ** 10 01 99 99 00 Independence Day (Nigeria)
  463. - #** 10 01 99 99 00 Labor Day (Australia) [really 1st Monday in October]
  464.   ** 10 01 99 99 00 National Liberation Day (2 days) (China)
  465.   ** 10 01 99 99 00 Public Holiday (Botswanna)
  466.   ** 10 02 99 99 00 Anniversary of Guinean Independence (Guinea)
  467.  
  468. --- 367,372 -----
  469.   ** 10 Mo 99 99 00 [1] Labor Day (Australia)
  470.   ** 10 01 99 99 00 Armed Forces Day (South Korea)
  471.   ** 10 01 99 99 00 Independence Day (Nigeria)
  472.   ** 10 01 99 99 00 National Liberation Day (2 days) (China)
  473.   ** 10 01 99 99 00 Public Holiday (Botswanna)
  474.   ** 10 02 99 99 00 Anniversary of Guinean Independence (Guinea)
  475. ***************
  476. *** 398,404
  477.   ** 10 12 99 99 00 Our Lady Aparecida Day (Brazil)
  478.   ** 10 12 99 99 00 Pan American Day (Belize)
  479.   ** 10 13 99 99 00 St. Edward's Day - patron saint of England
  480. ! ** 10 14 99 99 00 National Day (Yemen Arab Repyblic)
  481.   ** 10 14 99 99 00 Young People's Day (Zaire)
  482.   ** 10 15 99 99 00 Evacuation Day (Tunisia)
  483.   ** 10 17 99 99 00 Anniversary of Dessaline's Death (Haiti)
  484.  
  485. --- 398,404 -----
  486.   ** 10 12 99 99 00 Our Lady Aparecida Day (Brazil)
  487.   ** 10 12 99 99 00 Pan American Day (Belize)
  488.   ** 10 13 99 99 00 St. Edward's Day - patron saint of England
  489. ! ** 10 14 99 99 00 National Day (Yemen Arab Republic)
  490.   ** 10 14 99 99 00 Young People's Day (Zaire)
  491.   ** 10 15 99 99 00 Evacuation Day (Tunisia)
  492.   ** 10 17 99 99 00 Anniversary of Dessaline's Death (Haiti)
  493. ***************
  494. *** 466,472
  495.   ** 11 29 99 99 00 Goodwill Day (Liberia)
  496.   ** 11 29 99 99 00 Liberation Day (Albania)
  497.   ** 11 29 99 99 00 National Day (Burma)
  498. ! ** 11 30 99 99 00 Independence Day (Barbados, Yemen Deomcratic Republic)
  499.   ** 11 30 99 99 00 National Day (Benin)
  500.   ** 11 30 99 99 00 National Heroes Day (Philippines)
  501.   ** 12 01 99 99 00 Anniversary of Restoration of Independence (Portugal)
  502.  
  503. --- 466,472 -----
  504.   ** 11 29 99 99 00 Goodwill Day (Liberia)
  505.   ** 11 29 99 99 00 Liberation Day (Albania)
  506.   ** 11 29 99 99 00 National Day (Burma)
  507. ! ** 11 30 99 99 00 Independence Day (Barbados, Yemen Democratic Republic)
  508.   ** 11 30 99 99 00 National Day (Benin)
  509.   ** 11 30 99 99 00 National Heroes Day (Philippines)
  510.   ** 12 01 99 99 00 Anniversary of Restoration of Independence (Portugal)
  511.