Karsten Hopp bd5698
To: vim_dev@googlegroups.com
Karsten Hopp bd5698
Subject: Patch 7.3.342
Karsten Hopp bd5698
Fcc: outbox
Karsten Hopp bd5698
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp bd5698
Mime-Version: 1.0
Karsten Hopp bd5698
Content-Type: text/plain; charset=UTF-8
Karsten Hopp bd5698
Content-Transfer-Encoding: 8bit
Karsten Hopp bd5698
------------
Karsten Hopp bd5698
Karsten Hopp bd5698
Patch 7.3.342
Karsten Hopp bd5698
Problem:    Code not in Vim style.
Karsten Hopp bd5698
Solution:   Fix the style. (Elias Diem)
Karsten Hopp bd5698
Files:	    src/os_amiga.c, src/os_mac_conv.c, src/os_win16.c
Karsten Hopp bd5698
Karsten Hopp bd5698
Karsten Hopp bd5698
*** ../vim-7.3.341/src/os_amiga.c	2010-08-15 21:57:27.000000000 +0200
Karsten Hopp bd5698
--- src/os_amiga.c	2011-10-20 18:19:45.000000000 +0200
Karsten Hopp bd5698
***************
Karsten Hopp bd5698
*** 1022,1028 ****
Karsten Hopp bd5698
  
Karsten Hopp bd5698
      /* insure longword alignment */
Karsten Hopp bd5698
  #ifdef __amigaos4__
Karsten Hopp bd5698
!     if(!(id = AllocDosObject(DOS_INFODATA, 0)))
Karsten Hopp bd5698
  	goto out;
Karsten Hopp bd5698
  #else
Karsten Hopp bd5698
      id = (struct InfoData *)(((long)id_a + 3L) & ~3L);
Karsten Hopp bd5698
--- 1022,1028 ----
Karsten Hopp bd5698
  
Karsten Hopp bd5698
      /* insure longword alignment */
Karsten Hopp bd5698
  #ifdef __amigaos4__
Karsten Hopp bd5698
!     if (!(id = AllocDosObject(DOS_INFODATA, 0)))
Karsten Hopp bd5698
  	goto out;
Karsten Hopp bd5698
  #else
Karsten Hopp bd5698
      id = (struct InfoData *)(((long)id_a + 3L) & ~3L);
Karsten Hopp bd5698
*** ../vim-7.3.341/src/os_mac_conv.c	2011-06-13 02:03:55.000000000 +0200
Karsten Hopp bd5698
--- src/os_mac_conv.c	2011-10-20 18:19:45.000000000 +0200
Karsten Hopp bd5698
***************
Karsten Hopp bd5698
*** 77,83 ****
Karsten Hopp bd5698
  	*unconvlenp = 0;
Karsten Hopp bd5698
      cfstr = CFStringCreateWithBytes(NULL, ptr, len, from, 0);
Karsten Hopp bd5698
  
Karsten Hopp bd5698
!     if(cfstr == NULL)
Karsten Hopp bd5698
  	fprintf(stderr, "Encoding failed\n");
Karsten Hopp bd5698
      /* When conversion failed, try excluding bytes from the end, helps when
Karsten Hopp bd5698
       * there is an incomplete byte sequence.  Only do up to 6 bytes to avoid
Karsten Hopp bd5698
--- 77,83 ----
Karsten Hopp bd5698
  	*unconvlenp = 0;
Karsten Hopp bd5698
      cfstr = CFStringCreateWithBytes(NULL, ptr, len, from, 0);
Karsten Hopp bd5698
  
Karsten Hopp bd5698
!     if (cfstr == NULL)
Karsten Hopp bd5698
  	fprintf(stderr, "Encoding failed\n");
Karsten Hopp bd5698
      /* When conversion failed, try excluding bytes from the end, helps when
Karsten Hopp bd5698
       * there is an incomplete byte sequence.  Only do up to 6 bytes to avoid
Karsten Hopp bd5698
*** ../vim-7.3.341/src/os_win16.c	2010-12-17 20:23:56.000000000 +0100
Karsten Hopp bd5698
--- src/os_win16.c	2011-10-20 18:19:45.000000000 +0200
Karsten Hopp bd5698
***************
Karsten Hopp bd5698
*** 243,251 ****
Karsten Hopp bd5698
  	/* Wait for the command to terminate before continuing */
Karsten Hopp bd5698
  	while (GetModuleUsage((HINSTANCE)h_module) > 0 && again )
Karsten Hopp bd5698
  	{
Karsten Hopp bd5698
! 	    while( PeekMessage( &msg, NULL, 0, 0, PM_REMOVE ) && again )
Karsten Hopp bd5698
  	    {
Karsten Hopp bd5698
! 		if(msg.message == WM_QUIT)
Karsten Hopp bd5698
  
Karsten Hopp bd5698
  		{
Karsten Hopp bd5698
  		    PostQuitMessage(msg.wParam);
Karsten Hopp bd5698
--- 243,251 ----
Karsten Hopp bd5698
  	/* Wait for the command to terminate before continuing */
Karsten Hopp bd5698
  	while (GetModuleUsage((HINSTANCE)h_module) > 0 && again )
Karsten Hopp bd5698
  	{
Karsten Hopp bd5698
! 	    while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) && again)
Karsten Hopp bd5698
  	    {
Karsten Hopp bd5698
! 		if (msg.message == WM_QUIT)
Karsten Hopp bd5698
  
Karsten Hopp bd5698
  		{
Karsten Hopp bd5698
  		    PostQuitMessage(msg.wParam);
Karsten Hopp bd5698
*** ../vim-7.3.341/src/version.c	2011-10-20 18:17:38.000000000 +0200
Karsten Hopp bd5698
--- src/version.c	2011-10-20 18:21:43.000000000 +0200
Karsten Hopp bd5698
***************
Karsten Hopp bd5698
*** 711,712 ****
Karsten Hopp bd5698
--- 711,714 ----
Karsten Hopp bd5698
  {   /* Add new patch number below this line */
Karsten Hopp bd5698
+ /**/
Karsten Hopp bd5698
+     342,
Karsten Hopp bd5698
  /**/
Karsten Hopp bd5698
Karsten Hopp bd5698
-- 
Karsten Hopp bd5698
You are only young once, but you can stay immature indefinitely.
Karsten Hopp bd5698
Karsten Hopp bd5698
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp bd5698
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp bd5698
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp bd5698
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///