Karsten Hopp 201b6c
To: vim_dev@googlegroups.com
Karsten Hopp 201b6c
Subject: Patch 7.3.085
Karsten Hopp 201b6c
Fcc: outbox
Karsten Hopp 201b6c
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 201b6c
Mime-Version: 1.0
Karsten Hopp 201b6c
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 201b6c
Content-Transfer-Encoding: 8bit
Karsten Hopp 201b6c
------------
Karsten Hopp 201b6c
Karsten Hopp 201b6c
Patch 7.3.085 (after 7.3.083)
Karsten Hopp 201b6c
Problem:    Inconsistency with preproc symbols.  void * computation.
Karsten Hopp 201b6c
Solution:   Include vimio.h from vim.h.  Add type cast.
Karsten Hopp 201b6c
Files:      src/eval.c, src/ex_cmds.c, src/ex_cmds2.c, src/fileio.c,
Karsten Hopp 201b6c
            src/if_cscope.c, src/if_sniff.c, src/main.c, src/memfile.c,
Karsten Hopp 201b6c
            src/memline.c, src/netbeans.c, src/os_msdos.c, src/os_mswin.c,
Karsten Hopp 201b6c
            src/os_win16.c, src/os_win32.c, src/spell.c, src/tag.c,
Karsten Hopp 201b6c
            src/undo.c, src/vim.h
Karsten Hopp 201b6c
Karsten Hopp 201b6c
Karsten Hopp 201b6c
*** ../vim-7.3.084/src/eval.c	2010-12-02 21:44:35.000000000 +0100
Karsten Hopp 201b6c
--- src/eval.c	2010-12-17 17:45:37.000000000 +0100
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 10,18 ****
Karsten Hopp 201b6c
  /*
Karsten Hopp 201b6c
   * eval.c: Expression evaluation.
Karsten Hopp 201b6c
   */
Karsten Hopp 201b6c
- #if defined(MSDOS) || defined(WIN16) || defined(WIN32) || defined(_WIN64)
Karsten Hopp 201b6c
- # include "vimio.h"	/* for mch_open(), must be before vim.h */
Karsten Hopp 201b6c
- #endif
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
  #include "vim.h"
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
--- 10,15 ----
Karsten Hopp 201b6c
*** ../vim-7.3.084/src/ex_cmds.c	2010-11-24 17:59:27.000000000 +0100
Karsten Hopp 201b6c
--- src/ex_cmds.c	2010-12-17 17:46:09.000000000 +0100
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 11,20 ****
Karsten Hopp 201b6c
   * ex_cmds.c: some functions for command line commands
Karsten Hopp 201b6c
   */
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
- #if defined(MSDOS) || defined(WIN16) || defined(WIN32) || defined(_WIN64)
Karsten Hopp 201b6c
- # include "vimio.h"	/* for mch_open(), must be before vim.h */
Karsten Hopp 201b6c
- #endif
Karsten Hopp 201b6c
- 
Karsten Hopp 201b6c
  #include "vim.h"
Karsten Hopp 201b6c
  #include "version.h"
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
--- 11,16 ----
Karsten Hopp 201b6c
*** ../vim-7.3.084/src/ex_cmds2.c	2010-09-21 16:56:29.000000000 +0200
Karsten Hopp 201b6c
--- src/ex_cmds2.c	2010-12-17 17:46:26.000000000 +0100
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 11,20 ****
Karsten Hopp 201b6c
   * ex_cmds2.c: some more functions for command line commands
Karsten Hopp 201b6c
   */
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
- #if defined(MSDOS) || defined(WIN16) || defined(WIN32) || defined(_WIN64)
Karsten Hopp 201b6c
- # include "vimio.h"	/* for mch_open(), must be before vim.h */
Karsten Hopp 201b6c
- #endif
Karsten Hopp 201b6c
- 
Karsten Hopp 201b6c
  #include "vim.h"
Karsten Hopp 201b6c
  #include "version.h"
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
--- 11,16 ----
Karsten Hopp 201b6c
*** ../vim-7.3.084/src/fileio.c	2010-12-17 16:27:09.000000000 +0100
Karsten Hopp 201b6c
--- src/fileio.c	2010-12-17 17:52:42.000000000 +0100
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 11,24 ****
Karsten Hopp 201b6c
   * fileio.c: read from and write to a file
