Loading ...
Sorry, an error occurred while loading the content.

Patch 7.2.383

Expand Messages
  • Bram Moolenaar
    Patch 7.2.383 Problem: Vim doesn t build cleanly with MSVC 2010. Solution: Change a few types. (George Reilly) Files: src/ex_cmds2.c, src/if_python.c,
    Message 1 of 1 , Mar 2, 2010
    • 0 Attachment
      Patch 7.2.383
      Problem: Vim doesn't build cleanly with MSVC 2010.
      Solution: Change a few types. (George Reilly)
      Files: src/ex_cmds2.c, src/if_python.c, src/syntax.c


      *** ../vim-7.2.382/src/ex_cmds2.c 2010-02-24 13:59:08.000000000 +0100
      --- src/ex_cmds2.c 2010-03-02 17:42:54.000000000 +0100
      ***************
      *** 1165,1171 ****
      char_u *arg;
      {
      char_u *end_subcmd;
      - int len;

      /* Default: expand subcommands. */
      xp->xp_context = EXPAND_PROFILE;
      --- 1165,1170 ----
      ***************
      *** 1176,1183 ****
      if (*end_subcmd == NUL)
      return;

      ! len = end_subcmd - arg;
      ! if (len == 5 && STRNCMP(arg, "start", 5) == 0)
      {
      xp->xp_context = EXPAND_FILES;
      xp->xp_pattern = skipwhite(end_subcmd);
      --- 1175,1181 ----
      if (*end_subcmd == NUL)
      return;

      ! if (end_subcmd - arg == 5 && STRNCMP(arg, "start", 5) == 0)
      {
      xp->xp_context = EXPAND_FILES;
      xp->xp_pattern = skipwhite(end_subcmd);
      *** ../vim-7.2.382/src/if_python.c 2009-11-11 15:06:59.000000000 +0100
      --- src/if_python.c 2010-03-02 17:43:39.000000000 +0100
      ***************
      *** 2080,2086 ****
      return -1;

      /* When column is out of range silently correct it. */
      ! len = STRLEN(ml_get_buf(this->win->w_buffer, lnum, FALSE));
      if (col > len)
      col = len;

      --- 2080,2086 ----
      return -1;

      /* When column is out of range silently correct it. */
      ! len = (long)STRLEN(ml_get_buf(this->win->w_buffer, lnum, FALSE));
      if (col > len)
      col = len;

      *** ../vim-7.2.382/src/syntax.c 2010-02-24 17:22:14.000000000 +0100
      --- src/syntax.c 2010-03-02 17:45:25.000000000 +0100
      ***************
      *** 3090,3096 ****
      {
      /* a "\n" at the end of the pattern may take us below the last line */
      result->lnum = syn_buf->b_ml.ml_line_count;
      ! col = STRLEN(ml_get_buf(syn_buf, result->lnum, FALSE));
      }
      if (off != 0)
      {
      --- 3090,3096 ----
      {
      /* a "\n" at the end of the pattern may take us below the last line */
      result->lnum = syn_buf->b_ml.ml_line_count;
      ! col = (int)STRLEN(ml_get_buf(syn_buf, result->lnum, FALSE));
      }
      if (off != 0)
      {
      *** ../vim-7.2.382/src/version.c 2010-03-02 17:23:10.000000000 +0100
      --- src/version.c 2010-03-02 17:48:50.000000000 +0100
      ***************
      *** 683,684 ****
      --- 683,686 ----
      { /* Add new patch number below this line */
      + /**/
      + 383,
      /**/

      --
      You were lucky to have a LAKE! There were a hundred and sixty of
      us living in a small shoebox in the middle of the road.

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ download, build and distribute -- http://www.A-A-P.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --
      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    Your message has been successfully submitted and would be delivered to recipients shortly.