home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / sun / volume1 / tooltool2.1c / patch01 / patch
Encoding:
Text File  |  1989-07-12  |  6.7 KB  |  225 lines

  1. *** Makefile.orig    Thu Jun 29 07:43:38 1989
  2. --- Makefile    Thu Jun  1 10:25:31 1989
  3. ***************
  4. *** 42,48 ****
  5. --- 42,50 ----
  6.   patch: Makefile *.man *.[chy]
  7.       rm -f patch temp
  8.       -for i in Makefile *.man *.[chy] ; do \
  9. +        cp orig/$$i $${i}.orig ; \
  10.          diff -c $${i}.orig $$i >>temp ; \
  11. +        rm $${i}.orig ; \
  12.       done
  13.       sed '/^No differences encountered/d' <temp >patch
  14.       rm temp
  15. ***************
  16. *** 49,55 ****
  17.   
  18.   newver:
  19.       for i in Makefile *.[chy] ; do \
  20. !        cp $$i $${i}.orig ; \
  21.       done
  22.   
  23.   clean:
  24. --- 51,57 ----
  25.   
  26.   newver:
  27.       for i in Makefile *.[chy] ; do \
  28. !        cp $$i orig/$$i ; \
  29.       done
  30.   
  31.   clean:
  32. *** events.c.orig    Thu Jun 29 07:43:43 1989
  33. --- events.c    Thu Jun 29 07:32:25 1989
  34. ***************
  35. *** 250,256 ****
  36.          }
  37.       if (tt_mouse[button][shift].defined == MOUSE_UNDEFINED)
  38.          return(notify_next_event_func(tty, event, arg, type));
  39. !     else if (tt_mouse[button][shift].defined == MOUSE_STRING)
  40.          a = tt_mouse[button][shift].action;
  41.       else if (tt_mouse[button][shift].defined == MOUSE_MENU) {
  42.          a = (a_ptr) menu_show(tt_mouse[button][shift].menu, tty, event, 0);
  43. --- 250,256 ----
  44.          }
  45.       if (tt_mouse[button][shift].defined == MOUSE_UNDEFINED)
  46.          return(notify_next_event_func(tty, event, arg, type));
  47. !     else if (tt_mouse[button][shift].defined == MOUSE_ACTION)
  48.          a = tt_mouse[button][shift].action;
  49.       else if (tt_mouse[button][shift].defined == MOUSE_MENU) {
  50.          a = (a_ptr) menu_show(tt_mouse[button][shift].menu, tty, event, 0);
  51. ***************
  52. *** 260,266 ****
  53. --- 260,268 ----
  54.             }
  55.          }
  56.       tt_mouse_x->value->number = x;
  57. +     tt_mouse_x->value->kind = V_NUMBER;
  58.       tt_mouse_y->value->number = y;
  59. +     tt_mouse_y->value->kind = V_NUMBER;
  60.       tt_do_action(a);
  61.       return(NOTIFY_DONE);
  62.   }
  63. *** lex.c.orig    Thu Jun 29 07:43:51 1989
  64. --- lex.c    Thu Jun 29 07:32:26 1989
  65. ***************
  66. *** 123,130 ****
  67.   PRIVATE    struct    {char    first;
  68.            char    next;
  69.            int    name;
  70. !         } punc[] = {{'&',  '\0', LOGICAL_AND},
  71. !                 {'&',  '&',  AND},
  72.                   {'&',  '=',  ASSIGN_AND},
  73.                   {':',  '\0', COLON},
  74.                   {',',  '\0', COMMA},
  75. --- 123,130 ----
  76.   PRIVATE    struct    {char    first;
  77.            char    next;
  78.            int    name;
  79. !         } punc[] = {{'&',  '\0', AND},
  80. !                 {'&',  '&',  LOGICAL_AND},
  81.                   {'&',  '=',  ASSIGN_AND},
  82.                   {':',  '\0', COLON},
  83.                   {',',  '\0', COMMA},
  84. *** parse.y.orig    Thu Jun 29 07:43:54 1989
  85. --- parse.y    Thu Jun 29 07:32:25 1989
  86. ***************
  87. *** 980,986 ****
  88.           ;
  89.   
  90.   mouse_value    :    shifts action
  91. !                     { tt_mouse[curr_key][$1].defined = MOUSE_STRING;
  92.                         tt_mouse[curr_key][$1].action = $2;
  93.                       }
  94.           |    shifts menu
  95. --- 980,986 ----
  96.           ;
  97.   
  98.   mouse_value    :    shifts action
  99. !                     { tt_mouse[curr_key][$1].defined = MOUSE_ACTION;
  100.                         tt_mouse[curr_key][$1].action = $2;
  101.                       }
  102.           |    shifts menu
  103. *** patchlevel.h.orig    Thu Jun 29 07:43:56 1989
  104. --- patchlevel.h    Thu Jun 29 07:34:56 1989
  105. ***************
  106. *** 36,42 ****
  107.   /*                   or without a .ttyswrc file entry.    */
  108.   /*    25 Apr 89    2.1b    Fixed the handling of meta keys in the    */
  109.   /*                   function key fix.            */
  110. - /*                                    */
  111.   /*     1 Jun 89    2.1c    Clarified wording of copyright notice.    */
  112.   /*                                    */
  113.   /************************************************************************/
  114. --- 36,47 ----
  115.   /*                   or without a .ttyswrc file entry.    */
  116.   /*    25 Apr 89    2.1b    Fixed the handling of meta keys in the    */
  117.   /*                   function key fix.            */
  118.   /*     1 Jun 89    2.1c    Clarified wording of copyright notice.    */
  119. + /*    29 Jun 89    2.1d    Fixed bug in window sizing and screen    */
  120. + /*                   positioning.                */
  121. + /*                Fixed reversal of AND and LOGICAL_AND    */
  122. + /*                   in lex.c.                */
  123. + /*                Fixed bug in setting the value of     */
  124. + /*                   mouse_x and mouse_y.            */
  125.   /*                                    */
  126.   /************************************************************************/
  127. *** symbols.c.orig    Thu Jun 29 07:43:58 1989
  128. --- symbols.c    Thu Jun 29 07:32:23 1989
  129. ***************
  130. *** 121,130 ****
  131.   {    s_ptr    interval;
  132.   
  133.       tt_mouse_x = tt_find_symbol("mouse_x");
  134.       tt_mouse_y = tt_find_symbol("mouse_y");
  135.       interval = tt_find_symbol("interval");
  136.       interval->value->kind |= V_INTERVAL;
  137.       tt_delimiters = tt_find_symbol("delimiters");
  138. !     tt_delimiters->value->kind = 0;
  139.       tt_delimiters->value->str = " \t\n\r\"'";
  140.   }
  141. --- 121,132 ----
  142.   {    s_ptr    interval;
  143.   
  144.       tt_mouse_x = tt_find_symbol("mouse_x");
  145. +     tt_mouse_x->value->kind = V_NUMBER;
  146.       tt_mouse_y = tt_find_symbol("mouse_y");
  147. +     tt_mouse_y->value->kind = V_NUMBER;
  148.       interval = tt_find_symbol("interval");
  149.       interval->value->kind |= V_INTERVAL;
  150.       tt_delimiters = tt_find_symbol("delimiters");
  151. !     tt_delimiters->value->kind = V_NOTHING;
  152.       tt_delimiters->value->str = " \t\n\r\"'";
  153.   }
  154. *** tooltool.h.orig    Thu Jun 29 07:44:00 1989
  155. --- tooltool.h    Thu Jun 29 07:32:24 1989
  156. ***************
  157. *** 107,113 ****
  158.   /* The functions a mouse key can perform
  159.    */
  160.   #define        MOUSE_UNDEFINED        0
  161. ! #define        MOUSE_STRING        1
  162.   #define        MOUSE_MENU        2
  163.   
  164.   /* The ways a choice gadget can be laid out
  165. --- 107,113 ----
  166.   /* The functions a mouse key can perform
  167.    */
  168.   #define        MOUSE_UNDEFINED        0
  169. ! #define        MOUSE_ACTION        1
  170.   #define        MOUSE_MENU        2
  171.   
  172.   /* The ways a choice gadget can be laid out
  173. ***************
  174. *** 359,365 ****
  175.   
  176.   /* A mouse record holds operation to be performed by one mouse
  177.    * button/shift-state combination.  "Defined" is one of 
  178. !  * MOUSE_{UNDEFINED,STRING,MENU}.  If MOUSE_STRING, "value" holds
  179.    * the text to be transmitted.  If MOUSE_MENU, "menu" holds
  180.    * the menu to be displayed.
  181.    */
  182. --- 359,365 ----
  183.   
  184.   /* A mouse record holds operation to be performed by one mouse
  185.    * button/shift-state combination.  "Defined" is one of 
  186. !  * MOUSE_{UNDEFINED,ACTION,MENU}.  If MOUSE_ACTION, "action" holds
  187.    * the text to be transmitted.  If MOUSE_MENU, "menu" holds
  188.    * the menu to be displayed.
  189.    */
  190. *** windows.c.orig    Thu Jun 29 07:44:02 1989
  191. --- windows.c    Mon Jun 12 09:24:44 1989
  192. ***************
  193. *** 306,311 ****
  194. --- 306,318 ----
  195.                    0);
  196.          gadget_columns(tt_base_window);
  197.          }
  198. +     if (tty == NULL || tt_base_window->rows <= 0 || tt_base_window->columns <= 0) {
  199. +        if (tty)
  200. +           window_set(tty, WIN_SHOW, FALSE, 0);
  201. +        if (tt_base_window->panel)
  202. +           window_fit(tt_base_window->panel);
  203. +        }
  204.       window_fit(tt_base_window->frame);
  205.   
  206.       fr = (Rect *) window_get(tt_base_window->frame, FRAME_OPEN_RECT);
  207. ***************
  208. *** 359,372 ****
  209.       if (tty) {
  210.          notify_interpose_event_func(tty, tty_handler, NOTIFY_SAFE);
  211.          tt_ttymenu = (Menu) window_get(tty, WIN_MENU);
  212. -        }
  213. -     if (tty == NULL || tt_base_window->rows <= 0 || tt_base_window->columns <= 0) {
  214. -        if (tty)
  215. -           window_set(tty, WIN_SHOW, FALSE, 0);
  216. -        if (tt_base_window->panel)
  217. -           window_fit(tt_base_window->panel);
  218. -        window_fit(tt_base_window->frame);
  219.          }
  220.   
  221.       fr = (Rect *) window_get(tt_base_window->frame, FRAME_OPEN_RECT);
  222. --- 366,371 ----
  223.