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

Patch 6.2f.027

Expand Messages
  • Bram Moolenaar
    Patch 6.2f.027 Problem: Compiler warnings for unsigned char pointers. (Tony Leneis) Solution: Add typecasts to char pointer. Files: src/quickfix.c ...
    Message 1 of 1 , May 30, 2003
    • 0 Attachment
      Patch 6.2f.027
      Problem: Compiler warnings for unsigned char pointers. (Tony Leneis)
      Solution: Add typecasts to char pointer.
      Files: src/quickfix.c


      *** ../vim-6.2f.026/src/quickfix.c Mon May 26 22:15:06 2003
      --- src/quickfix.c Fri May 30 09:43:51 2003
      ***************
      *** 1220,1228 ****
      update_topline_redraw();
      sprintf((char *)IObuff, _("(%d of %d)%s%s: "), qf_index,
      qf_lists[qf_curlist].qf_count,
      ! qf_ptr->qf_cleared ? (char_u *)_(" (line deleted)")
      ! : (char_u *)"",
      ! qf_types(qf_ptr->qf_type, qf_ptr->qf_nr));
      /* Add the message, skipping leading whitespace and newlines. */
      len = (int)STRLEN(IObuff);
      qf_fmt_text(qf_ptr->qf_text, IObuff + len, IOSIZE - len);
      --- 1220,1227 ----
      update_topline_redraw();
      sprintf((char *)IObuff, _("(%d of %d)%s%s: "), qf_index,
      qf_lists[qf_curlist].qf_count,
      ! qf_ptr->qf_cleared ? _(" (line deleted)") : "",
      ! (char *)qf_types(qf_ptr->qf_type, qf_ptr->qf_nr));
      /* Add the message, skipping leading whitespace and newlines. */
      len = (int)STRLEN(IObuff);
      qf_fmt_text(qf_ptr->qf_text, IObuff + len, IOSIZE - len);
      ***************
      *** 1335,1341 ****
      if (fname == NULL)
      sprintf((char *)IObuff, "%2d", i);
      else
      ! sprintf((char *)IObuff, "%2d %s", i, fname);
      msg_outtrans_attr(IObuff, i == qf_lists[qf_curlist].qf_index
      ? hl_attr(HLF_L) : hl_attr(HLF_D));
      if (qfp->qf_lnum == 0)
      --- 1334,1340 ----
      if (fname == NULL)
      sprintf((char *)IObuff, "%2d", i);
      else
      ! sprintf((char *)IObuff, "%2d %s", i, (char *)fname);
      msg_outtrans_attr(IObuff, i == qf_lists[qf_curlist].qf_index
      ? hl_attr(HLF_L) : hl_attr(HLF_D));
      if (qfp->qf_lnum == 0)
      ***************
      *** 1346,1352 ****
      sprintf((char *)IObuff, ":%ld col %d",
      qfp->qf_lnum, qfp->qf_col);
      sprintf((char *)IObuff + STRLEN(IObuff), "%s: ",
      ! qf_types(qfp->qf_type, qfp->qf_nr));
      msg_puts_attr(IObuff, hl_attr(HLF_N));
      /* Remove newlines and leading whitespace from the text. */
      qf_fmt_text(qfp->qf_text, IObuff, IOSIZE);
      --- 1345,1351 ----
      sprintf((char *)IObuff, ":%ld col %d",
      qfp->qf_lnum, qfp->qf_col);
      sprintf((char *)IObuff + STRLEN(IObuff), "%s: ",
      ! (char *)qf_types(qfp->qf_type, qfp->qf_nr));
      msg_puts_attr(IObuff, hl_attr(HLF_N));
      /* Remove newlines and leading whitespace from the text. */
      qf_fmt_text(qfp->qf_text, IObuff, IOSIZE);
      ***************
      *** 1551,1557 ****
      if (nr <= 0)
      return p;

      ! sprintf((char *)buf, "%s %3d", p, nr);
      return buf;
      }

      --- 1550,1556 ----
      if (nr <= 0)
      return p;

      ! sprintf((char *)buf, "%s %3d", (char *)p, nr);
      return buf;
      }

      ***************
      *** 1847,1853 ****
      }

      sprintf((char *)IObuff + len, "%s",
      ! qf_types(qfp->qf_type, qfp->qf_nr));
      len += (int)STRLEN(IObuff + len);
      }
      IObuff[len++] = '|';
      --- 1846,1852 ----
      }

      sprintf((char *)IObuff + len, "%s",
      ! (char *)qf_types(qfp->qf_type, qfp->qf_nr));
      len += (int)STRLEN(IObuff + len);
      }
      IObuff[len++] = '|';
      ***************
      *** 1976,1982 ****
      cmd = alloc(len);
      if (cmd == NULL)
      return;
      ! sprintf((char *)cmd, "%s%s%s", p_shq, eap->arg, p_shq);
      if (*p_sp != NUL)
      append_redir(cmd, p_sp, name);
      /*
      --- 1975,1982 ----
      cmd = alloc(len);
      if (cmd == NULL)
      return;
      ! sprintf((char *)cmd, "%s%s%s", (char *)p_shq, (char *)eap->arg,
      ! (char *)p_shq);
      if (*p_sp != NUL)
      append_redir(cmd, p_sp, name);
      /*
      *** ../vim-6.2f.026/src/version.c Thu May 29 23:05:29 2003
      --- src/version.c Fri May 30 11:33:30 2003
      ***************
      *** 632,633 ****
      --- 632,635 ----
      { /* Add new patch number below this line */
      + /**/
      + 27,
      /**/

      --
      How To Keep A Healthy Level Of Insanity:
      8. Don't use any punctuation marks.

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
      \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
      \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
    Your message has been successfully submitted and would be delivered to recipients shortly.