home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.2 / 7.2.184 < prev    next >
Encoding:
Internet Message Format  |  2009-05-20  |  82.9 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.2.184
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.2.184
  11. Problem:    Some more compiler warnings when using gcc -Wextra.
  12. Solution:   Add UNUSED and type casts.  Autoconf check for wchar_t.
  13. Files:        src/auto/configure, src/config.h.in, src/configure.in,
  14.         src/gui_athena.c, src/gui_x11.c, src/gui.c, src/gui_beval.c,
  15.         src/gui_at_sb.c, src/gui_at_fs.c, src/gui_motif.c,
  16.         src/gui_xmdlg.c, src/gui_xmebw.c, src/if_python.c, src/window.c,
  17.         src/workshop.c
  18.  
  19.  
  20. *** ../vim-7.2.183/src/auto/configure    2009-05-21 15:19:59.000000000 +0200
  21. --- src/auto/configure    2009-05-21 16:05:01.000000000 +0200
  22. ***************
  23. *** 7977,7982 ****
  24. --- 7977,8058 ----
  25.   
  26.       LDFLAGS="$ac_save_LDFLAGS"
  27.   
  28. +     { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
  29. + $as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
  30. +     if test "${ac_cv_small_wchar_t+set}" = set; then
  31. +   $as_echo_n "(cached) " >&6
  32. + else
  33. +   if test "$cross_compiling" = yes; then
  34. +   { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
  35. + $as_echo "$as_me: error: failed to compile test program" >&2;}
  36. +    { (exit 1); exit 1; }; }
  37. + else
  38. +   cat >conftest.$ac_ext <<_ACEOF
  39. + /* confdefs.h.  */
  40. + _ACEOF
  41. + cat confdefs.h >>conftest.$ac_ext
  42. + cat >>conftest.$ac_ext <<_ACEOF
  43. + /* end confdefs.h.  */
  44. + #include <X11/Xlib.h>
  45. + #if STDC_HEADERS
  46. + # include <stdlib.h>
  47. + # include <stddef.h>
  48. + #endif
  49. +         main()
  50. +         {
  51. +           if (sizeof(wchar_t) <= 2)
  52. +             exit(1);
  53. +           exit(0);
  54. +         }
  55. + _ACEOF
  56. + rm -f conftest$ac_exeext
  57. + if { (ac_try="$ac_link"
  58. + case "(($ac_try" in
  59. +   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  60. +   *) ac_try_echo=$ac_try;;
  61. + esac
  62. + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  63. + $as_echo "$ac_try_echo") >&5
  64. +   (eval "$ac_link") 2>&5
  65. +   ac_status=$?
  66. +   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  67. +   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  68. +   { (case "(($ac_try" in
  69. +   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  70. +   *) ac_try_echo=$ac_try;;
  71. + esac
  72. + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  73. + $as_echo "$ac_try_echo") >&5
  74. +   (eval "$ac_try") 2>&5
  75. +   ac_status=$?
  76. +   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  77. +   (exit $ac_status); }; }; then
  78. +   ac_cv_small_wchar_t="no"
  79. + else
  80. +   $as_echo "$as_me: program exited with status $ac_status" >&5
  81. + $as_echo "$as_me: failed program was:" >&5
  82. + sed 's/^/| /' conftest.$ac_ext >&5
  83. + ( exit $ac_status )
  84. + ac_cv_small_wchar_t="yes"
  85. + fi
  86. + rm -rf conftest.dSYM
  87. + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  88. + fi
  89. + fi
  90. +     { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
  91. + $as_echo "$ac_cv_small_wchar_t" >&6; }
  92. +     if test "x$ac_cv_small_wchar_t" = "xyes" ; then
  93. +       cat >>confdefs.h <<\_ACEOF
  94. + #define SMALL_WCHAR_T 1
  95. + _ACEOF
  96. +     fi
  97.     fi
  98.   fi
  99.   
  100. ***************
  101. *** 15417,15423 ****
  102.   
  103.   
  104.   
  105.   bcopy_test_prog='
  106.   #include "confdefs.h"
  107.   #ifdef HAVE_STRING_H
  108. --- 15493,15498 ----
  109. *** ../vim-7.2.183/src/config.h.in    2009-05-14 22:19:19.000000000 +0200
  110. --- src/config.h.in    2009-05-21 15:44:24.000000000 +0200
  111. ***************
  112. *** 39,44 ****
  113. --- 39,47 ----
  114.   /* Defined to the size of an int */
  115.   #undef SIZEOF_INT
  116.   
  117. + /* Define when wchar_t is only 2 bytes. */
  118. + #undef SMALL_WCHAR_T
  119.   /*
  120.    * If we cannot trust one of the following from the libraries, we use our
  121.    * own safe but probably slower vim_memmove().
  122. *** ../vim-7.2.183/src/configure.in    2009-05-21 15:19:59.000000000 +0200
  123. --- src/configure.in    2009-05-21 16:04:56.000000000 +0200
  124. ***************
  125. *** 1193,1198 ****
  126. --- 1193,1220 ----
  127.   
  128.       LDFLAGS="$ac_save_LDFLAGS"
  129.   
  130. +     AC_MSG_CHECKING(size of wchar_t is 2 bytes)
  131. +     AC_CACHE_VAL(ac_cv_small_wchar_t,
  132. +     [AC_TRY_RUN([
  133. + #include <X11/Xlib.h>
  134. + #if STDC_HEADERS
  135. + # include <stdlib.h>
  136. + # include <stddef.h>
  137. + #endif
  138. +         main()
  139. +         {
  140. +           if (sizeof(wchar_t) <= 2)
  141. +             exit(1);
  142. +           exit(0);
  143. +         }],
  144. +         ac_cv_small_wchar_t="no",
  145. +         ac_cv_small_wchar_t="yes",
  146. +         AC_MSG_ERROR(failed to compile test program))])
  147. +     AC_MSG_RESULT($ac_cv_small_wchar_t)
  148. +     if test "x$ac_cv_small_wchar_t" = "xyes" ; then
  149. +       AC_DEFINE(SMALL_WCHAR_T)
  150. +     fi
  151.     fi
  152.   fi
  153.   
  154. ***************
  155. *** 2881,2887 ****
  156.   AC_MSG_RESULT($ac_cv_sizeof_int)
  157.   AC_DEFINE_UNQUOTED(SIZEOF_INT, $ac_cv_sizeof_int)
  158.   
  159.   dnl Check for memmove() before bcopy(), makes memmove() be used when both are
  160.   dnl present, fixes problem with incompatibility between Solaris 2.4 and 2.5.
  161.   
  162. --- 2903,2908 ----
  163. *** ../vim-7.2.183/src/gui_athena.c    2008-06-24 23:00:51.000000000 +0200
  164. --- src/gui_athena.c    2009-05-21 16:39:43.000000000 +0200
  165. ***************
  166. *** 86,95 ****
  167.    * Scrollbar callback (XtNjumpProc) for when the scrollbar is dragged with the
  168.    * left or middle mouse button.
  169.    */
  170. - /* ARGSUSED */
  171.       static void
  172.   gui_athena_scroll_cb_jump(w, client_data, call_data)
  173. !     Widget    w;
  174.       XtPointer    client_data, call_data;
  175.   {
  176.       scrollbar_T *sb, *sb_info;
  177. --- 86,94 ----
  178.    * Scrollbar callback (XtNjumpProc) for when the scrollbar is dragged with the
  179.    * left or middle mouse button.
  180.    */
  181.       static void
  182.   gui_athena_scroll_cb_jump(w, client_data, call_data)
  183. !     Widget    w UNUSED;
  184.       XtPointer    client_data, call_data;
  185.   {
  186.       scrollbar_T *sb, *sb_info;
  187. ***************
  188. *** 122,131 ****
  189.    * Scrollbar callback (XtNscrollProc) for paging up or down with the left or
  190.    * right mouse buttons.
  191.    */
  192. - /* ARGSUSED */
  193.       static void
  194.   gui_athena_scroll_cb_scroll(w, client_data, call_data)
  195. !     Widget    w;
  196.       XtPointer    client_data, call_data;
  197.   {
  198.       scrollbar_T *sb, *sb_info;
  199. --- 121,129 ----
  200.    * Scrollbar callback (XtNscrollProc) for paging up or down with the left or
  201.    * right mouse buttons.
  202.    */
  203.       static void
  204.   gui_athena_scroll_cb_scroll(w, client_data, call_data)
  205. !     Widget    w UNUSED;
  206.       XtPointer    client_data, call_data;
  207.   {
  208.       scrollbar_T *sb, *sb_info;
  209. ***************
  210. *** 492,498 ****
  211.       if (menu->icon_builtin || gui_find_bitmap(menu->name, buf, "xpm") == FAIL)
  212.       {
  213.       if (menu->iconidx >= 0 && menu->iconidx
  214. !            < (sizeof(built_in_pixmaps) / sizeof(built_in_pixmaps[0])))
  215.           xpm = built_in_pixmaps[menu->iconidx];
  216.       else
  217.           xpm = tb_blank_xpm;
  218. --- 490,496 ----
  219.       if (menu->icon_builtin || gui_find_bitmap(menu->name, buf, "xpm") == FAIL)
  220.       {
  221.       if (menu->iconidx >= 0 && menu->iconidx
  222. !           < (int)(sizeof(built_in_pixmaps) / sizeof(built_in_pixmaps[0])))
  223.           xpm = built_in_pixmaps[menu->iconidx];
  224.       else
  225.           xpm = tb_blank_xpm;
  226. ***************
  227. *** 763,769 ****
  228.       XtGetValues(XtParent(widget), args, n);
  229.   
  230.       retval = num_children;
  231. !     for (i = 0; i < num_children; ++i)
  232.       {
  233.       Widget    current = children[i];
  234.       vimmenu_T    *menu = NULL;
  235. --- 761,767 ----
  236.       XtGetValues(XtParent(widget), args, n);
  237.   
  238.       retval = num_children;
  239. !     for (i = 0; i < (int)num_children; ++i)
  240.       {
  241.       Widget    current = children[i];
  242.       vimmenu_T    *menu = NULL;
  243. ***************
  244. *** 780,790 ****
  245.       return retval;
  246.   }
  247.   
  248. - /* ARGSUSED */
  249.       void
  250.   gui_mch_add_menu(menu, idx)
  251.       vimmenu_T    *menu;
  252. !     int        idx;
  253.   {
  254.       char_u    *pullright_name;
  255.       Dimension    height, space, border;
  256. --- 778,787 ----
  257.       return retval;
  258.   }
  259.   
  260.       void
  261.   gui_mch_add_menu(menu, idx)
  262.       vimmenu_T    *menu;
  263. !     int        idx UNUSED;
  264.   {
  265.       char_u    *pullright_name;
  266.       Dimension    height, space, border;
  267. ***************
  268. *** 869,875 ****
  269.           XtVaGetValues(parent->submenu_id, XtNchildren, &children,
  270.                             XtNnumChildren, &num_children,
  271.                             NULL);
  272. !         for (i = 0; i < num_children; ++i)
  273.           {
  274.           XtVaSetValues(children[i],
  275.                     XtNrightMargin, puller_width,
  276. --- 866,872 ----
  277.           XtVaGetValues(parent->submenu_id, XtNchildren, &children,
  278.                             XtNnumChildren, &num_children,
  279.                             NULL);
  280. !         for (i = 0; i < (int)num_children; ++i)
  281.           {
  282.           XtVaSetValues(children[i],
  283.                     XtNrightMargin, puller_width,
  284. ***************
  285. *** 913,919 ****
  286.       XtVaGetValues(id, XtNchildren, &children,
  287.                 XtNnumChildren, &num_children,
  288.                 NULL);
  289. !     for (i = 0; i < num_children; ++i)
  290.       {
  291.       if (children[i] == ignore)
  292.           continue;
  293. --- 910,916 ----
  294.       XtVaGetValues(id, XtNchildren, &children,
  295.                 XtNnumChildren, &num_children,
  296.                 NULL);
  297. !     for (i = 0; i < (int)num_children; ++i)
  298.       {
  299.       if (children[i] == ignore)
  300.           continue;
  301. ***************
  302. *** 1175,1185 ****
  303.       return pname;
  304.   }
  305.   
  306. - /* ARGSUSED */
  307.       void
  308.   gui_mch_add_menu_item(menu, idx)
  309.       vimmenu_T    *menu;
  310. !     int        idx;
  311.   {
  312.       vimmenu_T    *parent = menu->parent;
  313.   
  314. --- 1172,1181 ----
  315.       return pname;
  316.   }
  317.   
  318.       void
  319.   gui_mch_add_menu_item(menu, idx)
  320.       vimmenu_T    *menu;
  321. !     int        idx UNUSED;
  322.   {
  323.       vimmenu_T    *parent = menu->parent;
  324.   
  325. ***************
  326. *** 1444,1450 ****
  327.           XtNchildren,        &children,
  328.           XtNnumChildren,        &numChildren,
  329.           NULL);
  330. !     for (i = 0; i < numChildren; i++)
  331.       {
  332.           whgt = 0;
  333.   
  334. --- 1440,1446 ----
  335.           XtNchildren,        &children,
  336.           XtNnumChildren,        &numChildren,
  337.           NULL);
  338. !     for (i = 0; i < (int)numChildren; i++)
  339.       {
  340.           whgt = 0;
  341.   
  342. ***************
  343. *** 1473,1482 ****
  344.   #endif
  345.   
  346.   
  347. - /* ARGSUSED */
  348.       void
  349.   gui_mch_toggle_tearoffs(enable)
  350. !     int        enable;
  351.   {
  352.       /* no tearoff menus */
  353.   }
  354. --- 1469,1477 ----
  355.   #endif
  356.   
  357.   
  358.       void
  359.   gui_mch_toggle_tearoffs(enable)
  360. !     int        enable UNUSED;
  361.   {
  362.       /* no tearoff menus */
  363.   }
  364. ***************
  365. *** 1537,1543 ****
  366.           else
  367.           get_left_margin = True;
  368.   
  369. !         for (i = 0; i < num_children; ++i)
  370.           {
  371.           if (children[i] == menu->id)
  372.               continue;
  373. --- 1532,1538 ----
  374.           else
  375.           get_left_margin = True;
  376.   
  377. !         for (i = 0; i < (int)num_children; ++i)
  378.           {
  379.           if (children[i] == menu->id)
  380.               continue;
  381. ***************
  382. *** 1645,1655 ****
  383.       }
  384.   }
  385.   
  386. - /*ARGSUSED*/
  387.       static void
  388.   gui_athena_menu_timeout(client_data, id)
  389.       XtPointer        client_data;
  390. !     XtIntervalId    *id;
  391.   {
  392.       Widget  w = (Widget)client_data;
  393.       Widget  popup;
  394. --- 1640,1649 ----
  395.       }
  396.   }
  397.   
  398.       static void
  399.   gui_athena_menu_timeout(client_data, id)
  400.       XtPointer        client_data;
  401. !     XtIntervalId    *id UNUSED;
  402.   {
  403.       Widget  w = (Widget)client_data;
  404.       Widget  popup;
  405. ***************
  406. *** 1678,1689 ****
  407.    *
  408.    * This is called when XtPopup() is called.
  409.    */
  410. - /*ARGSUSED*/
  411.       static void
  412.   gui_athena_popup_callback(w, client_data, call_data)
  413.       Widget    w;
  414.       XtPointer    client_data;
  415. !     XtPointer    call_data;
  416.   {
  417.       /* Assumption: XtIsSubclass(XtParent(w),simpleMenuWidgetClass) */
  418.       vimmenu_T    *menu = (vimmenu_T *)client_data;
  419. --- 1672,1682 ----
  420.    *
  421.    * This is called when XtPopup() is called.
  422.    */
  423.       static void
  424.   gui_athena_popup_callback(w, client_data, call_data)
  425.       Widget    w;
  426.       XtPointer    client_data;
  427. !     XtPointer    call_data UNUSED;
  428.   {
  429.       /* Assumption: XtIsSubclass(XtParent(w),simpleMenuWidgetClass) */
  430.       vimmenu_T    *menu = (vimmenu_T *)client_data;
  431. ***************
  432. *** 1711,1717 ****
  433.                NULL);
  434.   }
  435.   
  436. - /* ARGSUSED */
  437.       static void
  438.   gui_athena_popdown_submenus_action(w, event, args, nargs)
  439.       Widget    w;
  440. --- 1704,1709 ----
  441. ***************
  442. *** 1756,1762 ****
  443.       return False;
  444.   }
  445.   
  446. - /* ARGSUSED */
  447.       static void
  448.   gui_athena_delayed_arm_action(w, event, args, nargs)
  449.       Widget    w;
  450. --- 1748,1753 ----
  451. ***************
  452. *** 1837,1843 ****
  453.        * (XtIsSubclass(popup,simpleMenuWidgetClass) == True) */
  454.   }
  455.   
  456. - /* ARGSUSED */
  457.       void
  458.   gui_mch_show_popupmenu(menu)
  459.       vimmenu_T *menu;
  460. --- 1828,1833 ----
  461. ***************
  462. *** 2046,2060 ****
  463.    * Put up a file requester.
  464.    * Returns the selected name in allocated memory, or NULL for Cancel.
  465.    */
  466. - /* ARGSUSED */
  467.       char_u *
  468.   gui_mch_browse(saving, title, dflt, ext, initdir, filter)
  469. !     int        saving;        /* select file to write */
  470. !     char_u    *title;        /* not used (title for the window) */
  471. !     char_u    *dflt;        /* not used (default name) */
  472. !     char_u    *ext;        /* not used (extension added) */
  473.       char_u    *initdir;    /* initial directory, NULL for current dir */
  474. !     char_u    *filter;    /* not used (file name filter) */
  475.   {
  476.       Position x, y;
  477.       char_u    dirbuf[MAXPATHL];
  478. --- 2036,2049 ----
  479.    * Put up a file requester.
  480.    * Returns the selected name in allocated memory, or NULL for Cancel.
  481.    */
  482.       char_u *
  483.   gui_mch_browse(saving, title, dflt, ext, initdir, filter)
  484. !     int        saving UNUSED;    /* select file to write */
  485. !     char_u    *title;        /* title for the window */
  486. !     char_u    *dflt;        /* default name */
  487. !     char_u    *ext UNUSED;    /* extension added */
  488.       char_u    *initdir;    /* initial directory, NULL for current dir */
  489. !     char_u    *filter UNUSED;    /* file name filter */
  490.   {
  491.       Position x, y;
  492.       char_u    dirbuf[MAXPATHL];
  493. ***************
  494. *** 2100,2112 ****
  495.    * Callback function for the textfield.  When CR is hit this works like
  496.    * hitting the "OK" button, ESC like "Cancel".
  497.    */
  498. - /* ARGSUSED */
  499.       static void
  500.   keyhit_callback(w, client_data, event, cont)
  501. !     Widget        w;
  502. !     XtPointer        client_data;
  503.       XEvent        *event;
  504. !     Boolean        *cont;
  505.   {
  506.       char    buf[2];
  507.   
  508. --- 2089,2100 ----
  509.    * Callback function for the textfield.  When CR is hit this works like
  510.    * hitting the "OK" button, ESC like "Cancel".
  511.    */
  512.       static void
  513.   keyhit_callback(w, client_data, event, cont)
  514. !     Widget        w UNUSED;
  515. !     XtPointer        client_data UNUSED;
  516.       XEvent        *event;
  517. !     Boolean        *cont UNUSED;
  518.   {
  519.       char    buf[2];
  520.   
  521. ***************
  522. *** 2119,2130 ****
  523.       }
  524.   }
  525.   
  526. - /* ARGSUSED */
  527.       static void
  528.   butproc(w, client_data, call_data)
  529. !     Widget    w;
  530.       XtPointer    client_data;
  531. !     XtPointer    call_data;
  532.   {
  533.       dialogStatus = (int)(long)client_data + 1;
  534.   }
  535. --- 2107,2117 ----
  536.       }
  537.   }
  538.   
  539.       static void
  540.   butproc(w, client_data, call_data)
  541. !     Widget    w UNUSED;
  542.       XtPointer    client_data;
  543. !     XtPointer    call_data UNUSED;
  544.   {
  545.       dialogStatus = (int)(long)client_data + 1;
  546.   }
  547. ***************
  548. *** 2132,2158 ****
  549.   /*
  550.    * Function called when dialog window closed.
  551.    */
  552. - /*ARGSUSED*/
  553.       static void
  554.   dialog_wm_handler(w, client_data, event, dum)
  555. !     Widget    w;
  556. !     XtPointer    client_data;
  557.       XEvent    *event;
  558. !     Boolean    *dum;
  559.   {
  560.       if (event->type == ClientMessage
  561. !         && ((XClientMessageEvent *)event)->data.l[0] == dialogatom)
  562.       dialogStatus = 0;
  563.   }
  564.   
  565. - /* ARGSUSED */
  566.       int
  567.   gui_mch_dialog(type, title, message, buttons, dfltbutton, textfield)
  568. !     int        type;
  569.       char_u    *title;
  570.       char_u    *message;
  571.       char_u    *buttons;
  572. !     int        dfltbutton;
  573.       char_u    *textfield;
  574.   {
  575.       char_u        *buts;
  576. --- 2119,2143 ----
  577.   /*
  578.    * Function called when dialog window closed.
  579.    */
  580.       static void
  581.   dialog_wm_handler(w, client_data, event, dum)
  582. !     Widget    w UNUSED;
  583. !     XtPointer    client_data UNUSED;
  584.       XEvent    *event;
  585. !     Boolean    *dum UNUSED;
  586.   {
  587.       if (event->type == ClientMessage
  588. !         && (Atom)((XClientMessageEvent *)event)->data.l[0] == dialogatom)
  589.       dialogStatus = 0;
  590.   }
  591.   
  592.       int
  593.   gui_mch_dialog(type, title, message, buttons, dfltbutton, textfield)
  594. !     int        type UNUSED;
  595.       char_u    *title;
  596.       char_u    *message;
  597.       char_u    *buttons;
  598. !     int        dfltbutton UNUSED;
  599.       char_u    *textfield;
  600.   {
  601.       char_u        *buts;
  602. *** ../vim-7.2.183/src/gui_x11.c    2009-02-24 04:11:07.000000000 +0100
  603. --- src/gui_x11.c    2009-05-21 16:47:02.000000000 +0200
  604. ***************
  605. *** 570,591 ****
  606.    * Call-back routines.
  607.    */
  608.   
  609. - /* ARGSUSED */
  610.       static void
  611.   gui_x11_timer_cb(timed_out, interval_id)
  612.       XtPointer        timed_out;
  613. !     XtIntervalId    *interval_id;
  614.   {
  615.       *((int *)timed_out) = TRUE;
  616.   }
  617.   
  618. - /* ARGSUSED */
  619.       static void
  620.   gui_x11_visibility_cb(w, dud, event, dum)
  621. !     Widget    w;
  622. !     XtPointer    dud;
  623.       XEvent    *event;
  624. !     Boolean    *dum;
  625.   {
  626.       if (event->type != VisibilityNotify)
  627.       return;
  628. --- 570,589 ----
  629.    * Call-back routines.
  630.    */
  631.   
  632.       static void
  633.   gui_x11_timer_cb(timed_out, interval_id)
  634.       XtPointer        timed_out;
  635. !     XtIntervalId    *interval_id UNUSED;
  636.   {
  637.       *((int *)timed_out) = TRUE;
  638.   }
  639.   
  640.       static void
  641.   gui_x11_visibility_cb(w, dud, event, dum)
  642. !     Widget    w UNUSED;
  643. !     XtPointer    dud UNUSED;
  644.       XEvent    *event;
  645. !     Boolean    *dum UNUSED;
  646.   {
  647.       if (event->type != VisibilityNotify)
  648.       return;
  649. ***************
  650. *** 603,615 ****
  651.       gui_mch_update();
  652.   }
  653.   
  654. - /* ARGSUSED */
  655.       static void
  656.   gui_x11_expose_cb(w, dud, event, dum)
  657. !     Widget    w;
  658. !     XtPointer    dud;
  659.       XEvent    *event;
  660. !     Boolean    *dum;
  661.   {
  662.       XExposeEvent    *gevent;
  663.       int            new_x;
  664. --- 601,612 ----
  665.       gui_mch_update();
  666.   }
  667.   
  668.       static void
  669.   gui_x11_expose_cb(w, dud, event, dum)
  670. !     Widget    w UNUSED;
  671. !     XtPointer    dud UNUSED;
  672.       XEvent    *event;
  673. !     Boolean    *dum UNUSED;
  674.   {
  675.       XExposeEvent    *gevent;
  676.       int            new_x;
  677. ***************
  678. *** 680,692 ****
  679.   }
  680.   #endif
  681.   
  682. - /* ARGSUSED */
  683.       static void
  684.   gui_x11_resize_window_cb(w, dud, event, dum)
  685. !     Widget    w;
  686. !     XtPointer    dud;
  687.       XEvent    *event;
  688. !     Boolean    *dum;
  689.   {
  690.       static int lastWidth, lastHeight;
  691.   
  692. --- 677,688 ----
  693.   }
  694.   #endif
  695.   
  696.       static void
  697.   gui_x11_resize_window_cb(w, dud, event, dum)
  698. !     Widget    w UNUSED;
  699. !     XtPointer    dud UNUSED;
  700.       XEvent    *event;
  701. !     Boolean    *dum UNUSED;
  702.   {
  703.       static int lastWidth, lastHeight;
  704.   
  705. ***************
  706. *** 727,761 ****
  707.   #endif
  708.   }
  709.   
  710. - /* ARGSUSED */
  711.       static void
  712.   gui_x11_focus_change_cb(w, data, event, dum)
  713. !     Widget    w;
  714. !     XtPointer    data;
  715.       XEvent    *event;
  716. !     Boolean    *dum;
  717.   {
  718.       gui_focus_change(event->type == FocusIn);
  719.   }
  720.   
  721. - /* ARGSUSED */
  722.       static void
  723.   gui_x11_enter_cb(w, data, event, dum)
  724. !     Widget    w;
  725. !     XtPointer    data;
  726. !     XEvent    *event;
  727. !     Boolean    *dum;
  728.   {
  729.       gui_focus_change(TRUE);
  730.   }
  731.   
  732. - /* ARGSUSED */
  733.       static void
  734.   gui_x11_leave_cb(w, data, event, dum)
  735. !     Widget    w;
  736. !     XtPointer    data;
  737. !     XEvent    *event;
  738. !     Boolean    *dum;
  739.   {
  740.       gui_focus_change(FALSE);
  741.   }
  742. --- 723,754 ----
  743.   #endif
  744.   }
  745.   
  746.       static void
  747.   gui_x11_focus_change_cb(w, data, event, dum)
  748. !     Widget    w UNUSED;
  749. !     XtPointer    data UNUSED;
  750.       XEvent    *event;
  751. !     Boolean    *dum UNUSED;
  752.   {
  753.       gui_focus_change(event->type == FocusIn);
  754.   }
  755.   
  756.       static void
  757.   gui_x11_enter_cb(w, data, event, dum)
  758. !     Widget    w UNUSED;
  759. !     XtPointer    data UNUSED;
  760. !     XEvent    *event UNUSED;
  761. !     Boolean    *dum UNUSED;
  762.   {
  763.       gui_focus_change(TRUE);
  764.   }
  765.   
  766.       static void
  767.   gui_x11_leave_cb(w, data, event, dum)
  768. !     Widget    w UNUSED;
  769. !     XtPointer    data UNUSED;
  770. !     XEvent    *event UNUSED;
  771. !     Boolean    *dum UNUSED;
  772.   {
  773.       gui_focus_change(FALSE);
  774.   }
  775. ***************
  776. *** 766,778 ****
  777.   # endif
  778.   #endif
  779.   
  780. - /* ARGSUSED */
  781.       void
  782.   gui_x11_key_hit_cb(w, dud, event, dum)
  783. !     Widget    w;
  784. !     XtPointer    dud;
  785.       XEvent    *event;
  786. !     Boolean    *dum;
  787.   {
  788.       XKeyPressedEvent    *ev_press;
  789.   #ifdef FEAT_XIM
  790. --- 759,770 ----
  791.   # endif
  792.   #endif
  793.   
  794.       void
  795.   gui_x11_key_hit_cb(w, dud, event, dum)
  796. !     Widget    w UNUSED;
  797. !     XtPointer    dud UNUSED;
  798.       XEvent    *event;
  799. !     Boolean    *dum UNUSED;
  800.   {
  801.       XKeyPressedEvent    *ev_press;
  802.   #ifdef FEAT_XIM
  803. ***************
  804. *** 1078,1090 ****
  805.   #endif
  806.   }
  807.   
  808. - /* ARGSUSED */
  809.       static void
  810.   gui_x11_mouse_cb(w, dud, event, dum)
  811. !     Widget    w;
  812. !     XtPointer    dud;
  813.       XEvent    *event;
  814. !     Boolean    *dum;
  815.   {
  816.       static XtIntervalId timer = (XtIntervalId)0;
  817.       static int    timed_out = TRUE;
  818. --- 1070,1081 ----
  819.   #endif
  820.   }
  821.   
  822.       static void
  823.   gui_x11_mouse_cb(w, dud, event, dum)
  824. !     Widget    w UNUSED;
  825. !     XtPointer    dud UNUSED;
  826.       XEvent    *event;
  827. !     Boolean    *dum UNUSED;
  828.   {
  829.       static XtIntervalId timer = (XtIntervalId)0;
  830.       static int    timed_out = TRUE;
  831. ***************
  832. *** 1210,1220 ****
  833.       while (arg < *argc)
  834.       {
  835.       /* Look for argv[arg] in cmdline_options[] table */
  836. !     for (i = 0; i < XtNumber(cmdline_options); i++)
  837.           if (strcmp(argv[arg], cmdline_options[i].option) == 0)
  838.           break;
  839.   
  840. !     if (i < XtNumber(cmdline_options))
  841.       {
  842.           /* Remember finding "-rv" or "-reverse" */
  843.           if (strcmp("-rv", argv[arg]) == 0
  844. --- 1201,1211 ----
  845.       while (arg < *argc)
  846.       {
  847.       /* Look for argv[arg] in cmdline_options[] table */
  848. !     for (i = 0; i < (int)XtNumber(cmdline_options); i++)
  849.           if (strcmp(argv[arg], cmdline_options[i].option) == 0)
  850.           break;
  851.   
  852. !     if (i < (int)XtNumber(cmdline_options))
  853.       {
  854.           /* Remember finding "-rv" or "-reverse" */
  855.           if (strcmp("-rv", argv[arg]) == 0
  856. ***************
  857. *** 1319,1330 ****
  858.   
  859.   static void local_xsmp_handle_requests __ARGS((XtPointer c, int *s, XtInputId *i));
  860.   
  861. - /*ARGSUSED*/
  862.       static void
  863.   local_xsmp_handle_requests(c, s, i)
  864. !     XtPointer    c;
  865. !     int        *s;
  866. !     XtInputId    *i;
  867.   {
  868.       if (xsmp_handle_requests() == FAIL)
  869.       XtRemoveInput(_xsmp_xtinputid);
  870. --- 1310,1320 ----
  871.   
  872.   static void local_xsmp_handle_requests __ARGS((XtPointer c, int *s, XtInputId *i));
  873.   
  874.       static void
  875.   local_xsmp_handle_requests(c, s, i)
  876. !     XtPointer    c UNUSED;
  877. !     int        *s UNUSED;
  878. !     XtInputId    *i UNUSED;
  879.   {
  880.       if (xsmp_handle_requests() == FAIL)
  881.       XtRemoveInput(_xsmp_xtinputid);
  882. ***************
  883. *** 1438,1444 ****
  884.           Columns = w;
  885.       if (mask & HeightValue)
  886.       {
  887. !         if (p_window > h - 1 || !option_was_set((char_u *)"window"))
  888.           p_window = h - 1;
  889.           Rows = h;
  890.       }
  891. --- 1428,1434 ----
  892.           Columns = w;
  893.       if (mask & HeightValue)
  894.       {
  895. !         if (p_window > (long)h - 1 || !option_was_set((char_u *)"window"))
  896.           p_window = h - 1;
  897.           Rows = h;
  898.       }
  899. ***************
  900. *** 1753,1762 ****
  901.   }
  902.   #endif
  903.   
  904. - /*ARGSUSED*/
  905.       void
  906.   gui_mch_exit(rc)
  907. !     int        rc;
  908.   {
  909.   #if 0
  910.       /* Lesstif gives an error message here, and so does Solaris.  The man page
  911. --- 1743,1751 ----
  912.   }
  913.   #endif
  914.   
  915.       void
  916.   gui_mch_exit(rc)
  917. !     int        rc UNUSED;
  918.   {
  919.   #if 0
  920.       /* Lesstif gives an error message here, and so does Solaris.  The man page
  921. ***************
  922. *** 1799,1805 ****
  923.       NULL);
  924.   }
  925.   
  926. - /*ARGSUSED*/
  927.       void
  928.   gui_mch_set_shellsize(width, height, min_width, min_height,
  929.               base_width, base_height, direction)
  930. --- 1788,1793 ----
  931. ***************
  932. *** 1809,1815 ****
  933.       int        min_height;
  934.       int        base_width;
  935.       int        base_height;
  936. !     int        direction;
  937.   {
  938.   #ifdef FEAT_XIM
  939.       height += xim_get_status_area_height(),
  940. --- 1797,1803 ----
  941.       int        min_height;
  942.       int        base_width;
  943.       int        base_height;
  944. !     int        direction UNUSED;
  945.   {
  946.   #ifdef FEAT_XIM
  947.       height += xim_get_status_area_height(),
  948. ***************
  949. *** 1847,1857 ****
  950.    * If "fontset" is TRUE, load the "font_name" as a fontset.
  951.    * Return FAIL if the font could not be loaded, OK otherwise.
  952.    */
  953. - /*ARGSUSED*/
  954.       int
  955.   gui_mch_init_font(font_name, do_fontset)
  956.       char_u    *font_name;
  957. !     int        do_fontset;
  958.   {
  959.       XFontStruct    *font = NULL;
  960.   
  961. --- 1835,1844 ----
  962.    * If "fontset" is TRUE, load the "font_name" as a fontset.
  963.    * Return FAIL if the font could not be loaded, OK otherwise.
  964.    */
  965.       int
  966.   gui_mch_init_font(font_name, do_fontset)
  967.       char_u    *font_name;
  968. !     int        do_fontset UNUSED;
  969.   {
  970.       XFontStruct    *font = NULL;
  971.   
  972. ***************
  973. *** 2029,2038 ****
  974.    * Return the name of font "font" in allocated memory.
  975.    * Don't know how to get the actual name, thus use the provided name.
  976.    */
  977. - /*ARGSUSED*/
  978.       char_u *
  979.   gui_mch_get_fontname(font, name)
  980. !     GuiFont font;
  981.       char_u  *name;
  982.   {
  983.       if (name == NULL)
  984. --- 2016,2024 ----
  985.    * Return the name of font "font" in allocated memory.
  986.    * Don't know how to get the actual name, thus use the provided name.
  987.    */
  988.       char_u *
  989.   gui_mch_get_fontname(font, name)
  990. !     GuiFont font UNUSED;
  991.       char_u  *name;
  992.   {
  993.       if (name == NULL)
  994. ***************
  995. *** 2521,2527 ****
  996.   {
  997.       int            i;
  998.       int            offset;
  999. !     const static int    val[8] = {1, 0, 0, 0, 1, 2, 2, 2 };
  1000.   
  1001.       XSetForeground(gui.dpy, gui.text_gc, prev_sp_color);
  1002.       for (i = FILL_X(col); i < FILL_X(col + cells); ++i)
  1003. --- 2507,2513 ----
  1004.   {
  1005.       int            i;
  1006.       int            offset;
  1007. !     static const int    val[8] = {1, 0, 0, 0, 1, 2, 2, 2 };
  1008.   
  1009.       XSetForeground(gui.dpy, gui.text_gc, prev_sp_color);
  1010.       for (i = FILL_X(col); i < FILL_X(col + cells); ++i)
  1011. ***************
  1012. *** 2569,2576 ****
  1013.   # ifdef FEAT_XFONTSET
  1014.           if (current_fontset != NULL)
  1015.           {
  1016. !         if (c >= 0x10000 && sizeof(wchar_t) <= 2)
  1017.               c = 0xbf;        /* show chars > 0xffff as ? */
  1018.           ((wchar_t *)buf)[wlen] = c;
  1019.           }
  1020.           else
  1021. --- 2555,2564 ----
  1022.   # ifdef FEAT_XFONTSET
  1023.           if (current_fontset != NULL)
  1024.           {
  1025. ! #  ifdef SMALL_WCHAR_T
  1026. !         if (c >= 0x10000)
  1027.               c = 0xbf;        /* show chars > 0xffff as ? */
  1028. + #  endif
  1029.           ((wchar_t *)buf)[wlen] = c;
  1030.           }
  1031.           else
  1032. ***************
  1033. *** 3136,3146 ****
  1034.       /* Nothing to do in X */
  1035.   }
  1036.   
  1037. - /* ARGSUSED */
  1038.       void
  1039.   gui_x11_menu_cb(w, client_data, call_data)
  1040. !     Widget    w;
  1041. !     XtPointer    client_data, call_data;
  1042.   {
  1043.       gui_menu_cb((vimmenu_T *)client_data);
  1044.   }
  1045. --- 3124,3134 ----
  1046.       /* Nothing to do in X */
  1047.   }
  1048.   
  1049.       void
  1050.   gui_x11_menu_cb(w, client_data, call_data)
  1051. !     Widget    w UNUSED;
  1052. !     XtPointer    client_data;
  1053. !     XtPointer    call_data UNUSED;
  1054.   {
  1055.       gui_menu_cb((vimmenu_T *)client_data);
  1056.   }
  1057. ***************
  1058. *** 3153,3165 ****
  1059.    * Function called when window closed.    Works like ":qa".
  1060.    * Should put up a requester!
  1061.    */
  1062. - /*ARGSUSED*/
  1063.       static void
  1064.   gui_x11_wm_protocol_handler(w, client_data, event, dum)
  1065. !     Widget    w;
  1066. !     XtPointer    client_data;
  1067.       XEvent    *event;
  1068. !     Boolean    *dum;
  1069.   {
  1070.       /*
  1071.        * Only deal with Client messages.
  1072. --- 3141,3152 ----
  1073.    * Function called when window closed.    Works like ":qa".
  1074.    * Should put up a requester!
  1075.    */
  1076.       static void
  1077.   gui_x11_wm_protocol_handler(w, client_data, event, dum)
  1078. !     Widget    w UNUSED;
  1079. !     XtPointer    client_data UNUSED;
  1080.       XEvent    *event;
  1081. !     Boolean    *dum UNUSED;
  1082.   {
  1083.       /*
  1084.        * Only deal with Client messages.
  1085. ***************
  1086. *** 3172,3178 ****
  1087.        * exit.  That can be cancelled though, thus Vim shouldn't exit here.
  1088.        * Just sync our swap files.
  1089.        */
  1090. !     if (((XClientMessageEvent *)event)->data.l[0] ==
  1091.                             wm_atoms[SAVE_YOURSELF_IDX])
  1092.       {
  1093.       out_flush();
  1094. --- 3159,3165 ----
  1095.        * exit.  That can be cancelled though, thus Vim shouldn't exit here.
  1096.        * Just sync our swap files.
  1097.        */
  1098. !     if ((Atom)((XClientMessageEvent *)event)->data.l[0] ==
  1099.                             wm_atoms[SAVE_YOURSELF_IDX])
  1100.       {
  1101.       out_flush();
  1102. ***************
  1103. *** 3185,3191 ****
  1104.       return;
  1105.       }
  1106.   
  1107. !     if (((XClientMessageEvent *)event)->data.l[0] !=
  1108.                             wm_atoms[DELETE_WINDOW_IDX])
  1109.       return;
  1110.   
  1111. --- 3172,3178 ----
  1112.       return;
  1113.       }
  1114.   
  1115. !     if ((Atom)((XClientMessageEvent *)event)->data.l[0] !=
  1116.                             wm_atoms[DELETE_WINDOW_IDX])
  1117.       return;
  1118.   
  1119. ***************
  1120. *** 3196,3208 ****
  1121.   /*
  1122.    * Function called when property changed. Check for incoming commands
  1123.    */
  1124. - /*ARGSUSED*/
  1125.       static void
  1126.   gui_x11_send_event_handler(w, client_data, event, dum)
  1127. !     Widget    w;
  1128. !     XtPointer    client_data;
  1129.       XEvent    *event;
  1130. !     Boolean    *dum;
  1131.   {
  1132.       XPropertyEvent *e = (XPropertyEvent *) event;
  1133.   
  1134. --- 3183,3194 ----
  1135.   /*
  1136.    * Function called when property changed. Check for incoming commands
  1137.    */
  1138.       static void
  1139.   gui_x11_send_event_handler(w, client_data, event, dum)
  1140. !     Widget    w UNUSED;
  1141. !     XtPointer    client_data UNUSED;
  1142.       XEvent    *event;
  1143. !     Boolean    *dum UNUSED;
  1144.   {
  1145.       XPropertyEvent *e = (XPropertyEvent *) event;
  1146.   
  1147. ***************
  1148. *** 3277,3287 ****
  1149.       }
  1150.   }
  1151.   
  1152. - /* ARGSUSED */
  1153.       static void
  1154.   gui_x11_blink_cb(timed_out, interval_id)
  1155. !     XtPointer        timed_out;
  1156. !     XtIntervalId    *interval_id;
  1157.   {
  1158.       if (blink_state == BLINK_ON)
  1159.       {
  1160. --- 3263,3272 ----
  1161.       }
  1162.   }
  1163.   
  1164.       static void
  1165.   gui_x11_blink_cb(timed_out, interval_id)
  1166. !     XtPointer        timed_out UNUSED;
  1167. !     XtIntervalId    *interval_id UNUSED;
  1168.   {
  1169.       if (blink_state == BLINK_ON)
  1170.       {
  1171. *** ../vim-7.2.183/src/gui.c    2009-05-17 16:23:20.000000000 +0200
  1172. --- src/gui.c    2009-05-21 16:37:39.000000000 +0200
  1173. ***************
  1174. *** 3119,3125 ****
  1175.    */
  1176.       void
  1177.   gui_init_which_components(oldval)
  1178. !     char_u    *oldval;
  1179.   {
  1180.   #ifdef FEAT_MENU
  1181.       static int    prev_menu_is_active = -1;
  1182. --- 3119,3125 ----
  1183.    */
  1184.       void
  1185.   gui_init_which_components(oldval)
  1186. !     char_u    *oldval UNUSED;
  1187.   {
  1188.   #ifdef FEAT_MENU
  1189.       static int    prev_menu_is_active = -1;
  1190. ***************
  1191. *** 4668,4675 ****
  1192.    */
  1193.       static win_T *
  1194.   xy2win(x, y)
  1195. !     int        x;
  1196. !     int        y;
  1197.   {
  1198.   #ifdef FEAT_WINDOWS
  1199.       int        row;
  1200. --- 4668,4675 ----
  1201.    */
  1202.       static win_T *
  1203.   xy2win(x, y)
  1204. !     int        x UNUSED;
  1205. !     int        y UNUSED;
  1206.   {
  1207.   #ifdef FEAT_WINDOWS
  1208.       int        row;
  1209. ***************
  1210. *** 5121,5128 ****
  1211.    */
  1212.       void
  1213.   gui_handle_drop(x, y, modifiers, fnames, count)
  1214. !     int        x;
  1215. !     int        y;
  1216.       int_u    modifiers;
  1217.       char_u    **fnames;
  1218.       int        count;
  1219. --- 5121,5128 ----
  1220.    */
  1221.       void
  1222.   gui_handle_drop(x, y, modifiers, fnames, count)
  1223. !     int        x UNUSED;
  1224. !     int        y UNUSED;
  1225.       int_u    modifiers;
  1226.       char_u    **fnames;
  1227.       int        count;
  1228. *** ../vim-7.2.183/src/gui_beval.c    2009-05-17 16:23:20.000000000 +0200
  1229. --- src/gui_beval.c    2009-05-21 15:03:02.000000000 +0200
  1230. ***************
  1231. *** 18,24 ****
  1232.       void
  1233.   general_beval_cb(beval, state)
  1234.       BalloonEval *beval;
  1235. !     int state;
  1236.   {
  1237.       win_T    *wp;
  1238.       int        col;
  1239. --- 18,24 ----
  1240.       void
  1241.   general_beval_cb(beval, state)
  1242.       BalloonEval *beval;
  1243. !     int        state UNUSED;
  1244.   {
  1245.       win_T    *wp;
  1246.       int        col;
  1247. ***************
  1248. *** 726,735 ****
  1249.    */
  1250.       static void
  1251.   pointerEventEH(w, client_data, event, unused)
  1252. !     Widget    w;
  1253.       XtPointer    client_data;
  1254.       XEvent    *event;
  1255. !     Boolean    *unused;
  1256.   {
  1257.       BalloonEval *beval = (BalloonEval *)client_data;
  1258.       pointerEvent(beval, event);
  1259. --- 726,735 ----
  1260.    */
  1261.       static void
  1262.   pointerEventEH(w, client_data, event, unused)
  1263. !     Widget    w UNUSED;
  1264.       XtPointer    client_data;
  1265.       XEvent    *event;
  1266. !     Boolean    *unused UNUSED;
  1267.   {
  1268.       BalloonEval *beval = (BalloonEval *)client_data;
  1269.       pointerEvent(beval, event);
  1270. ***************
  1271. *** 877,883 ****
  1272.       static void
  1273.   timerRoutine(dx, id)
  1274.       XtPointer        dx;
  1275. !     XtIntervalId    *id;
  1276.   {
  1277.       BalloonEval *beval = (BalloonEval *)dx;
  1278.   
  1279. --- 877,883 ----
  1280.       static void
  1281.   timerRoutine(dx, id)
  1282.       XtPointer        dx;
  1283. !     XtIntervalId    *id UNUSED;
  1284.   {
  1285.       BalloonEval *beval = (BalloonEval *)dx;
  1286.   
  1287. *** ../vim-7.2.183/src/gui_at_sb.c    2008-11-28 21:26:50.000000000 +0100
  1288. --- src/gui_at_sb.c    2009-05-21 16:38:53.000000000 +0200
  1289. ***************
  1290. *** 198,207 ****
  1291.       /* extension    */  NULL
  1292.     },
  1293.     { /* simple fields */
  1294. !     /* change_sensitive    */  XtInheritChangeSensitive
  1295.     },
  1296.     { /* scrollbar fields */
  1297. !     /* ignore        */    0
  1298.     }
  1299.   };
  1300.   
  1301. --- 198,210 ----
  1302.       /* extension    */  NULL
  1303.     },
  1304.     { /* simple fields */
  1305. !     /* change_sensitive    */  XtInheritChangeSensitive,
  1306. ! #ifndef OLDXAW
  1307. !     /* extension */        NULL
  1308. ! #endif
  1309.     },
  1310.     { /* scrollbar fields */
  1311. !     /* empty        */        0
  1312.     }
  1313.   };
  1314.   
  1315. ***************
  1316. *** 241,247 ****
  1317.   
  1318.       if (bottom <= 0 || bottom <= top)
  1319.       return;
  1320. !     if ((sw = sbw->scrollbar.shadow_width) < 0)
  1321.       sw = 0;
  1322.       margin = MARGIN (sbw);
  1323.       floor = sbw->scrollbar.length - margin + 2;
  1324. --- 244,251 ----
  1325.   
  1326.       if (bottom <= 0 || bottom <= top)
  1327.       return;
  1328. !     sw = sbw->scrollbar.shadow_width;
  1329. !     if (sw < 0)
  1330.       sw = 0;
  1331.       margin = MARGIN (sbw);
  1332.       floor = sbw->scrollbar.length - margin + 2;
  1333. ***************
  1334. *** 516,528 ****
  1335.       }
  1336.   }
  1337.   
  1338. - /* ARGSUSED */
  1339.       static void
  1340.   Initialize(request, new, args, num_args)
  1341. !     Widget    request;    /* what the client asked for */
  1342.       Widget    new;        /* what we're going to give him */
  1343. !     ArgList    args;
  1344. !     Cardinal    *num_args;
  1345.   {
  1346.       ScrollbarWidget sbw = (ScrollbarWidget) new;
  1347.   
  1348. --- 520,531 ----
  1349.       }
  1350.   }
  1351.   
  1352.       static void
  1353.   Initialize(request, new, args, num_args)
  1354. !     Widget    request UNUSED;    /* what the client asked for */
  1355.       Widget    new;        /* what we're going to give him */
  1356. !     ArgList    args UNUSED;
  1357. !     Cardinal    *num_args UNUSED;
  1358.   {
  1359.       ScrollbarWidget sbw = (ScrollbarWidget) new;
  1360.   
  1361. ***************
  1362. *** 556,569 ****
  1363.       (w, valueMask, attributes);
  1364.   }
  1365.   
  1366. - /* ARGSUSED */
  1367.       static Boolean
  1368.   SetValues(current, request, desired, args, num_args)
  1369. !     Widget  current,        /* what I am */
  1370. !         request,        /* what he wants me to be */
  1371. !         desired;        /* what I will become */
  1372. !     ArgList args;
  1373. !     Cardinal *num_args;
  1374.   {
  1375.       ScrollbarWidget    sbw = (ScrollbarWidget) current;
  1376.       ScrollbarWidget    dsbw = (ScrollbarWidget) desired;
  1377. --- 559,571 ----
  1378.       (w, valueMask, attributes);
  1379.   }
  1380.   
  1381.       static Boolean
  1382.   SetValues(current, request, desired, args, num_args)
  1383. !     Widget  current;        /* what I am */
  1384. !     Widget  request UNUSED; /* what he wants me to be */
  1385. !     Widget  desired;        /* what I will become */
  1386. !     ArgList args UNUSED;
  1387. !     Cardinal *num_args UNUSED;
  1388.   {
  1389.       ScrollbarWidget    sbw = (ScrollbarWidget) current;
  1390.       ScrollbarWidget    dsbw = (ScrollbarWidget) desired;
  1391. ***************
  1392. *** 609,615 ****
  1393.   }
  1394.   
  1395.   
  1396. - /* ARGSUSED */
  1397.       static void
  1398.   Redisplay(w, event, region)
  1399.       Widget w;
  1400. --- 611,616 ----
  1401. ***************
  1402. *** 789,799 ****
  1403.       }
  1404.   }
  1405.   
  1406. - /* ARGSUSED */
  1407.       static void
  1408.   RepeatNotify(client_data, idp)
  1409.       XtPointer client_data;
  1410. !     XtIntervalId *idp;
  1411.   {
  1412.       ScrollbarWidget sbw = (ScrollbarWidget) client_data;
  1413.       int            call_data;
  1414. --- 790,799 ----
  1415.       }
  1416.   }
  1417.   
  1418.       static void
  1419.   RepeatNotify(client_data, idp)
  1420.       XtPointer client_data;
  1421. !     XtIntervalId *idp UNUSED;
  1422.   {
  1423.       ScrollbarWidget sbw = (ScrollbarWidget) client_data;
  1424.       int            call_data;
  1425. ***************
  1426. *** 839,884 ****
  1427.       return (num < small) ? small : ((num > big) ? big : num);
  1428.   }
  1429.   
  1430. - /* ARGSUSED */
  1431.       static void
  1432.   ScrollOneLineUp(w, event, params, num_params)
  1433.       Widget    w;
  1434.       XEvent    *event;
  1435. !     String    *params;
  1436. !     Cardinal    *num_params;
  1437.   {
  1438.       ScrollSome(w, event, -ONE_LINE_DATA);
  1439.   }
  1440.   
  1441. - /* ARGSUSED */
  1442.       static void
  1443.   ScrollOneLineDown(w, event, params, num_params)
  1444.       Widget    w;
  1445.       XEvent    *event;
  1446. !     String    *params;
  1447. !     Cardinal    *num_params;
  1448.   {
  1449.       ScrollSome(w, event, ONE_LINE_DATA);
  1450.   }
  1451.   
  1452. - /* ARGSUSED */
  1453.       static void
  1454.   ScrollPageDown(w, event, params, num_params)
  1455.       Widget    w;
  1456.       XEvent    *event;
  1457. !     String    *params;
  1458. !     Cardinal    *num_params;
  1459.   {
  1460.       ScrollSome(w, event, ONE_PAGE_DATA);
  1461.   }
  1462.   
  1463. - /* ARGSUSED */
  1464.       static void
  1465.   ScrollPageUp(w, event, params, num_params)
  1466.       Widget    w;
  1467.       XEvent    *event;
  1468. !     String    *params;
  1469. !     Cardinal    *num_params;
  1470.   {
  1471.       ScrollSome(w, event, -ONE_PAGE_DATA);
  1472.   }
  1473. --- 839,880 ----
  1474.       return (num < small) ? small : ((num > big) ? big : num);
  1475.   }
  1476.   
  1477.       static void
  1478.   ScrollOneLineUp(w, event, params, num_params)
  1479.       Widget    w;
  1480.       XEvent    *event;
  1481. !     String    *params UNUSED;
  1482. !     Cardinal    *num_params UNUSED;
  1483.   {
  1484.       ScrollSome(w, event, -ONE_LINE_DATA);
  1485.   }
  1486.   
  1487.       static void
  1488.   ScrollOneLineDown(w, event, params, num_params)
  1489.       Widget    w;
  1490.       XEvent    *event;
  1491. !     String    *params UNUSED;
  1492. !     Cardinal    *num_params UNUSED;
  1493.   {
  1494.       ScrollSome(w, event, ONE_LINE_DATA);
  1495.   }
  1496.   
  1497.       static void
  1498.   ScrollPageDown(w, event, params, num_params)
  1499.       Widget    w;
  1500.       XEvent    *event;
  1501. !     String    *params UNUSED;
  1502. !     Cardinal    *num_params UNUSED;
  1503.   {
  1504.       ScrollSome(w, event, ONE_PAGE_DATA);
  1505.   }
  1506.   
  1507.       static void
  1508.   ScrollPageUp(w, event, params, num_params)
  1509.       Widget    w;
  1510.       XEvent    *event;
  1511. !     String    *params UNUSED;
  1512. !     Cardinal    *num_params UNUSED;
  1513.   {
  1514.       ScrollSome(w, event, -ONE_PAGE_DATA);
  1515.   }
  1516. ***************
  1517. *** 901,913 ****
  1518.       XtCallCallbacks(w, XtNscrollProc, (XtPointer)call_data);
  1519.   }
  1520.   
  1521. - /* ARGSUSED */
  1522.       static void
  1523.   NotifyScroll(w, event, params, num_params)
  1524.       Widget    w;
  1525.       XEvent    *event;
  1526. !     String    *params;
  1527. !     Cardinal    *num_params;
  1528.   {
  1529.       ScrollbarWidget sbw = (ScrollbarWidget) w;
  1530.       Position        x, y, loc;
  1531. --- 897,908 ----
  1532.       XtCallCallbacks(w, XtNscrollProc, (XtPointer)call_data);
  1533.   }
  1534.   
  1535.       static void
  1536.   NotifyScroll(w, event, params, num_params)
  1537.       Widget    w;
  1538.       XEvent    *event;
  1539. !     String    *params UNUSED;
  1540. !     Cardinal    *num_params UNUSED;
  1541.   {
  1542.       ScrollbarWidget sbw = (ScrollbarWidget) w;
  1543.       Position        x, y, loc;
  1544. ***************
  1545. *** 991,1003 ****
  1546.                          delay, RepeatNotify, (XtPointer)w);
  1547.   }
  1548.   
  1549. - /* ARGSUSED */
  1550.       static void
  1551.   EndScroll(w, event, params, num_params)
  1552.       Widget w;
  1553. !     XEvent *event;    /* unused */
  1554. !     String *params;    /* unused */
  1555. !     Cardinal *num_params;   /* unused */
  1556.   {
  1557.       ScrollbarWidget sbw = (ScrollbarWidget) w;
  1558.   
  1559. --- 986,997 ----
  1560.                          delay, RepeatNotify, (XtPointer)w);
  1561.   }
  1562.   
  1563.       static void
  1564.   EndScroll(w, event, params, num_params)
  1565.       Widget w;
  1566. !     XEvent *event UNUSED;
  1567. !     String *params UNUSED;
  1568. !     Cardinal *num_params UNUSED;
  1569.   {
  1570.       ScrollbarWidget sbw = (ScrollbarWidget) w;
  1571.   
  1572. ***************
  1573. *** 1023,1035 ****
  1574.       return PICKLENGTH(sbw, x / width, y / height);
  1575.   }
  1576.   
  1577. - /* ARGSUSED */
  1578.       static void
  1579.   MoveThumb(w, event, params, num_params)
  1580.       Widget    w;
  1581.       XEvent    *event;
  1582. !     String    *params;    /* unused */
  1583. !     Cardinal    *num_params;    /* unused */
  1584.   {
  1585.       ScrollbarWidget    sbw = (ScrollbarWidget)w;
  1586.       Position        x, y;
  1587. --- 1017,1028 ----
  1588.       return PICKLENGTH(sbw, x / width, y / height);
  1589.   }
  1590.   
  1591.       static void
  1592.   MoveThumb(w, event, params, num_params)
  1593.       Widget    w;
  1594.       XEvent    *event;
  1595. !     String    *params UNUSED;
  1596. !     Cardinal    *num_params UNUSED;
  1597.   {
  1598.       ScrollbarWidget    sbw = (ScrollbarWidget)w;
  1599.       Position        x, y;
  1600. ***************
  1601. *** 1069,1081 ****
  1602.   }
  1603.   
  1604.   
  1605. - /* ARGSUSED */
  1606.       static void
  1607.   NotifyThumb(w, event, params, num_params)
  1608.       Widget    w;
  1609.       XEvent    *event;
  1610. !     String    *params;    /* unused */
  1611. !     Cardinal    *num_params;    /* unused */
  1612.   {
  1613.       ScrollbarWidget sbw = (ScrollbarWidget)w;
  1614.       /* Use a union to avoid a warning for the weird conversion from float to
  1615. --- 1062,1073 ----
  1616.   }
  1617.   
  1618.   
  1619.       static void
  1620.   NotifyThumb(w, event, params, num_params)
  1621.       Widget    w;
  1622.       XEvent    *event;
  1623. !     String    *params UNUSED;
  1624. !     Cardinal    *num_params UNUSED;
  1625.   {
  1626.       ScrollbarWidget sbw = (ScrollbarWidget)w;
  1627.       /* Use a union to avoid a warning for the weird conversion from float to
  1628. ***************
  1629. *** 1096,1102 ****
  1630.       XtCallCallbacks(w, XtNjumpProc, (XtPointer)&sbw->scrollbar.top);
  1631.   }
  1632.   
  1633. - /* ARGSUSED */
  1634.       static void
  1635.   AllocTopShadowGC(w)
  1636.       Widget w;
  1637. --- 1088,1093 ----
  1638. ***************
  1639. *** 1110,1116 ****
  1640.       sbw->scrollbar.top_shadow_GC = XtGetGC(w, valuemask, &myXGCV);
  1641.   }
  1642.   
  1643. - /* ARGSUSED */
  1644.       static void
  1645.   AllocBotShadowGC(w)
  1646.       Widget w;
  1647. --- 1101,1106 ----
  1648. ***************
  1649. *** 1124,1134 ****
  1650.       sbw->scrollbar.bot_shadow_GC = XtGetGC(w, valuemask, &myXGCV);
  1651.   }
  1652.   
  1653. - /* ARGSUSED */
  1654.       static void
  1655.   _Xaw3dDrawShadows(gw, event, region, out)
  1656.       Widget  gw;
  1657. !     XEvent  *event;
  1658.       Region  region;
  1659.       int        out;
  1660.   {
  1661. --- 1114,1123 ----
  1662.       sbw->scrollbar.bot_shadow_GC = XtGetGC(w, valuemask, &myXGCV);
  1663.   }
  1664.   
  1665.       static void
  1666.   _Xaw3dDrawShadows(gw, event, region, out)
  1667.       Widget  gw;
  1668. !     XEvent  *event UNUSED;
  1669.       Region  region;
  1670.       int        out;
  1671.   {
  1672. *** ../vim-7.2.183/src/gui_at_fs.c    2006-05-13 15:51:07.000000000 +0200
  1673. --- src/gui_at_fs.c    2009-05-21 16:38:36.000000000 +0200
  1674. ***************
  1675. *** 829,835 ****
  1676.       text.format = FMT8BIT;
  1677.   
  1678.   #ifdef XtNinternational
  1679. !     if (_XawTextFormat((TextWidget)selFileField) == XawFmtWide)
  1680.       {
  1681.       XawTextReplace(selFileField, (XawTextPosition)0,
  1682.                       (XawTextPosition)WcsLen((wchar_t *)&SFtextBuffer[0]), &text);
  1683. --- 829,835 ----
  1684.       text.format = FMT8BIT;
  1685.   
  1686.   #ifdef XtNinternational
  1687. !     if ((unsigned long)_XawTextFormat((TextWidget)selFileField) == XawFmtWide)
  1688.       {
  1689.       XawTextReplace(selFileField, (XawTextPosition)0,
  1690.                       (XawTextPosition)WcsLen((wchar_t *)&SFtextBuffer[0]), &text);
  1691. ***************
  1692. *** 851,867 ****
  1693.   #endif
  1694.   }
  1695.   
  1696. - /* ARGSUSED */
  1697.       static void
  1698.   SFbuttonPressList(w, n, event)
  1699. !     Widget        w;
  1700. !     int            n;
  1701. !     XButtonPressedEvent    *event;
  1702.   {
  1703.       SFbuttonPressed = 1;
  1704.   }
  1705.   
  1706. - /* ARGSUSED */
  1707.       static void
  1708.   SFbuttonReleaseList(w, n, event)
  1709.       Widget         w;
  1710. --- 851,865 ----
  1711.   #endif
  1712.   }
  1713.   
  1714.       static void
  1715.   SFbuttonPressList(w, n, event)
  1716. !     Widget        w UNUSED;
  1717. !     int            n UNUSED;
  1718. !     XButtonPressedEvent    *event UNUSED;
  1719.   {
  1720.       SFbuttonPressed = 1;
  1721.   }
  1722.   
  1723.       static void
  1724.   SFbuttonReleaseList(w, n, event)
  1725.       Widget         w;
  1726. ***************
  1727. *** 989,999 ****
  1728.       return result;
  1729.   }
  1730.   
  1731. - /* ARGSUSED */
  1732.       static void
  1733.   SFdirModTimer(cl, id)
  1734. !     XtPointer        cl;
  1735. !     XtIntervalId    *id;
  1736.   {
  1737.       static int        n = -1;
  1738.       static int        f = 0;
  1739. --- 987,996 ----
  1740.       return result;
  1741.   }
  1742.   
  1743.       static void
  1744.   SFdirModTimer(cl, id)
  1745. !     XtPointer        cl UNUSED;
  1746. !     XtIntervalId    *id UNUSED;
  1747.   {
  1748.       static int        n = -1;
  1749.       static int        f = 0;
  1750. ***************
  1751. *** 1596,1606 ****
  1752.   
  1753.   static void SFscrollTimer __ARGS((XtPointer p, XtIntervalId *id));
  1754.   
  1755. - /* ARGSUSED */
  1756.       static void
  1757.   SFscrollTimer(p, id)
  1758.       XtPointer        p;
  1759. !     XtIntervalId    *id;
  1760.   {
  1761.       SFDir    *dir;
  1762.       int        save;
  1763. --- 1593,1602 ----
  1764.   
  1765.   static void SFscrollTimer __ARGS((XtPointer p, XtIntervalId *id));
  1766.   
  1767.       static void
  1768.   SFscrollTimer(p, id)
  1769.       XtPointer        p;
  1770. !     XtIntervalId    *id UNUSED;
  1771.   {
  1772.       SFDir    *dir;
  1773.       int        save;
  1774. ***************
  1775. *** 1695,1704 ****
  1776.       }
  1777.   }
  1778.   
  1779. - /* ARGSUSED */
  1780.       static void
  1781.   SFenterList(w, n, event)
  1782. !     Widget        w;
  1783.       int            n;
  1784.       XEnterWindowEvent    *event;
  1785.   {
  1786. --- 1691,1699 ----
  1787.       }
  1788.   }
  1789.   
  1790.       static void
  1791.   SFenterList(w, n, event)
  1792. !     Widget        w UNUSED;
  1793.       int            n;
  1794.       XEnterWindowEvent    *event;
  1795.   {
  1796. ***************
  1797. *** 1719,1730 ****
  1798.       }
  1799.   }
  1800.   
  1801. - /* ARGSUSED */
  1802.       static void
  1803.   SFleaveList(w, n, event)
  1804. !     Widget    w;
  1805.       int        n;
  1806. !     XEvent    *event;
  1807.   {
  1808.       if (SFcurrentInvert[n] != -1)
  1809.       {
  1810. --- 1714,1724 ----
  1811.       }
  1812.   }
  1813.   
  1814.       static void
  1815.   SFleaveList(w, n, event)
  1816. !     Widget    w UNUSED;
  1817.       int        n;
  1818. !     XEvent    *event UNUSED;
  1819.   {
  1820.       if (SFcurrentInvert[n] != -1)
  1821.       {
  1822. ***************
  1823. *** 1733,1742 ****
  1824.       }
  1825.   }
  1826.   
  1827. - /* ARGSUSED */
  1828.       static void
  1829.   SFmotionList(w, n, event)
  1830. !     Widget        w;
  1831.       int            n;
  1832.       XMotionEvent    *event;
  1833.   {
  1834. --- 1727,1735 ----
  1835.       }
  1836.   }
  1837.   
  1838.       static void
  1839.   SFmotionList(w, n, event)
  1840. !     Widget        w UNUSED;
  1841.       int            n;
  1842.       XMotionEvent    *event;
  1843.   {
  1844. ***************
  1845. *** 1754,1760 ****
  1846.       }
  1847.   }
  1848.   
  1849. - /* ARGSUSED */
  1850.       static void
  1851.   SFvFloatSliderMovedCallback(w, n, fnew)
  1852.       Widget    w;
  1853. --- 1747,1752 ----
  1854. ***************
  1855. *** 1767,1776 ****
  1856.       SFvSliderMovedCallback(w, (int)(long)n, nw);
  1857.   }
  1858.   
  1859. - /* ARGSUSED */
  1860.       static void
  1861.   SFvSliderMovedCallback(w, n, nw)
  1862. !     Widget    w;
  1863.       int        n;
  1864.       int        nw;
  1865.   {
  1866. --- 1759,1767 ----
  1867.       SFvSliderMovedCallback(w, (int)(long)n, nw);
  1868.   }
  1869.   
  1870.       static void
  1871.   SFvSliderMovedCallback(w, n, nw)
  1872. !     Widget    w UNUSED;
  1873.       int        n;
  1874.       int        nw;
  1875.   {
  1876. ***************
  1877. *** 1853,1862 ****
  1878.       }
  1879.   }
  1880.   
  1881. - /* ARGSUSED */
  1882.       static void
  1883.   SFvAreaSelectedCallback(w, n, pnew)
  1884. !     Widget        w;
  1885.       XtPointer    n;
  1886.       XtPointer    pnew;
  1887.   {
  1888. --- 1844,1852 ----
  1889.       }
  1890.   }
  1891.   
  1892.       static void
  1893.   SFvAreaSelectedCallback(w, n, pnew)
  1894. !     Widget    w;
  1895.       XtPointer    n;
  1896.       XtPointer    pnew;
  1897.   {
  1898. ***************
  1899. *** 1914,1923 ****
  1900.       SFvSliderMovedCallback(w, (int)(long)n, nw);
  1901.   }
  1902.   
  1903. - /* ARGSUSED */
  1904.       static void
  1905.   SFhSliderMovedCallback(w, n, nw)
  1906. !     Widget    w;
  1907.       XtPointer    n;
  1908.       XtPointer    nw;
  1909.   {
  1910. --- 1904,1912 ----
  1911.       SFvSliderMovedCallback(w, (int)(long)n, nw);
  1912.   }
  1913.   
  1914.       static void
  1915.   SFhSliderMovedCallback(w, n, nw)
  1916. !     Widget    w UNUSED;
  1917.       XtPointer    n;
  1918.       XtPointer    nw;
  1919.   {
  1920. ***************
  1921. *** 1933,1942 ****
  1922.       SFdrawList((int)(long)n, SF_DO_NOT_SCROLL);
  1923.   }
  1924.   
  1925. - /* ARGSUSED */
  1926.       static void
  1927.   SFhAreaSelectedCallback(w, n, pnew)
  1928. !     Widget        w;
  1929.       XtPointer    n;
  1930.       XtPointer    pnew;
  1931.   {
  1932. --- 1922,1930 ----
  1933.       SFdrawList((int)(long)n, SF_DO_NOT_SCROLL);
  1934.   }
  1935.   
  1936.       static void
  1937.   SFhAreaSelectedCallback(w, n, pnew)
  1938. !     Widget    w;
  1939.       XtPointer    n;
  1940.       XtPointer    pnew;
  1941.   {
  1942. ***************
  1943. *** 1994,2004 ****
  1944.       }
  1945.   }
  1946.   
  1947. - /* ARGSUSED */
  1948.       static void
  1949.   SFpathSliderMovedCallback(w, client_data, nw)
  1950. !     Widget        w;
  1951. !     XtPointer    client_data;
  1952.       XtPointer    nw;
  1953.   {
  1954.       SFDir        *dir;
  1955. --- 1982,1991 ----
  1956.       }
  1957.   }
  1958.   
  1959.       static void
  1960.   SFpathSliderMovedCallback(w, client_data, nw)
  1961. !     Widget    w UNUSED;
  1962. !     XtPointer    client_data UNUSED;
  1963.       XtPointer    nw;
  1964.   {
  1965.       SFDir        *dir;
  1966. ***************
  1967. *** 2031,2041 ****
  1968.       XawTextSetInsertionPoint(selFileField, pos);
  1969.   }
  1970.   
  1971. - /* ARGSUSED */
  1972.       static void
  1973.   SFpathAreaSelectedCallback(w, client_data, pnew)
  1974.       Widget    w;
  1975. !     XtPointer    client_data;
  1976.       XtPointer    pnew;
  1977.   {
  1978.       int        nw = (int)(long)pnew;
  1979. --- 2018,2027 ----
  1980.       XawTextSetInsertionPoint(selFileField, pos);
  1981.   }
  1982.   
  1983.       static void
  1984.   SFpathAreaSelectedCallback(w, client_data, pnew)
  1985.       Widget    w;
  1986. !     XtPointer    client_data UNUSED;
  1987.       XtPointer    pnew;
  1988.   {
  1989.       int        nw = (int)(long)pnew;
  1990. ***************
  1991. *** 2206,2218 ****
  1992.   
  1993.   static void SFexposeList __ARGS((Widget w, XtPointer n, XEvent *event, Boolean *cont));
  1994.   
  1995. - /* ARGSUSED */
  1996.       static void
  1997.   SFexposeList(w, n, event, cont)
  1998. !     Widget    w;
  1999.       XtPointer    n;
  2000.       XEvent    *event;
  2001. !     Boolean    *cont;
  2002.   {
  2003.       if ((event->type == NoExpose) || event->xexpose.count)
  2004.       return;
  2005. --- 2192,2203 ----
  2006.   
  2007.   static void SFexposeList __ARGS((Widget w, XtPointer n, XEvent *event, Boolean *cont));
  2008.   
  2009.       static void
  2010.   SFexposeList(w, n, event, cont)
  2011. !     Widget    w UNUSED;
  2012.       XtPointer    n;
  2013.       XEvent    *event;
  2014. !     Boolean    *cont UNUSED;
  2015.   {
  2016.       if ((event->type == NoExpose) || event->xexpose.count)
  2017.       return;
  2018. ***************
  2019. *** 2222,2234 ****
  2020.   
  2021.   static void SFmodVerifyCallback __ARGS((Widget w, XtPointer client_data, XEvent *event, Boolean *cont));
  2022.   
  2023. - /* ARGSUSED */
  2024.       static void
  2025.   SFmodVerifyCallback(w, client_data, event, cont)
  2026. !     Widget        w;
  2027. !     XtPointer        client_data;
  2028.       XEvent        *event;
  2029. !     Boolean        *cont;
  2030.   {
  2031.       char    buf[2];
  2032.   
  2033. --- 2207,2218 ----
  2034.   
  2035.   static void SFmodVerifyCallback __ARGS((Widget w, XtPointer client_data, XEvent *event, Boolean *cont));
  2036.   
  2037.       static void
  2038.   SFmodVerifyCallback(w, client_data, event, cont)
  2039. !     Widget        w UNUSED;
  2040. !     XtPointer        client_data UNUSED;
  2041.       XEvent        *event;
  2042. !     Boolean        *cont UNUSED;
  2043.   {
  2044.       char    buf[2];
  2045.   
  2046. ***************
  2047. *** 2241,2251 ****
  2048.   
  2049.   static void SFokCallback __ARGS((Widget w, XtPointer cl, XtPointer cd));
  2050.   
  2051. - /* ARGSUSED */
  2052.       static void
  2053.   SFokCallback(w, cl, cd)
  2054. !     Widget    w;
  2055. !     XtPointer    cl, cd;
  2056.   {
  2057.       SFstatus = SEL_FILE_OK;
  2058.   }
  2059. --- 2225,2235 ----
  2060.   
  2061.   static void SFokCallback __ARGS((Widget w, XtPointer cl, XtPointer cd));
  2062.   
  2063.       static void
  2064.   SFokCallback(w, cl, cd)
  2065. !     Widget    w UNUSED;
  2066. !     XtPointer    cl UNUSED;
  2067. !     XtPointer    cd UNUSED;
  2068.   {
  2069.       SFstatus = SEL_FILE_OK;
  2070.   }
  2071. ***************
  2072. *** 2258,2268 ****
  2073.   
  2074.   static void SFcancelCallback __ARGS((Widget w, XtPointer cl, XtPointer cd));
  2075.   
  2076. - /* ARGSUSED */
  2077.       static void
  2078.   SFcancelCallback(w, cl, cd)
  2079. !     Widget    w;
  2080. !     XtPointer    cl, cd;
  2081.   {
  2082.       SFstatus = SEL_FILE_CANCEL;
  2083.   }
  2084. --- 2242,2252 ----
  2085.   
  2086.   static void SFcancelCallback __ARGS((Widget w, XtPointer cl, XtPointer cd));
  2087.   
  2088.       static void
  2089.   SFcancelCallback(w, cl, cd)
  2090. !     Widget    w UNUSED;
  2091. !     XtPointer    cl UNUSED;
  2092. !     XtPointer    cd UNUSED;
  2093.   {
  2094.       SFstatus = SEL_FILE_CANCEL;
  2095.   }
  2096. ***************
  2097. *** 2275,2290 ****
  2098.   
  2099.   static void SFdismissAction __ARGS((Widget w, XEvent *event, String *params, Cardinal *num_params));
  2100.   
  2101. - /* ARGSUSED */
  2102.       static void
  2103.   SFdismissAction(w, event, params, num_params)
  2104. !     Widget    w;
  2105. !     XEvent *event;
  2106. !     String *params;
  2107. !     Cardinal *num_params;
  2108.   {
  2109. !     if (event->type == ClientMessage &&
  2110. !         event->xclient.data.l[0] != SFwmDeleteWindow)
  2111.       return;
  2112.   
  2113.       SFstatus = SEL_FILE_CANCEL;
  2114. --- 2259,2273 ----
  2115.   
  2116.   static void SFdismissAction __ARGS((Widget w, XEvent *event, String *params, Cardinal *num_params));
  2117.   
  2118.       static void
  2119.   SFdismissAction(w, event, params, num_params)
  2120. !     Widget    w UNUSED;
  2121. !     XEvent    *event;
  2122. !     String    *params UNUSED;
  2123. !     Cardinal    *num_params UNUSED;
  2124.   {
  2125. !     if (event->type == ClientMessage
  2126. !         && (Atom)event->xclient.data.l[0] != SFwmDeleteWindow)
  2127.       return;
  2128.   
  2129.       SFstatus = SEL_FILE_CANCEL;
  2130. ***************
  2131. *** 2703,2709 ****
  2132.   SFtextChanged()
  2133.   {
  2134.   #if defined(FEAT_XFONTSET) && defined(XtNinternational)
  2135. !     if (_XawTextFormat((TextWidget)selFileField) == XawFmtWide)
  2136.       {
  2137.       wchar_t *wcbuf=(wchar_t *)SFtextBuffer;
  2138.   
  2139. --- 2686,2692 ----
  2140.   SFtextChanged()
  2141.   {
  2142.   #if defined(FEAT_XFONTSET) && defined(XtNinternational)
  2143. !     if ((unsigned long)_XawTextFormat((TextWidget)selFileField) == XawFmtWide)
  2144.       {
  2145.       wchar_t *wcbuf=(wchar_t *)SFtextBuffer;
  2146.   
  2147. ***************
  2148. *** 2749,2755 ****
  2149.   #if defined(FEAT_XFONTSET) && defined(XtNinternational)
  2150.       char *buf;
  2151.   
  2152. !     if (_XawTextFormat((TextWidget)selFileField) == XawFmtWide)
  2153.       {
  2154.       wchar_t *wcbuf;
  2155.       int mbslength;
  2156. --- 2732,2738 ----
  2157.   #if defined(FEAT_XFONTSET) && defined(XtNinternational)
  2158.       char *buf;
  2159.   
  2160. !     if ((unsigned long)_XawTextFormat((TextWidget)selFileField) == XawFmtWide)
  2161.       {
  2162.       wchar_t *wcbuf;
  2163.       int mbslength;
  2164. *** ../vim-7.2.183/src/gui_motif.c    2008-06-20 11:39:30.000000000 +0200
  2165. --- src/gui_motif.c    2009-05-21 17:15:05.000000000 +0200
  2166. ***************
  2167. *** 117,126 ****
  2168.    * Call-back routines.
  2169.    */
  2170.   
  2171. - /* ARGSUSED */
  2172.       static void
  2173.   scroll_cb(w, client_data, call_data)
  2174. !     Widget    w;
  2175.       XtPointer    client_data, call_data;
  2176.   {
  2177.       scrollbar_T *sb;
  2178. --- 117,125 ----
  2179.    * Call-back routines.
  2180.    */
  2181.   
  2182.       static void
  2183.   scroll_cb(w, client_data, call_data)
  2184. !     Widget    w UNUSED;
  2185.       XtPointer    client_data, call_data;
  2186.   {
  2187.       scrollbar_T *sb;
  2188. ***************
  2189. *** 136,146 ****
  2190.   }
  2191.   
  2192.   #ifdef FEAT_GUI_TABLINE
  2193. - /*ARGSUSED*/
  2194.       static void
  2195.   tabline_cb(w, client_data, call_data)
  2196. !     Widget    w;
  2197. !     XtPointer    client_data, call_data;
  2198.   {
  2199.       XmNotebookCallbackStruct *nptr;
  2200.   
  2201. --- 135,145 ----
  2202.   }
  2203.   
  2204.   #ifdef FEAT_GUI_TABLINE
  2205.       static void
  2206.   tabline_cb(w, client_data, call_data)
  2207. !     Widget    w UNUSED;
  2208. !     XtPointer    client_data UNUSED;
  2209. !     XtPointer    call_data;
  2210.   {
  2211.       XmNotebookCallbackStruct *nptr;
  2212.   
  2213. ***************
  2214. *** 149,159 ****
  2215.       send_tabline_event(nptr->page_number);
  2216.   }
  2217.   
  2218. - /*ARGSUSED*/
  2219.       static void
  2220.   tabline_button_cb(w, client_data, call_data)
  2221.       Widget    w;
  2222. !     XtPointer    client_data, call_data;
  2223.   {
  2224.       int        cmd, tab_idx;
  2225.   
  2226. --- 148,158 ----
  2227.       send_tabline_event(nptr->page_number);
  2228.   }
  2229.   
  2230.       static void
  2231.   tabline_button_cb(w, client_data, call_data)
  2232.       Widget    w;
  2233. !     XtPointer    client_data UNUSED;
  2234. !     XtPointer    call_data UNUSED;
  2235.   {
  2236.       int        cmd, tab_idx;
  2237.   
  2238. ***************
  2239. *** 166,176 ****
  2240.   /*
  2241.    * Tabline single mouse click timeout handler
  2242.    */
  2243. - /*ARGSUSED*/
  2244.       static void
  2245.   motif_tabline_timer_cb (timed_out, interval_id)
  2246.       XtPointer        timed_out;
  2247. !     XtIntervalId    *interval_id;
  2248.   {
  2249.       *((int *)timed_out) = TRUE;
  2250.   }
  2251. --- 165,174 ----
  2252.   /*
  2253.    * Tabline single mouse click timeout handler
  2254.    */
  2255.       static void
  2256.   motif_tabline_timer_cb (timed_out, interval_id)
  2257.       XtPointer        timed_out;
  2258. !     XtIntervalId    *interval_id UNUSED;
  2259.   {
  2260.       *((int *)timed_out) = TRUE;
  2261.   }
  2262. ***************
  2263. *** 203,215 ****
  2264.       return FALSE;
  2265.   }
  2266.   
  2267. - /*ARGSUSED*/
  2268.       static void
  2269.   tabline_menu_cb(w, closure, e, continue_dispatch)
  2270.       Widget    w;
  2271. !     XtPointer    closure;
  2272.       XEvent    *e;
  2273. !     Boolean    *continue_dispatch;
  2274.   {
  2275.       Widget            tab_w;
  2276.       XButtonPressedEvent        *event;
  2277. --- 201,212 ----
  2278.       return FALSE;
  2279.   }
  2280.   
  2281.       static void
  2282.   tabline_menu_cb(w, closure, e, continue_dispatch)
  2283.       Widget    w;
  2284. !     XtPointer    closure UNUSED;
  2285.       XEvent    *e;
  2286. !     Boolean    *continue_dispatch UNUSED;
  2287.   {
  2288.       Widget            tab_w;
  2289.       XButtonPressedEvent        *event;
  2290. ***************
  2291. *** 277,287 ****
  2292.       XtManageChild(tabLine_menu);
  2293.   }
  2294.   
  2295. - /*ARGSUSED*/
  2296.       static void
  2297.   tabline_balloon_cb(beval, state)
  2298.       BalloonEval    *beval;
  2299. !     int        state;
  2300.   {
  2301.       int        nr;
  2302.       tabpage_T    *tp;
  2303. --- 274,283 ----
  2304.       XtManageChild(tabLine_menu);
  2305.   }
  2306.   
  2307.       static void
  2308.   tabline_balloon_cb(beval, state)
  2309.       BalloonEval    *beval;
  2310. !     int        state UNUSED;
  2311.   {
  2312.       int        nr;
  2313.       tabpage_T    *tp;
  2314. ***************
  2315. *** 642,654 ****
  2316.   #endif
  2317.   }
  2318.   
  2319. - /*ARGSUSED*/
  2320.       void
  2321.   gui_mch_set_text_area_pos(x, y, w, h)
  2322. !     int        x;
  2323. !     int        y;
  2324. !     int        w;
  2325. !     int        h;
  2326.   {
  2327.   #ifdef FEAT_TOOLBAR
  2328.       /* Give keyboard focus to the textArea instead of the toolbar. */
  2329. --- 638,649 ----
  2330.   #endif
  2331.   }
  2332.   
  2333.       void
  2334.   gui_mch_set_text_area_pos(x, y, w, h)
  2335. !     int        x UNUSED;
  2336. !     int        y UNUSED;
  2337. !     int        w UNUSED;
  2338. !     int        h UNUSED;
  2339.   {
  2340.   #ifdef FEAT_TOOLBAR
  2341.       /* Give keyboard focus to the textArea instead of the toolbar. */
  2342. ***************
  2343. *** 1261,1267 ****
  2344.       if (menu->icon_builtin || gui_find_bitmap(menu->name, buf, "xpm") == FAIL)
  2345.       {
  2346.       if (menu->iconidx >= 0 && menu->iconidx
  2347. !            < (sizeof(built_in_pixmaps) / sizeof(built_in_pixmaps[0])))
  2348.           xpm = built_in_pixmaps[menu->iconidx];
  2349.       else
  2350.           xpm = tb_blank_xpm;
  2351. --- 1256,1262 ----
  2352.       if (menu->icon_builtin || gui_find_bitmap(menu->name, buf, "xpm") == FAIL)
  2353.       {
  2354.       if (menu->iconidx >= 0 && menu->iconidx
  2355. !            < (int)(sizeof(built_in_pixmaps) / sizeof(built_in_pixmaps[0])))
  2356.           xpm = built_in_pixmaps[menu->iconidx];
  2357.       else
  2358.           xpm = tb_blank_xpm;
  2359. ***************
  2360. *** 1716,1725 ****
  2361.       }
  2362.   }
  2363.   
  2364. - /* ARGSUSED */
  2365.       void
  2366.   gui_mch_show_popupmenu(menu)
  2367. !     vimmenu_T *menu;
  2368.   {
  2369.   #ifdef MOTIF_POPUP
  2370.       XmMenuPosition(menu->submenu_id, gui_x11_get_last_mouse_event());
  2371. --- 1711,1719 ----
  2372.       }
  2373.   }
  2374.   
  2375.       void
  2376.   gui_mch_show_popupmenu(menu)
  2377. !     vimmenu_T *menu UNUSED;
  2378.   {
  2379.   #ifdef MOTIF_POPUP
  2380.       XmMenuPosition(menu->submenu_id, gui_x11_get_last_mouse_event());
  2381. ***************
  2382. *** 2046,2054 ****
  2383.   /*
  2384.    * Callback routine for dialog mnemonic processing.
  2385.    */
  2386. - /*ARGSUSED*/
  2387.       static void
  2388. ! mnemonic_event(Widget w, XtPointer call_data, XKeyEvent *event)
  2389.   {
  2390.       do_mnemonic(w, event->keycode);
  2391.   }
  2392. --- 2040,2047 ----
  2393.   /*
  2394.    * Callback routine for dialog mnemonic processing.
  2395.    */
  2396.       static void
  2397. ! mnemonic_event(Widget w, XtPointer call_data UNUSED, XKeyEvent *event)
  2398.   {
  2399.       do_mnemonic(w, event->keycode);
  2400.   }
  2401. ***************
  2402. *** 2287,2299 ****
  2403.    * Put up a file requester.
  2404.    * Returns the selected name in allocated memory, or NULL for Cancel.
  2405.    */
  2406. - /* ARGSUSED */
  2407.       char_u *
  2408.   gui_mch_browse(saving, title, dflt, ext, initdir, filter)
  2409. !     int        saving;        /* select file to write */
  2410.       char_u    *title;        /* title for the window */
  2411.       char_u    *dflt;        /* default name */
  2412. !     char_u    *ext;        /* not used (extension added) */
  2413.       char_u    *initdir;    /* initial directory, NULL for current dir */
  2414.       char_u    *filter;    /* file name filter */
  2415.   {
  2416. --- 2280,2291 ----
  2417.    * Put up a file requester.
  2418.    * Returns the selected name in allocated memory, or NULL for Cancel.
  2419.    */
  2420.       char_u *
  2421.   gui_mch_browse(saving, title, dflt, ext, initdir, filter)
  2422. !     int        saving UNUSED;    /* select file to write */
  2423.       char_u    *title;        /* title for the window */
  2424.       char_u    *dflt;        /* default name */
  2425. !     char_u    *ext UNUSED;    /* not used (extension added) */
  2426.       char_u    *initdir;    /* initial directory, NULL for current dir */
  2427.       char_u    *filter;    /* file name filter */
  2428.   {
  2429. ***************
  2430. *** 2413,2424 ****
  2431.   /*
  2432.    * Process callback from Dialog cancel actions.
  2433.    */
  2434. - /* ARGSUSED */
  2435.       static void
  2436.   DialogCancelCB(w, client_data, call_data)
  2437. !     Widget    w;        /*  widget id        */
  2438. !     XtPointer    client_data;    /*  data from application   */
  2439. !     XtPointer    call_data;    /*  data from widget class  */
  2440.   {
  2441.       if (browse_fname != NULL)
  2442.       {
  2443. --- 2405,2415 ----
  2444.   /*
  2445.    * Process callback from Dialog cancel actions.
  2446.    */
  2447.       static void
  2448.   DialogCancelCB(w, client_data, call_data)
  2449. !     Widget    w UNUSED;        /*  widget id        */
  2450. !     XtPointer    client_data UNUSED;    /*  data from application   */
  2451. !     XtPointer    call_data UNUSED;    /*  data from widget class  */
  2452.   {
  2453.       if (browse_fname != NULL)
  2454.       {
  2455. ***************
  2456. *** 2431,2442 ****
  2457.   /*
  2458.    * Process callback from Dialog actions.
  2459.    */
  2460. - /* ARGSUSED */
  2461.       static void
  2462.   DialogAcceptCB(w, client_data, call_data)
  2463. !     Widget    w;        /*  widget id        */
  2464. !     XtPointer    client_data;    /*  data from application   */
  2465. !     XtPointer    call_data;    /*  data from widget class  */
  2466.   {
  2467.       XmFileSelectionBoxCallbackStruct *fcb;
  2468.   
  2469. --- 2422,2432 ----
  2470.   /*
  2471.    * Process callback from Dialog actions.
  2472.    */
  2473.       static void
  2474.   DialogAcceptCB(w, client_data, call_data)
  2475. !     Widget    w UNUSED;        /*  widget id        */
  2476. !     XtPointer    client_data UNUSED;    /*  data from application   */
  2477. !     XtPointer    call_data;        /*  data from widget class  */
  2478.   {
  2479.       XmFileSelectionBoxCallbackStruct *fcb;
  2480.   
  2481. ***************
  2482. *** 2467,2479 ****
  2483.    * Callback function for the textfield.  When CR is hit this works like
  2484.    * hitting the "OK" button, ESC like "Cancel".
  2485.    */
  2486. - /* ARGSUSED */
  2487.       static void
  2488.   keyhit_callback(w, client_data, event, cont)
  2489.       Widget        w;
  2490. !     XtPointer        client_data;
  2491.       XEvent        *event;
  2492. !     Boolean        *cont;
  2493.   {
  2494.       char    buf[2];
  2495.       KeySym    key_sym;
  2496. --- 2457,2468 ----
  2497.    * Callback function for the textfield.  When CR is hit this works like
  2498.    * hitting the "OK" button, ESC like "Cancel".
  2499.    */
  2500.       static void
  2501.   keyhit_callback(w, client_data, event, cont)
  2502.       Widget        w;
  2503. !     XtPointer        client_data UNUSED;
  2504.       XEvent        *event;
  2505. !     Boolean        *cont UNUSED;
  2506.   {
  2507.       char    buf[2];
  2508.       KeySym    key_sym;
  2509. ***************
  2510. *** 2490,2501 ****
  2511.       XmTextFieldClearSelection(w, XtLastTimestampProcessed(gui.dpy));
  2512.   }
  2513.   
  2514. - /* ARGSUSED */
  2515.       static void
  2516.   butproc(w, client_data, call_data)
  2517. !     Widget    w;
  2518.       XtPointer    client_data;
  2519. !     XtPointer    call_data;
  2520.   {
  2521.       dialogStatus = (int)(long)client_data + 1;
  2522.   }
  2523. --- 2479,2489 ----
  2524.       XmTextFieldClearSelection(w, XtLastTimestampProcessed(gui.dpy));
  2525.   }
  2526.   
  2527.       static void
  2528.   butproc(w, client_data, call_data)
  2529. !     Widget    w UNUSED;
  2530.       XtPointer    client_data;
  2531. !     XtPointer    call_data UNUSED;
  2532.   {
  2533.       dialogStatus = (int)(long)client_data + 1;
  2534.   }
  2535. ***************
  2536. *** 2567,2576 ****
  2537.   }
  2538.   #endif
  2539.   
  2540. - /* ARGSUSED */
  2541.       int
  2542.   gui_mch_dialog(type, title, message, button_names, dfltbutton, textfield)
  2543. !     int        type;
  2544.       char_u    *title;
  2545.       char_u    *message;
  2546.       char_u    *button_names;
  2547. --- 2555,2563 ----
  2548.   }
  2549.   #endif
  2550.   
  2551.       int
  2552.   gui_mch_dialog(type, title, message, button_names, dfltbutton, textfield)
  2553. !     int        type UNUSED;
  2554.       char_u    *title;
  2555.       char_u    *message;
  2556.       char_u    *button_names;
  2557. ***************
  2558. *** 3197,3203 ****
  2559.           XmNchildren, &children,
  2560.           XmNnumChildren, &numChildren, NULL);
  2561.       borders += tst + tmh;
  2562. !     for (i = 0; i < numChildren; i++)
  2563.       {
  2564.           whgt = 0;
  2565.           XtVaGetValues(children[i], XmNheight, &whgt, NULL);
  2566. --- 3184,3190 ----
  2567.           XmNchildren, &children,
  2568.           XmNnumChildren, &numChildren, NULL);
  2569.       borders += tst + tmh;
  2570. !     for (i = 0; i < (int)numChildren; i++)
  2571.       {
  2572.           whgt = 0;
  2573.           XtVaGetValues(children[i], XmNheight, &whgt, NULL);
  2574. ***************
  2575. *** 3237,3249 ****
  2576.    * I have to use footer help for backwards compatability.  Hopefully both will
  2577.    * get implemented and the user will have a choice.
  2578.    */
  2579. - /*ARGSUSED*/
  2580.       static void
  2581.   toolbarbutton_enter_cb(w, client_data, event, cont)
  2582. !     Widget    w;
  2583.       XtPointer    client_data;
  2584. !     XEvent    *event;
  2585. !     Boolean    *cont;
  2586.   {
  2587.       vimmenu_T    *menu = (vimmenu_T *) client_data;
  2588.   
  2589. --- 3224,3235 ----
  2590.    * I have to use footer help for backwards compatability.  Hopefully both will
  2591.    * get implemented and the user will have a choice.
  2592.    */
  2593.       static void
  2594.   toolbarbutton_enter_cb(w, client_data, event, cont)
  2595. !     Widget    w UNUSED;
  2596.       XtPointer    client_data;
  2597. !     XEvent    *event UNUSED;
  2598. !     Boolean    *cont UNUSED;
  2599.   {
  2600.       vimmenu_T    *menu = (vimmenu_T *) client_data;
  2601.   
  2602. ***************
  2603. *** 3254,3266 ****
  2604.       }
  2605.   }
  2606.   
  2607. - /*ARGSUSED*/
  2608.       static void
  2609.   toolbarbutton_leave_cb(w, client_data, event, cont)
  2610. !     Widget    w;
  2611. !     XtPointer    client_data;
  2612. !     XEvent    *event;
  2613. !     Boolean    *cont;
  2614.   {
  2615.       gui_mch_set_footer((char_u *) "");
  2616.   }
  2617. --- 3240,3251 ----
  2618.       }
  2619.   }
  2620.   
  2621.       static void
  2622.   toolbarbutton_leave_cb(w, client_data, event, cont)
  2623. !     Widget    w UNUSED;
  2624. !     XtPointer    client_data UNUSED;
  2625. !     XEvent    *event UNUSED;
  2626. !     Boolean    *cont UNUSED;
  2627.   {
  2628.       gui_mch_set_footer((char_u *) "");
  2629.   }
  2630. ***************
  2631. *** 3492,3501 ****
  2632.   /*
  2633.    * Set the fontlist for Widget "id" to use gui.menu_fontset or gui.menu_font.
  2634.    */
  2635. - /*ARGSUSED*/
  2636.       void
  2637.   gui_motif_menu_fontlist(id)
  2638. !     Widget  id;
  2639.   {
  2640.   #ifdef FEAT_MENU
  2641.   #ifdef FONTSET_ALWAYS
  2642. --- 3477,3485 ----
  2643.   /*
  2644.    * Set the fontlist for Widget "id" to use gui.menu_fontset or gui.menu_font.
  2645.    */
  2646.       void
  2647.   gui_motif_menu_fontlist(id)
  2648. !     Widget  id UNUSED;
  2649.   {
  2650.   #ifdef FEAT_MENU
  2651.   #ifdef FONTSET_ALWAYS
  2652. ***************
  2653. *** 3566,3573 ****
  2654.       Widget cancel;
  2655.   } SharedFindReplace;
  2656.   
  2657. ! static SharedFindReplace find_widgets = { NULL };
  2658. ! static SharedFindReplace repl_widgets = { NULL };
  2659.   
  2660.   static void find_replace_destroy_callback __ARGS((Widget w, XtPointer client_data, XtPointer call_data));
  2661.   static void find_replace_dismiss_callback __ARGS((Widget w, XtPointer client_data, XtPointer call_data));
  2662. --- 3550,3557 ----
  2663.       Widget cancel;
  2664.   } SharedFindReplace;
  2665.   
  2666. ! static SharedFindReplace find_widgets = {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL};
  2667. ! static SharedFindReplace repl_widgets = {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL};
  2668.   
  2669.   static void find_replace_destroy_callback __ARGS((Widget w, XtPointer client_data, XtPointer call_data));
  2670.   static void find_replace_dismiss_callback __ARGS((Widget w, XtPointer client_data, XtPointer call_data));
  2671. ***************
  2672. *** 3576,3587 ****
  2673.   static void find_replace_keypress __ARGS((Widget w, SharedFindReplace * frdp, XKeyEvent * event));
  2674.   static void find_replace_dialog_create __ARGS((char_u *entry_text, int do_replace));
  2675.   
  2676. - /*ARGSUSED*/
  2677.       static void
  2678.   find_replace_destroy_callback(w, client_data, call_data)
  2679. !     Widget    w;
  2680.       XtPointer    client_data;
  2681. !     XtPointer    call_data;
  2682.   {
  2683.       SharedFindReplace *cd = (SharedFindReplace *)client_data;
  2684.   
  2685. --- 3560,3570 ----
  2686.   static void find_replace_keypress __ARGS((Widget w, SharedFindReplace * frdp, XKeyEvent * event));
  2687.   static void find_replace_dialog_create __ARGS((char_u *entry_text, int do_replace));
  2688.   
  2689.       static void
  2690.   find_replace_destroy_callback(w, client_data, call_data)
  2691. !     Widget    w UNUSED;
  2692.       XtPointer    client_data;
  2693. !     XtPointer    call_data UNUSED;
  2694.   {
  2695.       SharedFindReplace *cd = (SharedFindReplace *)client_data;
  2696.   
  2697. ***************
  2698. *** 3590,3601 ****
  2699.       cd->dialog = (Widget)0;
  2700.   }
  2701.   
  2702. - /*ARGSUSED*/
  2703.       static void
  2704.   find_replace_dismiss_callback(w, client_data, call_data)
  2705. !     Widget    w;
  2706.       XtPointer    client_data;
  2707. !     XtPointer    call_data;
  2708.   {
  2709.       SharedFindReplace *cd = (SharedFindReplace *)client_data;
  2710.   
  2711. --- 3573,3583 ----
  2712.       cd->dialog = (Widget)0;
  2713.   }
  2714.   
  2715.       static void
  2716.   find_replace_dismiss_callback(w, client_data, call_data)
  2717. !     Widget    w UNUSED;
  2718.       XtPointer    client_data;
  2719. !     XtPointer    call_data UNUSED;
  2720.   {
  2721.       SharedFindReplace *cd = (SharedFindReplace *)client_data;
  2722.   
  2723. ***************
  2724. *** 3603,3624 ****
  2725.       XtUnmanageChild(cd->dialog);
  2726.   }
  2727.   
  2728. - /*ARGSUSED*/
  2729.       static void
  2730.   entry_activate_callback(w, client_data, call_data)
  2731. !     Widget    w;
  2732.       XtPointer    client_data;
  2733. !     XtPointer    call_data;
  2734.   {
  2735.       XmProcessTraversal((Widget)client_data, XmTRAVERSE_CURRENT);
  2736.   }
  2737.   
  2738. - /*ARGSUSED*/
  2739.       static void
  2740.   find_replace_callback(w, client_data, call_data)
  2741. !     Widget    w;
  2742.       XtPointer    client_data;
  2743. !     XtPointer    call_data;
  2744.   {
  2745.       long_u    flags = (long_u)client_data;
  2746.       char    *find_text, *repl_text;
  2747. --- 3585,3604 ----
  2748.       XtUnmanageChild(cd->dialog);
  2749.   }
  2750.   
  2751.       static void
  2752.   entry_activate_callback(w, client_data, call_data)
  2753. !     Widget    w UNUSED;
  2754.       XtPointer    client_data;
  2755. !     XtPointer    call_data UNUSED;
  2756.   {
  2757.       XmProcessTraversal((Widget)client_data, XmTRAVERSE_CURRENT);
  2758.   }
  2759.   
  2760.       static void
  2761.   find_replace_callback(w, client_data, call_data)
  2762. !     Widget    w UNUSED;
  2763.       XtPointer    client_data;
  2764. !     XtPointer    call_data UNUSED;
  2765.   {
  2766.       long_u    flags = (long_u)client_data;
  2767.       char    *find_text, *repl_text;
  2768. ***************
  2769. *** 3668,3677 ****
  2770.       XtFree(repl_text);
  2771.   }
  2772.   
  2773. - /*ARGSUSED*/
  2774.       static void
  2775.   find_replace_keypress(w, frdp, event)
  2776. !     Widget        w;
  2777.       SharedFindReplace    *frdp;
  2778.       XKeyEvent        *event;
  2779.   {
  2780. --- 3648,3656 ----
  2781.       XtFree(repl_text);
  2782.   }
  2783.   
  2784.       static void
  2785.   find_replace_keypress(w, frdp, event)
  2786. !     Widget        w UNUSED;
  2787.       SharedFindReplace    *frdp;
  2788.       XKeyEvent        *event;
  2789.   {
  2790. *** ../vim-7.2.183/src/gui_xmdlg.c    2008-11-28 21:26:50.000000000 +0100
  2791. --- src/gui_xmdlg.c    2009-05-21 17:01:52.000000000 +0200
  2792. ***************
  2793. *** 448,454 ****
  2794.   
  2795.           items[i] = XmStringCreateLocalized(list[ENCODING][i]);
  2796.   
  2797. !         if (i < n_items)
  2798.           {
  2799.           /* recycle old button */
  2800.           XtVaSetValues(children[i],
  2801. --- 448,454 ----
  2802.   
  2803.           items[i] = XmStringCreateLocalized(list[ENCODING][i]);
  2804.   
  2805. !         if (i < (int)n_items)
  2806.           {
  2807.           /* recycle old button */
  2808.           XtVaSetValues(children[i],
  2809. ***************
  2810. *** 481,487 ****
  2811.   
  2812.       /* Destroy all the outstanding menu items.
  2813.        */
  2814. !     for (i = count[ENCODING]; i < n_items; ++i)
  2815.       {
  2816.           XtUnmanageChild(children[i]);
  2817.           XtDestroyWidget(children[i]);
  2818. --- 481,487 ----
  2819.   
  2820.       /* Destroy all the outstanding menu items.
  2821.        */
  2822. !     for (i = count[ENCODING]; i < (int)n_items; ++i)
  2823.       {
  2824.           XtUnmanageChild(children[i]);
  2825.           XtDestroyWidget(children[i]);
  2826. ***************
  2827. *** 544,552 ****
  2828.       }
  2829.   }
  2830.   
  2831. - /*ARGSUSED*/
  2832.       static void
  2833. ! stoggle_callback(Widget w,
  2834.       SharedFontSelData *data,
  2835.       XmToggleButtonCallbackStruct *call_data)
  2836.   {
  2837. --- 544,551 ----
  2838.       }
  2839.   }
  2840.   
  2841.       static void
  2842. ! stoggle_callback(Widget w UNUSED,
  2843.       SharedFontSelData *data,
  2844.       XmToggleButtonCallbackStruct *call_data)
  2845.   {
  2846. ***************
  2847. *** 709,719 ****
  2848.       }
  2849.   }
  2850.   
  2851. - /*ARGSUSED*/
  2852.       static void
  2853.   encoding_callback(Widget w,
  2854.       SharedFontSelData *data,
  2855. !     XtPointer dummy)
  2856.   {
  2857.       XmString str;
  2858.       XmListCallbackStruct fake_data;
  2859. --- 708,717 ----
  2860.       }
  2861.   }
  2862.   
  2863.       static void
  2864.   encoding_callback(Widget w,
  2865.       SharedFontSelData *data,
  2866. !     XtPointer dummy UNUSED)
  2867.   {
  2868.       XmString str;
  2869.       XmListCallbackStruct fake_data;
  2870. ***************
  2871. *** 752,762 ****
  2872.       do_choice(w, data, call_data, SIZE);
  2873.   }
  2874.   
  2875. - /*ARGSUSED*/
  2876.       static void
  2877. ! cancel_callback(Widget w,
  2878.       SharedFontSelData *data,
  2879. !     XmListCallbackStruct *call_data)
  2880.   {
  2881.       if (data->sel[ENCODING])
  2882.       {
  2883. --- 750,759 ----
  2884.       do_choice(w, data, call_data, SIZE);
  2885.   }
  2886.   
  2887.       static void
  2888. ! cancel_callback(Widget w UNUSED,
  2889.       SharedFontSelData *data,
  2890. !     XmListCallbackStruct *call_data UNUSED)
  2891.   {
  2892.       if (data->sel[ENCODING])
  2893.       {
  2894. ***************
  2895. *** 789,799 ****
  2896.       data->exit = True;
  2897.   }
  2898.   
  2899. - /*ARGSUSED*/
  2900.       static void
  2901. ! ok_callback(Widget w,
  2902.       SharedFontSelData *data,
  2903. !     XmPushButtonCallbackStruct *call_data)
  2904.   {
  2905.       char    *pattern;
  2906.       char    **name;
  2907. --- 786,795 ----
  2908.       data->exit = True;
  2909.   }
  2910.   
  2911.       static void
  2912. ! ok_callback(Widget w UNUSED,
  2913.       SharedFontSelData *data,
  2914. !     XmPushButtonCallbackStruct *call_data UNUSED)
  2915.   {
  2916.       char    *pattern;
  2917.       char    **name;
  2918. *** ../vim-7.2.183/src/gui_xmebw.c    2008-11-28 21:26:50.000000000 +0100
  2919. --- src/gui_xmebw.c    2009-05-21 17:06:17.000000000 +0200
  2920. ***************
  2921. *** 235,247 ****
  2922.       return tmp;
  2923.   }
  2924.   
  2925. - /*ARGSUSED*/
  2926.       static int
  2927.   alloc_color(Display    *display,
  2928.       Colormap    colormap,
  2929.       char        *colorname,
  2930.       XColor        *xcolor,
  2931. !     void        *closure)
  2932.   {
  2933.       int status;
  2934.   
  2935. --- 235,246 ----
  2936.       return tmp;
  2937.   }
  2938.   
  2939.       static int
  2940.   alloc_color(Display    *display,
  2941.       Colormap    colormap,
  2942.       char        *colorname,
  2943.       XColor        *xcolor,
  2944. !     void        *closure UNUSED)
  2945.   {
  2946.       int status;
  2947.   
  2948. ***************
  2949. *** 595,603 ****
  2950.                  XtHeight(eb), eb->primitive.highlight_thickness);
  2951.   }
  2952.   
  2953. - /*ARGSUSED*/
  2954.       static void
  2955. ! draw_pixmap(XmEnhancedButtonWidget eb, XEvent *event, Region region)
  2956.   {
  2957.       Pixmap    pix;
  2958.       GC        gc = eb->label.normal_GC;
  2959. --- 594,603 ----
  2960.                  XtHeight(eb), eb->primitive.highlight_thickness);
  2961.   }
  2962.   
  2963.       static void
  2964. ! draw_pixmap(XmEnhancedButtonWidget eb,
  2965. !         XEvent *event UNUSED,
  2966. !         Region region UNUSED)
  2967.   {
  2968.       Pixmap    pix;
  2969.       GC        gc = eb->label.normal_GC;
  2970. ***************
  2971. *** 641,647 ****
  2972.       height = eb->core.height - 2 * y;
  2973.       if (h < height)
  2974.       height = h;
  2975. !     if (depth == eb->core.depth)
  2976.       XCopyArea(XtDisplay(eb), pix, XtWindow(eb), gc, 0, 0,
  2977.           width, height, x, y);
  2978.       else if (depth == 1)
  2979. --- 641,647 ----
  2980.       height = eb->core.height - 2 * y;
  2981.       if (h < height)
  2982.       height = h;
  2983. !     if (depth == (int)eb->core.depth)
  2984.       XCopyArea(XtDisplay(eb), pix, XtWindow(eb), gc, 0, 0,
  2985.           width, height, x, y);
  2986.       else if (depth == 1)
  2987. ***************
  2988. *** 731,739 ****
  2989.       eb->label.normal_GC = tmp_gc;
  2990.   }
  2991.   
  2992. - /*ARGSUSED*/
  2993.       static void
  2994. ! Enter(Widget wid, XEvent *event, String *params, Cardinal *num_params)
  2995.   {
  2996.       XmEnhancedButtonWidget eb = (XmEnhancedButtonWidget) wid;
  2997.       XmPushButtonCallbackStruct call_value;
  2998. --- 731,741 ----
  2999.       eb->label.normal_GC = tmp_gc;
  3000.   }
  3001.   
  3002.       static void
  3003. ! Enter(Widget wid,
  3004. !       XEvent *event,
  3005. !       String *params UNUSED,
  3006. !       Cardinal *num_params UNUSED)
  3007.   {
  3008.       XmEnhancedButtonWidget eb = (XmEnhancedButtonWidget) wid;
  3009.       XmPushButtonCallbackStruct call_value;
  3010. ***************
  3011. *** 818,826 ****
  3012.       }
  3013.   }
  3014.   
  3015. - /*ARGSUSED*/
  3016.       static void
  3017. ! Leave(Widget wid, XEvent *event, String *params, Cardinal *num_params)
  3018.   {
  3019.       XmEnhancedButtonWidget eb = (XmEnhancedButtonWidget)wid;
  3020.       XmPushButtonCallbackStruct call_value;
  3021. --- 820,830 ----
  3022.       }
  3023.   }
  3024.   
  3025.       static void
  3026. ! Leave(Widget wid,
  3027. !       XEvent *event,
  3028. !       String *params UNUSED,
  3029. !       Cardinal *num_params UNUSED)
  3030.   {
  3031.       XmEnhancedButtonWidget eb = (XmEnhancedButtonWidget)wid;
  3032.       XmPushButtonCallbackStruct call_value;
  3033. ***************
  3034. *** 976,984 ****
  3035.       }
  3036.   }
  3037.   
  3038. - /*ARGSUSED*/
  3039.       static void
  3040. ! Initialize(Widget rq, Widget ebw, ArgList args, Cardinal *n)
  3041.   {
  3042.       XmEnhancedButtonWidget  request = (XmEnhancedButtonWidget)rq;
  3043.       XmEnhancedButtonWidget  eb = (XmEnhancedButtonWidget)ebw;
  3044. --- 980,987 ----
  3045.       }
  3046.   }
  3047.   
  3048.       static void
  3049. ! Initialize(Widget rq, Widget ebw, ArgList args UNUSED, Cardinal *n UNUSED)
  3050.   {
  3051.       XmEnhancedButtonWidget  request = (XmEnhancedButtonWidget)rq;
  3052.       XmEnhancedButtonWidget  eb = (XmEnhancedButtonWidget)ebw;
  3053. ***************
  3054. *** 1056,1064 ****
  3055.       free_pixmaps((XmEnhancedButtonWidget)w);
  3056.   }
  3057.   
  3058. - /*ARGSUSED*/
  3059.       static Boolean
  3060. ! SetValues(Widget current, Widget request, Widget new, ArgList args, Cardinal *n)
  3061.   {
  3062.       XmEnhancedButtonWidget  cur = (XmEnhancedButtonWidget) current;
  3063.       XmEnhancedButtonWidget  eb = (XmEnhancedButtonWidget) new;
  3064. --- 1059,1070 ----
  3065.       free_pixmaps((XmEnhancedButtonWidget)w);
  3066.   }
  3067.   
  3068.       static Boolean
  3069. ! SetValues(Widget current,
  3070. !       Widget request UNUSED,
  3071. !       Widget new,
  3072. !       ArgList args UNUSED,
  3073. !       Cardinal *n UNUSED)
  3074.   {
  3075.       XmEnhancedButtonWidget  cur = (XmEnhancedButtonWidget) current;
  3076.       XmEnhancedButtonWidget  eb = (XmEnhancedButtonWidget) new;
  3077. ***************
  3078. *** 1108,1114 ****
  3079.           if ((win_x < 0) || (win_y < 0))
  3080.               return False;
  3081.   
  3082. !         if ((win_x > r_width) || (win_y > r_height))
  3083.               return False;
  3084.           draw_highlight(eb);
  3085.           draw_shadows(eb);
  3086. --- 1114,1120 ----
  3087.           if ((win_x < 0) || (win_y < 0))
  3088.               return False;
  3089.   
  3090. !         if ((win_x > (int)r_width) || (win_y > (int)r_height))
  3091.               return False;
  3092.           draw_highlight(eb);
  3093.           draw_shadows(eb);
  3094. *** ../vim-7.2.183/src/if_python.c    2009-01-13 18:10:21.000000000 +0100
  3095. --- src/if_python.c    2009-05-21 17:27:50.000000000 +0200
  3096. ***************
  3097. *** 1096,1104 ****
  3098.   
  3099.   /* Vim module - Implementation
  3100.    */
  3101. - /*ARGSUSED*/
  3102.       static PyObject *
  3103. ! VimCommand(PyObject *self, PyObject *args)
  3104.   {
  3105.       char *cmd;
  3106.       PyObject *result;
  3107. --- 1096,1103 ----
  3108.   
  3109.   /* Vim module - Implementation
  3110.    */
  3111.       static PyObject *
  3112. ! VimCommand(PyObject *self UNUSED, PyObject *args)
  3113.   {
  3114.       char *cmd;
  3115.       PyObject *result;
  3116. ***************
  3117. *** 1242,1250 ****
  3118.   }
  3119.   #endif
  3120.   
  3121. - /*ARGSUSED*/
  3122.       static PyObject *
  3123. ! VimEval(PyObject *self, PyObject *args)
  3124.   {
  3125.   #ifdef FEAT_EVAL
  3126.       char    *expr;
  3127. --- 1241,1248 ----
  3128.   }
  3129.   #endif
  3130.   
  3131.       static PyObject *
  3132. ! VimEval(PyObject *self UNUSED, PyObject *args)
  3133.   {
  3134.   #ifdef FEAT_EVAL
  3135.       char    *expr;
  3136. ***************
  3137. *** 1894,1902 ****
  3138.   /* Buffer list object - Implementation
  3139.    */
  3140.   
  3141. - /*ARGSUSED*/
  3142.       static PyInt
  3143. ! BufListLength(PyObject *self)
  3144.   {
  3145.       buf_T    *b = firstbuf;
  3146.       PyInt    n = 0;
  3147. --- 1892,1899 ----
  3148.   /* Buffer list object - Implementation
  3149.    */
  3150.   
  3151.       static PyInt
  3152. ! BufListLength(PyObject *self UNUSED)
  3153.   {
  3154.       buf_T    *b = firstbuf;
  3155.       PyInt    n = 0;
  3156. ***************
  3157. *** 1910,1918 ****
  3158.       return n;
  3159.   }
  3160.   
  3161. - /*ARGSUSED*/
  3162.       static PyObject *
  3163. ! BufListItem(PyObject *self, PyInt n)
  3164.   {
  3165.       buf_T *b;
  3166.   
  3167. --- 1907,1914 ----
  3168.       return n;
  3169.   }
  3170.   
  3171.       static PyObject *
  3172. ! BufListItem(PyObject *self UNUSED, PyInt n)
  3173.   {
  3174.       buf_T *b;
  3175.   
  3176. ***************
  3177. *** 2210,2218 ****
  3178.   
  3179.   /* Window list object - Implementation
  3180.    */
  3181. - /*ARGSUSED*/
  3182.       static PyInt
  3183. ! WinListLength(PyObject *self)
  3184.   {
  3185.       win_T    *w = firstwin;
  3186.       PyInt    n = 0;
  3187. --- 2206,2213 ----
  3188.   
  3189.   /* Window list object - Implementation
  3190.    */
  3191.       static PyInt
  3192. ! WinListLength(PyObject *self UNUSED)
  3193.   {
  3194.       win_T    *w = firstwin;
  3195.       PyInt    n = 0;
  3196. ***************
  3197. *** 2226,2234 ****
  3198.       return n;
  3199.   }
  3200.   
  3201. - /*ARGSUSED*/
  3202.       static PyObject *
  3203. ! WinListItem(PyObject *self, PyInt n)
  3204.   {
  3205.       win_T *w;
  3206.   
  3207. --- 2221,2228 ----
  3208.       return n;
  3209.   }
  3210.   
  3211.       static PyObject *
  3212. ! WinListItem(PyObject *self UNUSED, PyInt n)
  3213.   {
  3214.       win_T *w;
  3215.   
  3216. ***************
  3217. *** 2274,2282 ****
  3218.   
  3219.   /* Current items object - Implementation
  3220.    */
  3221. - /*ARGSUSED*/
  3222.       static PyObject *
  3223. ! CurrentGetattr(PyObject *self, char *name)
  3224.   {
  3225.       if (strcmp(name, "buffer") == 0)
  3226.       return (PyObject *)BufferNew(curbuf);
  3227. --- 2268,2275 ----
  3228.   
  3229.   /* Current items object - Implementation
  3230.    */
  3231.       static PyObject *
  3232. ! CurrentGetattr(PyObject *self UNUSED, char *name)
  3233.   {
  3234.       if (strcmp(name, "buffer") == 0)
  3235.       return (PyObject *)BufferNew(curbuf);
  3236. ***************
  3237. *** 2295,2303 ****
  3238.       }
  3239.   }
  3240.   
  3241. - /*ARGSUSED*/
  3242.       static int
  3243. ! CurrentSetattr(PyObject *self, char *name, PyObject *value)
  3244.   {
  3245.       if (strcmp(name, "line") == 0)
  3246.       {
  3247. --- 2288,2295 ----
  3248.       }
  3249.   }
  3250.   
  3251.       static int
  3252. ! CurrentSetattr(PyObject *self UNUSED, char *name, PyObject *value)
  3253.   {
  3254.       if (strcmp(name, "line") == 0)
  3255.       {
  3256. *** ../vim-7.2.183/src/window.c    2009-02-22 02:36:36.000000000 +0100
  3257. --- src/window.c    2009-05-21 15:14:54.000000000 +0200
  3258. ***************
  3259. *** 1163,1174 ****
  3260.    * WSP_NEWLOC may be specified in flags to prevent the location list from
  3261.    * being copied.
  3262.    */
  3263. - /*ARGSUSED*/
  3264.       static void
  3265.   win_init(newp, oldp, flags)
  3266.       win_T    *newp;
  3267.       win_T    *oldp;
  3268. !     int         flags;
  3269.   {
  3270.       int        i;
  3271.   
  3272. --- 1163,1173 ----
  3273.    * WSP_NEWLOC may be specified in flags to prevent the location list from
  3274.    * being copied.
  3275.    */
  3276.       static void
  3277.   win_init(newp, oldp, flags)
  3278.       win_T    *newp;
  3279.       win_T    *oldp;
  3280. !     int         flags UNUSED;
  3281.   {
  3282.       int        i;
  3283.   
  3284. ***************
  3285. *** 1268,1278 ****
  3286.    * Must be called when there is just one window, filling the whole screen
  3287.    * (excluding the command line).
  3288.    */
  3289. - /*ARGSUSED*/
  3290.       int
  3291.   make_windows(count, vertical)
  3292.       int        count;
  3293. !     int        vertical;    /* split windows vertically if TRUE */
  3294.   {
  3295.       int        maxcount;
  3296.       int        todo;
  3297. --- 1267,1276 ----
  3298.    * Must be called when there is just one window, filling the whole screen
  3299.    * (excluding the command line).
  3300.    */
  3301.       int
  3302.   make_windows(count, vertical)
  3303.       int        count;
  3304. !     int        vertical UNUSED;  /* split windows vertically if TRUE */
  3305.   {
  3306.       int        maxcount;
  3307.       int        todo;
  3308. ***************
  3309. *** 2353,2363 ****
  3310.    * Remove a window and its frame from the tree of frames.
  3311.    * Returns a pointer to the window that got the freed up space.
  3312.    */
  3313. - /*ARGSUSED*/
  3314.       static win_T *
  3315.   winframe_remove(win, dirp, tp)
  3316.       win_T    *win;
  3317. !     int        *dirp;        /* set to 'v' or 'h' for direction if 'ea' */
  3318.       tabpage_T    *tp;        /* tab page "win" is in, NULL for current */
  3319.   {
  3320.       frame_T    *frp, *frp2, *frp3;
  3321. --- 2351,2360 ----
  3322.    * Remove a window and its frame from the tree of frames.
  3323.    * Returns a pointer to the window that got the freed up space.
  3324.    */
  3325.       static win_T *
  3326.   winframe_remove(win, dirp, tp)
  3327.       win_T    *win;
  3328. !     int        *dirp UNUSED;    /* set to 'v' or 'h' for direction if 'ea' */
  3329.       tabpage_T    *tp;        /* tab page "win" is in, NULL for current */
  3330.   {
  3331.       frame_T    *frp, *frp2, *frp3;
  3332. ***************
  3333. *** 3500,3509 ****
  3334.    * FAIL.
  3335.    * Careful: When OK is returned need to get a new tab page very very soon!
  3336.    */
  3337. - /*ARGSUSED*/
  3338.       static int
  3339.   leave_tabpage(new_curbuf)
  3340. !     buf_T    *new_curbuf;        /* what is going to be the new curbuf,
  3341.                          NULL if unknown */
  3342.   {
  3343.       tabpage_T    *tp = curtab;
  3344. --- 3497,3505 ----
  3345.    * FAIL.
  3346.    * Careful: When OK is returned need to get a new tab page very very soon!
  3347.    */
  3348.       static int
  3349.   leave_tabpage(new_curbuf)
  3350. !     buf_T    *new_curbuf UNUSED;    /* what is going to be the new curbuf,
  3351.                          NULL if unknown */
  3352.   {
  3353.       tabpage_T    *tp = curtab;
  3354. ***************
  3355. *** 3545,3555 ****
  3356.    * Start using tab page "tp".
  3357.    * Only to be used after leave_tabpage() or freeing the current tab page.
  3358.    */
  3359. - /*ARGSUSED*/
  3360.       static void
  3361.   enter_tabpage(tp, old_curbuf)
  3362.       tabpage_T    *tp;
  3363. !     buf_T    *old_curbuf;
  3364.   {
  3365.       int        old_off = tp->tp_firstwin->w_winrow;
  3366.       win_T    *next_prevwin = tp->tp_prevwin;
  3367. --- 3541,3550 ----
  3368.    * Start using tab page "tp".
  3369.    * Only to be used after leave_tabpage() or freeing the current tab page.
  3370.    */
  3371.       static void
  3372.   enter_tabpage(tp, old_curbuf)
  3373.       tabpage_T    *tp;
  3374. !     buf_T    *old_curbuf UNUSED;
  3375.   {
  3376.       int        old_off = tp->tp_firstwin->w_winrow;
  3377.       win_T    *next_prevwin = tp->tp_prevwin;
  3378. ***************
  3379. *** 4157,4166 ****
  3380.   /*
  3381.    * allocate a window structure and link it in the window list
  3382.    */
  3383. - /*ARGSUSED*/
  3384.       static win_T *
  3385.   win_alloc(after)
  3386. !     win_T    *after;
  3387.   {
  3388.       win_T    *newwin;
  3389.   
  3390. --- 4152,4160 ----
  3391.   /*
  3392.    * allocate a window structure and link it in the window list
  3393.    */
  3394.       static win_T *
  3395.   win_alloc(after)
  3396. !     win_T    *after UNUSED;
  3397.   {
  3398.       win_T    *newwin;
  3399.   
  3400. *** ../vim-7.2.183/src/workshop.c    2008-11-28 11:47:14.000000000 +0100
  3401. --- src/workshop.c    2009-05-21 17:12:55.000000000 +0200
  3402. ***************
  3403. *** 204,215 ****
  3404.    * Function:
  3405.    *    Load a given file into the WorkShop buffer.
  3406.    */
  3407. - /*ARGSUSED*/
  3408.       void
  3409.   workshop_load_file(
  3410.       char    *filename,        /* the file to load */
  3411.       int     line,            /* an optional line number (or 0) */
  3412. !     char    *frameid)        /* used for multi-frame support */
  3413.   {
  3414.   #ifdef WSDEBUG_TRACE
  3415.       if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
  3416. --- 204,214 ----
  3417.    * Function:
  3418.    *    Load a given file into the WorkShop buffer.
  3419.    */
  3420.       void
  3421.   workshop_load_file(
  3422.       char    *filename,        /* the file to load */
  3423.       int     line,            /* an optional line number (or 0) */
  3424. !     char    *frameid UNUSED)    /* used for multi-frame support */
  3425.   {
  3426.   #ifdef WSDEBUG_TRACE
  3427.       if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
  3428. ***************
  3429. *** 263,272 ****
  3430.       load_window(filename, lineno);
  3431.   }
  3432.   
  3433. - /*ARGSUSED*/
  3434.       void
  3435.   workshop_front_file(
  3436. !     char    *filename)
  3437.   {
  3438.   #ifdef WSDEBUG_TRACE
  3439.       if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
  3440. --- 262,270 ----
  3441.       load_window(filename, lineno);
  3442.   }
  3443.   
  3444.       void
  3445.   workshop_front_file(
  3446. !     char    *filename UNUSED)
  3447.   {
  3448.   #ifdef WSDEBUG_TRACE
  3449.       if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
  3450. ***************
  3451. *** 538,546 ****
  3452.    * breakpoints have moved when a program has been recompiled and
  3453.    * reloaded into dbx.
  3454.    */
  3455. - /*ARGSUSED*/
  3456.       void
  3457. ! workshop_moved_marks(char *filename)
  3458.   {
  3459.   #ifdef WSDEBUG_TRACE
  3460.       if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
  3461. --- 536,543 ----
  3462.    * breakpoints have moved when a program has been recompiled and
  3463.    * reloaded into dbx.
  3464.    */
  3465.       void
  3466. ! workshop_moved_marks(char *filename UNUSED)
  3467.   {
  3468.   #ifdef WSDEBUG_TRACE
  3469.       if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
  3470. ***************
  3471. *** 575,585 ****
  3472.       return (int)h;
  3473.   }
  3474.   
  3475. - /*ARGSUSED*/
  3476.       void
  3477.   workshop_footer_message(
  3478. !     char        *message,
  3479. !     int         severity)    /* severity is currently unused */
  3480.   {
  3481.   #ifdef WSDEBUG_TRACE
  3482.       if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
  3483. --- 572,581 ----
  3484.       return (int)h;
  3485.   }
  3486.   
  3487.       void
  3488.   workshop_footer_message(
  3489. !     char    *message,
  3490. !     int    severity UNUSED)    /* severity is currently unused */
  3491.   {
  3492.   #ifdef WSDEBUG_TRACE
  3493.       if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
  3494. ***************
  3495. *** 687,701 ****
  3496.    * command. The globals curMenuName and curMenuPriority contain the name and
  3497.    * priority of the parent menu tree.
  3498.    */
  3499. - /*ARGSUSED*/
  3500.       void
  3501.   workshop_menu_item(
  3502.       char        *label,
  3503.       char        *verb,
  3504. !     char        *accelerator,
  3505.       char        *acceleratorText,
  3506. !     char        *name,
  3507. !     char        *filepos,
  3508.       char        *sensitive)
  3509.   {
  3510.       char         cbuf[BUFSIZ];
  3511. --- 683,696 ----
  3512.    * command. The globals curMenuName and curMenuPriority contain the name and
  3513.    * priority of the parent menu tree.
  3514.    */
  3515.       void
  3516.   workshop_menu_item(
  3517.       char        *label,
  3518.       char        *verb,
  3519. !     char        *accelerator UNUSED,
  3520.       char        *acceleratorText,
  3521. !     char        *name UNUSED,
  3522. !     char        *filepos UNUSED,
  3523.       char        *sensitive)
  3524.   {
  3525.       char         cbuf[BUFSIZ];
  3526. ***************
  3527. *** 810,822 ****
  3528.       workshopInitDone = True;
  3529.   }
  3530.   
  3531. - /*ARGSUSED*/
  3532.       void
  3533.   workshop_toolbar_button(
  3534.       char    *label,
  3535.       char    *verb,
  3536. !     char    *senseVerb,
  3537. !     char    *filepos,
  3538.       char    *help,
  3539.       char    *sense,
  3540.       char    *file,
  3541. --- 805,816 ----
  3542.       workshopInitDone = True;
  3543.   }
  3544.   
  3545.       void
  3546.   workshop_toolbar_button(
  3547.       char    *label,
  3548.       char    *verb,
  3549. !     char    *senseVerb UNUSED,
  3550. !     char    *filepos UNUSED,
  3551.       char    *help,
  3552.       char    *sense,
  3553.       char    *file,
  3554. ***************
  3555. *** 968,974 ****
  3556.           if (strcmp(option, "syntax") == 0)
  3557.           vim_snprintf(cbuf, sizeof(cbuf), "syntax %s", value);
  3558.           else if (strcmp(option, "savefiles") == 0)
  3559. !         ; /* XXX - Not yet implemented */
  3560.           break;
  3561.   
  3562.       case 'l':
  3563. --- 962,970 ----
  3564.           if (strcmp(option, "syntax") == 0)
  3565.           vim_snprintf(cbuf, sizeof(cbuf), "syntax %s", value);
  3566.           else if (strcmp(option, "savefiles") == 0)
  3567. !         {
  3568. !         /* XXX - Not yet implemented */
  3569. !         }
  3570.           break;
  3571.   
  3572.       case 'l':
  3573. ***************
  3574. *** 1098,1107 ****
  3575.   /*
  3576.    * A button in the toolbar has been pushed.
  3577.    */
  3578. - /*ARGSUSED*/
  3579.       int
  3580.   workshop_get_positions(
  3581. !     void        *clientData,    /* unused */
  3582.       char           **filename,    /* output data */
  3583.       int        *curLine,    /* output data */
  3584.       int        *curCol,    /* output data */
  3585. --- 1094,1102 ----
  3586.   /*
  3587.    * A button in the toolbar has been pushed.
  3588.    */
  3589.       int
  3590.   workshop_get_positions(
  3591. !     void        *clientData UNUSED,
  3592.       char           **filename,    /* output data */
  3593.       int        *curLine,    /* output data */
  3594.       int        *curCol,    /* output data */
  3595. ***************
  3596. *** 1526,1534 ****
  3597.       return NULL;
  3598.   }
  3599.   
  3600. - /*ARGSUSED*/
  3601.       void
  3602. ! workshop_save_sensitivity(char *filename)
  3603.   {
  3604.   }
  3605.   
  3606. --- 1521,1528 ----
  3607.       return NULL;
  3608.   }
  3609.   
  3610.       void
  3611. ! workshop_save_sensitivity(char *filename UNUSED)
  3612.   {
  3613.   }
  3614.   
  3615. *** ../vim-7.2.183/src/version.c    2009-05-21 15:19:59.000000000 +0200
  3616. --- src/version.c    2009-05-21 23:19:40.000000000 +0200
  3617. ***************
  3618. *** 678,679 ****
  3619. --- 678,681 ----
  3620.   {   /* Add new patch number below this line */
  3621. + /**/
  3622. +     184,
  3623.   /**/
  3624.  
  3625. -- 
  3626. CART DRIVER: Bring out your dead!
  3627. LARGE MAN:   Here's one!
  3628. CART DRIVER: Ninepence.
  3629. BODY:        I'm not dead!
  3630.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  3631.  
  3632.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  3633. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  3634. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  3635.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  3636.