Karsten Hopp 70cbd7
To: vim-dev@vim.org
Karsten Hopp 70cbd7
Subject: Patch 7.2.358
Karsten Hopp 70cbd7
Fcc: outbox
Karsten Hopp 70cbd7
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 70cbd7
Mime-Version: 1.0
Karsten Hopp 70cbd7
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 70cbd7
Content-Transfer-Encoding: 8bit
Karsten Hopp 70cbd7
------------
Karsten Hopp 70cbd7
Karsten Hopp 70cbd7
Patch 7.2.358
Karsten Hopp 70cbd7
Problem:    Compiler warnings on VMS. (Zoltan Arpadffy)
Karsten Hopp 70cbd7
Solution:   Pass array itself instead its address.  Return a value.
Karsten Hopp 70cbd7
Files:	    src/gui_gtk_x11.c, src/os_unix.c
Karsten Hopp 70cbd7
Karsten Hopp 70cbd7
Karsten Hopp 70cbd7
*** ../vim-7.2.357/src/gui_gtk_x11.c	2009-11-03 18:13:36.000000000 +0100
Karsten Hopp 70cbd7
--- src/gui_gtk_x11.c	2010-02-11 18:00:28.000000000 +0100
Karsten Hopp 70cbd7
***************
Karsten Hopp 70cbd7
*** 6190,6196 ****
Karsten Hopp 70cbd7
  		int pcc[MAX_MCO];
Karsten Hopp 70cbd7
  
Karsten Hopp 70cbd7
  		/* TODO: use the composing characters */
Karsten Hopp 70cbd7
! 		c = utfc_ptr2char_len(p, &pcc, len - (p - s));
Karsten Hopp 70cbd7
  		if (c >= 0x10000)	/* show chars > 0xffff as ? */
Karsten Hopp 70cbd7
  		    c = 0xbf;
Karsten Hopp 70cbd7
  		buf[textlen].byte1 = c >> 8;
Karsten Hopp 70cbd7
--- 6190,6196 ----
Karsten Hopp 70cbd7
  		int pcc[MAX_MCO];
Karsten Hopp 70cbd7
  
Karsten Hopp 70cbd7
  		/* TODO: use the composing characters */
Karsten Hopp 70cbd7
! 		c = utfc_ptr2char_len(p, pcc, len - (p - s));
Karsten Hopp 70cbd7
  		if (c >= 0x10000)	/* show chars > 0xffff as ? */
Karsten Hopp 70cbd7
  		    c = 0xbf;
Karsten Hopp 70cbd7
  		buf[textlen].byte1 = c >> 8;
Karsten Hopp 70cbd7
*** ../vim-7.2.357/src/os_unix.c	2009-07-22 13:27:50.000000000 +0200
Karsten Hopp 70cbd7
--- src/os_unix.c	2010-02-11 18:10:20.000000000 +0100
Karsten Hopp 70cbd7
***************
Karsten Hopp 70cbd7
*** 1471,1476 ****
Karsten Hopp 70cbd7
--- 1471,1479 ----
Karsten Hopp 70cbd7
  {
Karsten Hopp 70cbd7
      /* This function should not return, it causes exit().  Longjump instead. */
Karsten Hopp 70cbd7
      LONGJMP(lc_jump_env, 1);
Karsten Hopp 70cbd7
+ #  ifdef VMS
Karsten Hopp 70cbd7
+     return 0;  /* avoid the compiler complains about missing return value */
Karsten Hopp 70cbd7
+ #  endif
Karsten Hopp 70cbd7
  }
Karsten Hopp 70cbd7
  # endif
Karsten Hopp 70cbd7
  
Karsten Hopp 70cbd7
***************
Karsten Hopp 70cbd7
*** 1490,1495 ****
Karsten Hopp 70cbd7
--- 1493,1501 ----
Karsten Hopp 70cbd7
  
Karsten Hopp 70cbd7
      /* This function should not return, it causes exit().  Longjump instead. */
Karsten Hopp 70cbd7
      LONGJMP(x_jump_env, 1);
Karsten Hopp 70cbd7
+ # ifdef VMS
Karsten Hopp 70cbd7
+     return 0;  /* avoid the compiler complains about missing return value */
Karsten Hopp 70cbd7
+ # endif
Karsten Hopp 70cbd7
  }
Karsten Hopp 70cbd7
  #endif
Karsten Hopp 70cbd7
  
Karsten Hopp 70cbd7
*** ../vim-7.2.357/src/version.c	2010-02-11 17:02:04.000000000 +0100
Karsten Hopp 70cbd7
--- src/version.c	2010-02-11 18:10:45.000000000 +0100
Karsten Hopp 70cbd7
***************
Karsten Hopp 70cbd7
*** 683,684 ****
Karsten Hopp 70cbd7
--- 683,686 ----
Karsten Hopp 70cbd7
  {   /* Add new patch number below this line */
Karsten Hopp 70cbd7
+ /**/
Karsten Hopp 70cbd7
+     358,
Karsten Hopp 70cbd7
  /**/
Karsten Hopp 70cbd7
Karsten Hopp 70cbd7
-- 
Karsten Hopp 70cbd7
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 70cbd7
221. Your wife melts your keyboard in the oven.
Karsten Hopp 70cbd7
Karsten Hopp 70cbd7
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 70cbd7
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 70cbd7
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 70cbd7
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///