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.3 / 7.3.820 < prev    next >
Encoding:
Internet Message Format  |  2013-02-13  |  3.2 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.820
  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.3.820
  11. Problem:    Build errors and warnings when building with small features and
  12.         Lua, Perl or Ruby.
  13. Solution:   Add #ifdefs and UNUSED.
  14. Files:        src/if_perl.xs, src/if_lua.c, src/if_ruby.c
  15.  
  16.  
  17. *** ../vim-7.3.819/src/if_perl.xs    2013-02-06 19:58:38.000000000 +0100
  18. --- src/if_perl.xs    2013-02-14 19:16:00.000000000 +0100
  19. ***************
  20. *** 600,608 ****
  21.    */
  22.       char_u *
  23.   eval_to_string(arg, nextcmd, dolist)
  24. !     char_u    *arg;
  25. !     char_u    **nextcmd;
  26. !     int        dolist;
  27.   {
  28.       return NULL;
  29.   }
  30. --- 600,608 ----
  31.    */
  32.       char_u *
  33.   eval_to_string(arg, nextcmd, dolist)
  34. !     char_u    *arg UNUSED;
  35. !     char_u    **nextcmd UNUSED;
  36. !     int        dolist UNUSED;
  37.   {
  38.       return NULL;
  39.   }
  40. *** ../vim-7.3.819/src/if_lua.c    2012-10-14 03:41:54.000000000 +0200
  41. --- src/if_lua.c    2013-02-14 19:15:29.000000000 +0100
  42. ***************
  43. *** 845,852 ****
  44.   }
  45.   
  46.       static int
  47. ! luaV_dict_iter (lua_State *L)
  48.   {
  49.       hashitem_T *hi = (hashitem_T *) lua_touserdata(L, lua_upvalueindex(2));
  50.       int n = lua_tointeger(L, lua_upvalueindex(3));
  51.       dictitem_T *di;
  52. --- 845,853 ----
  53.   }
  54.   
  55.       static int
  56. ! luaV_dict_iter (lua_State *L UNUSED)
  57.   {
  58. + #ifdef FEAT_EVAL
  59.       hashitem_T *hi = (hashitem_T *) lua_touserdata(L, lua_upvalueindex(2));
  60.       int n = lua_tointeger(L, lua_upvalueindex(3));
  61.       dictitem_T *di;
  62. ***************
  63. *** 860,865 ****
  64. --- 861,869 ----
  65.       lua_pushinteger(L, n - 1);
  66.       lua_replace(L, lua_upvalueindex(3));
  67.       return 2;
  68. + #else
  69. +     return 0;
  70. + #endif
  71.   }
  72.   
  73.       static int
  74. *** ../vim-7.3.819/src/if_ruby.c    2012-11-24 13:38:56.000000000 +0100
  75. --- src/if_ruby.c    2013-02-14 22:18:50.000000000 +0100
  76. ***************
  77. *** 1210,1230 ****
  78.       return height;
  79.   }
  80.   
  81. ! static VALUE window_width(VALUE self)
  82.   {
  83. !     win_T *win = get_win(self);
  84. !     return INT2NUM(win->w_width);
  85.   }
  86.   
  87. ! static VALUE window_set_width(VALUE self, VALUE width)
  88.   {
  89.       win_T *win = get_win(self);
  90.       win_T *savewin = curwin;
  91.   
  92.       curwin = win;
  93.       win_setwidth(NUM2INT(width));
  94.       curwin = savewin;
  95.       return width;
  96.   }
  97.   
  98. --- 1210,1230 ----
  99.       return height;
  100.   }
  101.   
  102. ! static VALUE window_width(VALUE self UNUSED)
  103.   {
  104. !     return INT2NUM(W_WIDTH(get_win(self)));
  105.   }
  106.   
  107. ! static VALUE window_set_width(VALUE self UNUSED, VALUE width)
  108.   {
  109. + #ifdef FEAT_VERTSPLIT
  110.       win_T *win = get_win(self);
  111.       win_T *savewin = curwin;
  112.   
  113.       curwin = win;
  114.       win_setwidth(NUM2INT(width));
  115.       curwin = savewin;
  116. + #endif
  117.       return width;
  118.   }
  119.   
  120. *** ../vim-7.3.819/src/version.c    2013-02-14 22:11:31.000000000 +0100
  121. --- src/version.c    2013-02-14 22:19:09.000000000 +0100
  122. ***************
  123. *** 727,728 ****
  124. --- 727,730 ----
  125.   {   /* Add new patch number below this line */
  126. + /**/
  127. +     820,
  128.   /**/
  129.  
  130. -- 
  131. Did Adam and Eve have navels?
  132.  
  133.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  134. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  135. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  136.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  137.