summaryrefslogtreecommitdiffstats
path: root/source/ap/vim/patches/7.3.571
blob: ad62ffc2bb81fe64088006aa87c2131bc2ee27f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
To: vim_dev@googlegroups.com
Subject: Patch 7.3.571
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.3.571
Problem:    Duplicated condition.
Solution:   Remove one. (Dominique Pelle)
Files:	    src/os_win32.c


*** ../vim-7.3.570/src/os_win32.c	2012-02-29 13:58:43.000000000 +0100
--- src/os_win32.c	2012-06-29 13:10:54.000000000 +0200
***************
*** 308,314 ****
  # ifndef GETTEXT_DLL
  #  define GETTEXT_DLL "libintl.dll"
  # endif
! /* Dummy funcitons */
  static char *null_libintl_gettext(const char *);
  static char *null_libintl_textdomain(const char *);
  static char *null_libintl_bindtextdomain(const char *, const char *);
--- 308,314 ----
  # ifndef GETTEXT_DLL
  #  define GETTEXT_DLL "libintl.dll"
  # endif
! /* Dummy functions */
  static char *null_libintl_gettext(const char *);
  static char *null_libintl_textdomain(const char *);
  static char *null_libintl_bindtextdomain(const char *, const char *);
***************
*** 1409,1415 ****
  
  
  /*
!  * mch_inchar(): low-level input funcion.
   * Get one or more characters from the keyboard or the mouse.
   * If time == 0, do not wait for characters.
   * If time == n, wait a short time for characters.
--- 1409,1415 ----
  
  
  /*
!  * mch_inchar(): low-level input function.
   * Get one or more characters from the keyboard or the mouse.
   * If time == 0, do not wait for characters.
   * If time == n, wait a short time for characters.
***************
*** 3451,3464 ****
       * to avoid to perform a blocking read */
      ret = PeekNamedPipe(g_hChildStd_OUT_Rd, /* pipe to query */
  			NULL,		    /* optional buffer */
! 			0,		    /* buffe size */
  			NULL,		    /* number of read bytes */
  			&availableBytes,    /* available bytes total */
  			NULL);		    /* byteLeft */
  
      repeatCount = 0;
      /* We got real data in the pipe, read it */
!     while (ret != 0 && availableBytes > 0 && availableBytes > 0)
      {
  	repeatCount++;
  	toRead =
--- 3451,3464 ----
       * to avoid to perform a blocking read */
      ret = PeekNamedPipe(g_hChildStd_OUT_Rd, /* pipe to query */
  			NULL,		    /* optional buffer */
! 			0,		    /* buffer size */
  			NULL,		    /* number of read bytes */
  			&availableBytes,    /* available bytes total */
  			NULL);		    /* byteLeft */
  
      repeatCount = 0;
      /* We got real data in the pipe, read it */
!     while (ret != 0 && availableBytes > 0)
      {
  	repeatCount++;
  	toRead =
***************
*** 3638,3644 ****
  		  NULL,			/* Process security attributes */
  		  NULL,			/* Thread security attributes */
  
! 		  // this command can be litigeous, handle inheritence was
  		  // deactivated for pending temp file, but, if we deactivate
  		  // it, the pipes don't work for some reason.
  		  TRUE,			/* Inherit handles, first deactivated,
--- 3638,3644 ----
  		  NULL,			/* Process security attributes */
  		  NULL,			/* Thread security attributes */
  
! 		  // this command can be litigious, handle inheritance was
  		  // deactivated for pending temp file, but, if we deactivate
  		  // it, the pipes don't work for some reason.
  		  TRUE,			/* Inherit handles, first deactivated,
*** ../vim-7.3.570/src/version.c	2012-06-29 12:57:03.000000000 +0200
--- src/version.c	2012-06-29 13:12:31.000000000 +0200
***************
*** 716,717 ****
--- 716,719 ----
  {   /* Add new patch number below this line */
+ /**/
+     571,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
71. You wonder how people walk

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///