Karsten Hopp c6304a
To: vim_dev@googlegroups.com
Karsten Hopp c6304a
Subject: Patch 7.3.571
Karsten Hopp c6304a
Fcc: outbox
Karsten Hopp c6304a
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp c6304a
Mime-Version: 1.0
Karsten Hopp c6304a
Content-Type: text/plain; charset=UTF-8
Karsten Hopp c6304a
Content-Transfer-Encoding: 8bit
Karsten Hopp c6304a
------------
Karsten Hopp c6304a
Karsten Hopp c6304a
Patch 7.3.571
Karsten Hopp c6304a
Problem:    Duplicated condition.
Karsten Hopp c6304a
Solution:   Remove one. (Dominique Pelle)
Karsten Hopp c6304a
Files:	    src/os_win32.c
Karsten Hopp c6304a
Karsten Hopp c6304a
Karsten Hopp c6304a
*** ../vim-7.3.570/src/os_win32.c	2012-02-29 13:58:43.000000000 +0100
Karsten Hopp c6304a
--- src/os_win32.c	2012-06-29 13:10:54.000000000 +0200
Karsten Hopp c6304a
***************
Karsten Hopp c6304a
*** 308,314 ****
Karsten Hopp c6304a
  # ifndef GETTEXT_DLL
Karsten Hopp c6304a
  #  define GETTEXT_DLL "libintl.dll"
Karsten Hopp c6304a
  # endif
Karsten Hopp c6304a
! /* Dummy funcitons */
Karsten Hopp c6304a
  static char *null_libintl_gettext(const char *);
Karsten Hopp c6304a
  static char *null_libintl_textdomain(const char *);
Karsten Hopp c6304a
  static char *null_libintl_bindtextdomain(const char *, const char *);
Karsten Hopp c6304a
--- 308,314 ----
Karsten Hopp c6304a
  # ifndef GETTEXT_DLL
Karsten Hopp c6304a
  #  define GETTEXT_DLL "libintl.dll"
Karsten Hopp c6304a
  # endif
Karsten Hopp c6304a
! /* Dummy functions */
Karsten Hopp c6304a
  static char *null_libintl_gettext(const char *);
Karsten Hopp c6304a
  static char *null_libintl_textdomain(const char *);
Karsten Hopp c6304a
  static char *null_libintl_bindtextdomain(const char *, const char *);
Karsten Hopp c6304a
***************
Karsten Hopp c6304a
*** 1409,1415 ****
Karsten Hopp c6304a
  
Karsten Hopp c6304a
  
Karsten Hopp c6304a
  /*
Karsten Hopp c6304a
!  * mch_inchar(): low-level input funcion.
Karsten Hopp c6304a
   * Get one or more characters from the keyboard or the mouse.
Karsten Hopp c6304a
   * If time == 0, do not wait for characters.
Karsten Hopp c6304a
   * If time == n, wait a short time for characters.
Karsten Hopp c6304a
--- 1409,1415 ----
Karsten Hopp c6304a
  
Karsten Hopp c6304a
  
Karsten Hopp c6304a
  /*
Karsten Hopp c6304a
!  * mch_inchar(): low-level input function.
Karsten Hopp c6304a
   * Get one or more characters from the keyboard or the mouse.
Karsten Hopp c6304a
   * If time == 0, do not wait for characters.
Karsten Hopp c6304a
   * If time == n, wait a short time for characters.
Karsten Hopp c6304a
***************
Karsten Hopp c6304a
*** 3451,3464 ****
Karsten Hopp c6304a
       * to avoid to perform a blocking read */
Karsten Hopp c6304a
      ret = PeekNamedPipe(g_hChildStd_OUT_Rd, /* pipe to query */
Karsten Hopp c6304a
  			NULL,		    /* optional buffer */
Karsten Hopp c6304a
! 			0,		    /* buffe size */
Karsten Hopp c6304a
  			NULL,		    /* number of read bytes */
Karsten Hopp c6304a
  			&availableBytes,    /* available bytes total */
Karsten Hopp c6304a
  			NULL);		    /* byteLeft */
