Karsten Hopp b58004
To: vim-dev@vim.org
Karsten Hopp b58004
Subject: Patch 7.2.303
Karsten Hopp b58004
Fcc: outbox
Karsten Hopp b58004
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp b58004
Mime-Version: 1.0
Karsten Hopp b58004
Content-Type: text/plain; charset=UTF-8
Karsten Hopp b58004
Content-Transfer-Encoding: 8bit
Karsten Hopp b58004
------------
Karsten Hopp b58004
Karsten Hopp b58004
Patch 7.2.303 (after 7.2.294)
Karsten Hopp b58004
Problem:    Can't build on MS-Windows.
Karsten Hopp b58004
Solution:   Add #ifdef around vim_settempdir(). (James Vega)
Karsten Hopp b58004
Files:	    src/fileio.c
Karsten Hopp b58004
Karsten Hopp b58004
Karsten Hopp b58004
*** ../vim-7.2.302/src/fileio.c	2009-11-17 17:13:03.000000000 +0100
Karsten Hopp b58004
--- src/fileio.c	2009-11-18 20:06:55.000000000 +0100
Karsten Hopp b58004
***************
Karsten Hopp b58004
*** 146,152 ****
Karsten Hopp b58004
--- 146,154 ----
Karsten Hopp b58004
  # endif
Karsten Hopp b58004
  #endif
Karsten Hopp b58004
  static int move_lines __ARGS((buf_T *frombuf, buf_T *tobuf));
Karsten Hopp b58004
+ #ifdef TEMPDIRNAMES
Karsten Hopp b58004
  static void vim_settempdir __ARGS((char_u *tempdir));
Karsten Hopp b58004
+ #endif
Karsten Hopp b58004
  #ifdef FEAT_AUTOCMD
Karsten Hopp b58004
  static char *e_auchangedbuf = N_("E812: Autocommands changed buffer or buffer name");
Karsten Hopp b58004
  #endif
Karsten Hopp b58004
***************
Karsten Hopp b58004
*** 6995,7000 ****
Karsten Hopp b58004
--- 6997,7003 ----
Karsten Hopp b58004
  }
Karsten Hopp b58004
  #endif
Karsten Hopp b58004
  
Karsten Hopp b58004
+ #ifdef TEMPDIRNAMES
Karsten Hopp b58004
  /*
Karsten Hopp b58004
   * Directory "tempdir" was created.  Expand this name to a full path and put
Karsten Hopp b58004
   * it in "vim_tempdir".  This avoids that using ":cd" would confuse us.
Karsten Hopp b58004
***************
Karsten Hopp b58004
*** 7021,7026 ****
Karsten Hopp b58004
--- 7024,7030 ----
Karsten Hopp b58004
  	vim_free(buf);
Karsten Hopp b58004
      }
Karsten Hopp b58004
  }
Karsten Hopp b58004
+ #endif
Karsten Hopp b58004
  
Karsten Hopp b58004
  /*
Karsten Hopp b58004
   * vim_tempname(): Return a unique name that can be used for a temp file.
Karsten Hopp b58004
*** ../vim-7.2.302/src/version.c	2009-11-17 17:57:10.000000000 +0100
Karsten Hopp b58004
--- src/version.c	2009-11-18 20:07:58.000000000 +0100
Karsten Hopp b58004
***************
Karsten Hopp b58004
*** 683,684 ****
Karsten Hopp b58004
--- 683,686 ----
Karsten Hopp b58004
  {   /* Add new patch number below this line */
Karsten Hopp b58004
+ /**/
Karsten Hopp b58004
+     303,
Karsten Hopp b58004
  /**/
Karsten Hopp b58004
Karsten Hopp b58004
-- 
Karsten Hopp b58004
BEDEVERE:        Why do you think she is a witch?
Karsten Hopp b58004
SECOND VILLAGER: She turned me into a newt.
Karsten Hopp b58004
BEDEVERE:        A newt?
Karsten Hopp b58004
SECOND VILLAGER: (After looking at himself for some time) I got better.
Karsten Hopp b58004
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp b58004
Karsten Hopp b58004
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp b58004
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp b58004
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp b58004
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///