Karsten Hopp 201b6c
   */
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
- #if defined(MSDOS) || defined(WIN16) || defined(WIN32) || defined(_WIN64)
Karsten Hopp 201b6c
- # include "vimio.h"	/* for lseek(), must be before vim.h */
Karsten Hopp 201b6c
- #endif
Karsten Hopp 201b6c
- 
Karsten Hopp 201b6c
- #if defined __EMX__
Karsten Hopp 201b6c
- # include "vimio.h"	/* for mktemp(), CJW 1997-12-03 */
Karsten Hopp 201b6c
- #endif
Karsten Hopp 201b6c
- 
Karsten Hopp 201b6c
  #include "vim.h"
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
  #if defined(__TANDEM) || defined(__MINT__)
Karsten Hopp 201b6c
--- 11,16 ----
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 10336,10342 ****
Karsten Hopp 201b6c
       * by a signal. */
Karsten Hopp 201b6c
      while (ret < (long)bufsize)
Karsten Hopp 201b6c
      {
Karsten Hopp 201b6c
! 	wlen = vim_write(fd, buf + ret, bufsize - ret);
Karsten Hopp 201b6c
  	if (wlen < 0)
Karsten Hopp 201b6c
  	{
Karsten Hopp 201b6c
  	    if (errno != EINTR)
Karsten Hopp 201b6c
--- 10328,10334 ----
Karsten Hopp 201b6c
       * by a signal. */
Karsten Hopp 201b6c
      while (ret < (long)bufsize)
Karsten Hopp 201b6c
      {
Karsten Hopp 201b6c
! 	wlen = vim_write(fd, (char *)buf + ret, bufsize - ret);
Karsten Hopp 201b6c
  	if (wlen < 0)
Karsten Hopp 201b6c
  	{
Karsten Hopp 201b6c
  	    if (errno != EINTR)
Karsten Hopp 201b6c
*** ../vim-7.3.084/src/if_cscope.c	2010-09-21 16:56:29.000000000 +0200
Karsten Hopp 201b6c
--- src/if_cscope.c	2010-12-17 17:47:02.000000000 +0100
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 20,28 ****
Karsten Hopp 201b6c
  #include <sys/stat.h>
Karsten Hopp 201b6c
  #if defined(UNIX)
Karsten Hopp 201b6c
  # include <sys/wait.h>
Karsten Hopp 201b6c
- #else
Karsten Hopp 201b6c
-     /* not UNIX, must be WIN32 */
Karsten Hopp 201b6c
- # include "vimio.h"
Karsten Hopp 201b6c
  #endif
Karsten Hopp 201b6c
  #include "if_cscope.h"
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
--- 20,25 ----
Karsten Hopp 201b6c
*** ../vim-7.3.084/src/if_sniff.c	2010-08-15 21:57:25.000000000 +0200
Karsten Hopp 201b6c
--- src/if_sniff.c	2010-12-17 17:47:20.000000000 +0100
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 9,15 ****
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
  #ifdef WIN32
Karsten Hopp 201b6c
  # include <stdio.h>
Karsten Hopp 201b6c
- # include "vimio.h"
Karsten Hopp 201b6c
  # include <process.h>
Karsten Hopp 201b6c
  # include <string.h>
Karsten Hopp 201b6c
  # include <assert.h>
Karsten Hopp 201b6c
--- 9,14 ----
Karsten Hopp 201b6c
*** ../vim-7.3.084/src/main.c	2010-11-16 16:25:46.000000000 +0100
Karsten Hopp 201b6c
--- src/main.c	2010-12-17 17:47:41.000000000 +0100
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 7,16 ****
Karsten Hopp 201b6c
   * See README.txt for an overview of the Vim source code.
Karsten Hopp 201b6c
   */
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
- #if defined(MSDOS) || defined(WIN16) || defined(WIN32) || defined(_WIN64)
Karsten Hopp 201b6c
- # include "vimio.h"		/* for close() and dup() */
Karsten Hopp 201b6c
- #endif
Karsten Hopp 201b6c
- 
Karsten Hopp 201b6c
  #define EXTERN
Karsten Hopp 201b6c
  #include "vim.h"
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
--- 7,12 ----
Karsten Hopp 201b6c
*** ../vim-7.3.084/src/memfile.c	2010-12-17 16:27:10.000000000 +0100
Karsten Hopp 201b6c
--- src/memfile.c	2010-12-17 17:47:54.000000000 +0100
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 32,41 ****
Karsten Hopp 201b6c
   * file is opened.
Karsten Hopp 201b6c
   */
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
- #if defined(MSDOS) || defined(WIN16) || defined(WIN32) || defined(_WIN64)
Karsten Hopp 201b6c
- # include "vimio.h"	/* for lseek(), must be before vim.h */
Karsten Hopp 201b6c
- #endif
Karsten Hopp 201b6c
- 
Karsten Hopp 201b6c
  #include "vim.h"
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
  /*
Karsten Hopp 201b6c
--- 32,37 ----
Karsten Hopp 201b6c
*** ../vim-7.3.084/src/memline.c	2010-12-17 16:27:10.000000000 +0100
Karsten Hopp 201b6c
--- src/memline.c	2010-12-17 17:48:06.000000000 +0100
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 42,51 ****
Karsten Hopp 201b6c
   *  mf_get().
Karsten Hopp 201b6c
   */
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
- #if defined(MSDOS) || defined(WIN16) || defined(WIN32) || defined(_WIN64)
Karsten Hopp 201b6c
- # include "vimio.h"	/* for mch_open(), must be before vim.h */
Karsten Hopp 201b6c
- #endif
Karsten Hopp 201b6c
- 
Karsten Hopp 201b6c
  #include "vim.h"
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
  #ifndef UNIX		/* it's in os_unix.h for Unix */
Karsten Hopp 201b6c
--- 42,47 ----
Karsten Hopp 201b6c
*** ../vim-7.3.084/src/netbeans.c	2010-12-17 12:19:14.000000000 +0100
Karsten Hopp 201b6c
--- src/netbeans.c	2010-12-17 17:48:19.000000000 +0100
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 16,25 ****
Karsten Hopp 201b6c
   * See ":help netbeans-protocol" for explanation.
Karsten Hopp 201b6c
   */
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
- #if defined(MSDOS) || defined(WIN16) || defined(WIN32) || defined(_WIN64)
Karsten Hopp 201b6c
- # include "vimio.h"	/* for mch_open(), must be before vim.h */
Karsten Hopp 201b6c
- #endif
Karsten Hopp 201b6c
- 
Karsten Hopp 201b6c
  #include "vim.h"
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
  #if defined(FEAT_NETBEANS_INTG) || defined(PROTO)
Karsten Hopp 201b6c
--- 16,21 ----
Karsten Hopp 201b6c
*** ../vim-7.3.084/src/os_msdos.c	2010-08-15 21:57:25.000000000 +0200
Karsten Hopp 201b6c
--- src/os_msdos.c	2010-12-17 17:48:40.000000000 +0100
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 21,27 ****
Karsten Hopp 201b6c
   * Some functions are also used for Win16 (MS-Windows 3.1).
Karsten Hopp 201b6c
   */
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
- #include "vimio.h"
Karsten Hopp 201b6c
  #include "vim.h"
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
  #include <conio.h>
Karsten Hopp 201b6c
--- 21,26 ----
Karsten Hopp 201b6c
*** ../vim-7.3.084/src/os_mswin.c	2010-10-23 14:02:48.000000000 +0200
Karsten Hopp 201b6c
--- src/os_mswin.c	2010-12-17 17:48:51.000000000 +0100
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 22,28 ****
Karsten Hopp 201b6c
  # endif
Karsten Hopp 201b6c
  #endif
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
- #include "vimio.h"
Karsten Hopp 201b6c
  #include "vim.h"
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
  #ifdef WIN16
Karsten Hopp 201b6c
--- 22,27 ----
Karsten Hopp 201b6c
*** ../vim-7.3.084/src/os_win16.c	2010-08-15 21:57:32.000000000 +0200
Karsten Hopp 201b6c
--- src/os_win16.c	2010-12-17 17:49:02.000000000 +0100
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 20,26 ****
Karsten Hopp 201b6c
  # pragma warn -obs
Karsten Hopp 201b6c
  #endif
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
- #include "vimio.h"
Karsten Hopp 201b6c
  #include "vim.h"
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
  #include <dos.h>
Karsten Hopp 201b6c
--- 20,25 ----
Karsten Hopp 201b6c
*** ../vim-7.3.084/src/os_win32.c	2010-11-24 12:35:14.000000000 +0100
Karsten Hopp 201b6c
--- src/os_win32.c	2010-12-17 17:49:11.000000000 +0100
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 20,26 ****
Karsten Hopp 201b6c
   * Roger Knobbe <rogerk@wonderware.com> did the initial port of Vim 3.0.
Karsten Hopp 201b6c
   */
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
- #include "vimio.h"
Karsten Hopp 201b6c
  #include "vim.h"
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
  #ifdef FEAT_MZSCHEME
Karsten Hopp 201b6c
--- 20,25 ----
Karsten Hopp 201b6c
*** ../vim-7.3.084/src/spell.c	2010-12-08 17:09:27.000000000 +0100
Karsten Hopp 201b6c
--- src/spell.c	2010-12-17 17:49:24.000000000 +0100
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 303,312 ****
Karsten Hopp 201b6c
   *			    few bytes as possible, see offset2bytes())
Karsten Hopp 201b6c
   */
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
- #if defined(MSDOS) || defined(WIN16) || defined(WIN32) || defined(_WIN64)
Karsten Hopp 201b6c
- # include "vimio.h"	/* for lseek(), must be before vim.h */
Karsten Hopp 201b6c
- #endif
Karsten Hopp 201b6c
- 
Karsten Hopp 201b6c
  #include "vim.h"
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
  #if defined(FEAT_SPELL) || defined(PROTO)
Karsten Hopp 201b6c
--- 303,308 ----
Karsten Hopp 201b6c
*** ../vim-7.3.084/src/tag.c	2010-09-21 16:56:29.000000000 +0200
Karsten Hopp 201b6c
--- src/tag.c	2010-12-17 17:49:35.000000000 +0100
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 11,20 ****
Karsten Hopp 201b6c
   * Code to handle tags and the tag stack
Karsten Hopp 201b6c
   */
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
- #if defined(MSDOS) || defined(WIN16) || defined(WIN32) || defined(_WIN64)
Karsten Hopp 201b6c
- # include "vimio.h"	/* for lseek(), must be before vim.h */
Karsten Hopp 201b6c
- #endif
Karsten Hopp 201b6c
- 
Karsten Hopp 201b6c
  #include "vim.h"
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
  /*
Karsten Hopp 201b6c
--- 11,16 ----
Karsten Hopp 201b6c
*** ../vim-7.3.084/src/undo.c	2010-12-17 16:27:10.000000000 +0100
Karsten Hopp 201b6c
--- src/undo.c	2010-12-17 17:49:59.000000000 +0100
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 81,90 ****
Karsten Hopp 201b6c
  #define UH_MAGIC 0x18dade	/* value for uh_magic when in use */
Karsten Hopp 201b6c
  #define UE_MAGIC 0xabc123	/* value for ue_magic when in use */
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
- #if defined(MSDOS) || defined(WIN16) || defined(WIN32) || defined(_WIN64)
Karsten Hopp 201b6c
- # include "vimio.h"	/* for vim_read(), must be before vim.h */
Karsten Hopp 201b6c
- #endif
Karsten Hopp 201b6c
- 
Karsten Hopp 201b6c
  #include "vim.h"
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
  static void u_unch_branch __ARGS((u_header_T *uhp));
Karsten Hopp 201b6c
--- 81,86 ----
Karsten Hopp 201b6c
*** ../vim-7.3.084/src/vim.h	2010-12-17 16:27:10.000000000 +0100
Karsten Hopp 201b6c
--- src/vim.h	2010-12-17 17:51:43.000000000 +0100
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 27,32 ****
Karsten Hopp 201b6c
--- 27,37 ----
Karsten Hopp 201b6c
  # endif
Karsten Hopp 201b6c
  #endif
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
+ #if defined(MSDOS) || defined(WIN16) || defined(WIN32) || defined(_WIN64) \
Karsten Hopp 201b6c
+ 	|| defined(__EMX__)
Karsten Hopp 201b6c
+ # include "vimio.h"
Karsten Hopp 201b6c
+ #endif
Karsten Hopp 201b6c
+ 
Karsten Hopp 201b6c
  /* ============ the header file puzzle (ca. 50-100 pieces) ========= */
Karsten Hopp 201b6c
  
Karsten Hopp 201b6c
  #ifdef HAVE_CONFIG_H	/* GNU autoconf (or something else) was here */
Karsten Hopp 201b6c
*** ../vim-7.3.084/src/version.c	2010-12-17 17:35:05.000000000 +0100
Karsten Hopp 201b6c
--- src/version.c	2010-12-17 17:55:39.000000000 +0100
Karsten Hopp 201b6c
***************
Karsten Hopp 201b6c
*** 716,717 ****
Karsten Hopp 201b6c
--- 716,719 ----
Karsten Hopp 201b6c
  {   /* Add new patch number below this line */
Karsten Hopp 201b6c
+ /**/
Karsten Hopp 201b6c
+     85,
Karsten Hopp 201b6c
  /**/
Karsten Hopp 201b6c
Karsten Hopp 201b6c
-- 
Karsten Hopp 201b6c
How To Keep A Healthy Level Of Insanity:
Karsten Hopp 201b6c
14. Put mosquito netting around your work area. Play a tape of jungle
Karsten Hopp 201b6c
    sounds all day.
Karsten Hopp 201b6c
Karsten Hopp 201b6c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 201b6c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 201b6c
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 201b6c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///