Karsten Hopp c6304a
  
Karsten Hopp c6304a
      repeatCount = 0;
Karsten Hopp c6304a
      /* We got real data in the pipe, read it */
Karsten Hopp c6304a
!     while (ret != 0 && availableBytes > 0 && availableBytes > 0)
Karsten Hopp c6304a
      {
Karsten Hopp c6304a
  	repeatCount++;
Karsten Hopp c6304a
  	toRead =
Karsten Hopp c6304a
--- 3451,3464 ----
Karsten Hopp c6304a
       * to avoid to perform a blocking read */
Karsten Hopp c6304a
      ret = PeekNamedPipe(g_hChildStd_OUT_Rd, /* pipe to query */
Karsten Hopp c6304a
  			NULL,		    /* optional buffer */
Karsten Hopp c6304a
! 			0,		    /* buffer size */
Karsten Hopp c6304a
  			NULL,		    /* number of read bytes */
Karsten Hopp c6304a
  			&availableBytes,    /* available bytes total */
Karsten Hopp c6304a
  			NULL);		    /* byteLeft */
Karsten Hopp c6304a
  
Karsten Hopp c6304a
      repeatCount = 0;
Karsten Hopp c6304a
      /* We got real data in the pipe, read it */
Karsten Hopp c6304a
!     while (ret != 0 && availableBytes > 0)
Karsten Hopp c6304a
      {
Karsten Hopp c6304a
  	repeatCount++;
Karsten Hopp c6304a
  	toRead =
Karsten Hopp c6304a
***************
Karsten Hopp c6304a
*** 3638,3644 ****
Karsten Hopp c6304a
  		  NULL,			/* Process security attributes */
Karsten Hopp c6304a
  		  NULL,			/* Thread security attributes */
Karsten Hopp c6304a
  
Karsten Hopp c6304a
! 		  // this command can be litigeous, handle inheritence was
Karsten Hopp c6304a
  		  // deactivated for pending temp file, but, if we deactivate
Karsten Hopp c6304a
  		  // it, the pipes don't work for some reason.
Karsten Hopp c6304a
  		  TRUE,			/* Inherit handles, first deactivated,
Karsten Hopp c6304a
--- 3638,3644 ----
Karsten Hopp c6304a
  		  NULL,			/* Process security attributes */
Karsten Hopp c6304a
  		  NULL,			/* Thread security attributes */
Karsten Hopp c6304a
  
Karsten Hopp c6304a
! 		  // this command can be litigious, handle inheritance was
Karsten Hopp c6304a
  		  // deactivated for pending temp file, but, if we deactivate
Karsten Hopp c6304a
  		  // it, the pipes don't work for some reason.
Karsten Hopp c6304a
  		  TRUE,			/* Inherit handles, first deactivated,
Karsten Hopp c6304a
*** ../vim-7.3.570/src/version.c	2012-06-29 12:57:03.000000000 +0200
Karsten Hopp c6304a
--- src/version.c	2012-06-29 13:12:31.000000000 +0200
Karsten Hopp c6304a
***************
Karsten Hopp c6304a
*** 716,717 ****
Karsten Hopp c6304a
--- 716,719 ----
Karsten Hopp c6304a
  {   /* Add new patch number below this line */
Karsten Hopp c6304a
+ /**/
Karsten Hopp c6304a
+     571,
Karsten Hopp c6304a
  /**/
Karsten Hopp c6304a
Karsten Hopp c6304a
-- 
Karsten Hopp c6304a
hundred-and-one symptoms of being an internet addict:
Karsten Hopp c6304a
71. You wonder how people walk
Karsten Hopp c6304a
Karsten Hopp c6304a
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp c6304a
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp c6304a
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp c6304a
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///