Karsten Hopp 21c82f
To: vim-dev@vim.org
Karsten Hopp 21c82f
Subject: Patch 7.0.108 (extra)
Karsten Hopp 21c82f
Fcc: outbox
Karsten Hopp 21c82f
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 21c82f
Mime-Version: 1.0
Karsten Hopp 21c82f
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 21c82f
Content-Transfer-Encoding: 8bit
Karsten Hopp 21c82f
------------
Karsten Hopp 21c82f
Karsten Hopp 21c82f
Patch 7.0.108 (extra)
Karsten Hopp 21c82f
Problem:    Amiga: Compilation problem.
Karsten Hopp 21c82f
Solution:   Have mch_mkdir() return a failure flag. (Willy Catteau)
Karsten Hopp 21c82f
Files:	    src/os_amiga.c, src/proto/os_amiga.pro
Karsten Hopp 21c82f
Karsten Hopp 21c82f
Karsten Hopp 21c82f
*** ../vim-7.0.107/src/os_amiga.c	Tue Mar  7 23:38:27 2006
Karsten Hopp 21c82f
--- src/os_amiga.c	Thu Sep 14 21:29:03 2006
Karsten Hopp 21c82f
***************
Karsten Hopp 21c82f
*** 799,805 ****
Karsten Hopp 21c82f
  /*
Karsten Hopp 21c82f
   * Create directory "name".
Karsten Hopp 21c82f
   */
Karsten Hopp 21c82f
!     void
Karsten Hopp 21c82f
  mch_mkdir(name)
Karsten Hopp 21c82f
      char_u	*name;
Karsten Hopp 21c82f
  {
Karsten Hopp 21c82f
--- 799,805 ----
Karsten Hopp 21c82f
  /*
Karsten Hopp 21c82f
   * Create directory "name".
Karsten Hopp 21c82f
   */
Karsten Hopp 21c82f
!     int
Karsten Hopp 21c82f
  mch_mkdir(name)
Karsten Hopp 21c82f
      char_u	*name;
Karsten Hopp 21c82f
  {
Karsten Hopp 21c82f
***************
Karsten Hopp 21c82f
*** 807,813 ****
Karsten Hopp 21c82f
--- 807,817 ----
Karsten Hopp 21c82f
  
Karsten Hopp 21c82f
      lock = CreateDir(name);
Karsten Hopp 21c82f
      if (lock != NULL)
Karsten Hopp 21c82f
+     {
Karsten Hopp 21c82f
  	UnLock(lock);
Karsten Hopp 21c82f
+ 	return 0;
Karsten Hopp 21c82f
+     }
Karsten Hopp 21c82f
+     return -1;
Karsten Hopp 21c82f
  }
Karsten Hopp 21c82f
  
Karsten Hopp 21c82f
  /*
Karsten Hopp 21c82f
*** ../vim-7.0.107/src/proto/os_amiga.pro	Fri Mar 24 22:41:43 2006
Karsten Hopp 21c82f
--- src/proto/os_amiga.pro	Thu Sep 14 21:29:32 2006
Karsten Hopp 21c82f
***************
Karsten Hopp 21c82f
*** 25,31 ****
Karsten Hopp 21c82f
  extern int mch_setperm __ARGS((char_u *name, long perm));
Karsten Hopp 21c82f
  extern void mch_hide __ARGS((char_u *name));
Karsten Hopp 21c82f
  extern int mch_isdir __ARGS((char_u *name));
Karsten Hopp 21c82f
! extern void mch_mkdir __ARGS((char_u *name));
Karsten Hopp 21c82f
  extern int mch_can_exe __ARGS((char_u *name));
Karsten Hopp 21c82f
  extern int mch_nodetype __ARGS((char_u *name));
Karsten Hopp 21c82f
  extern void mch_early_init __ARGS((void));
Karsten Hopp 21c82f
--- 25,31 ----
Karsten Hopp 21c82f
  extern int mch_setperm __ARGS((char_u *name, long perm));
Karsten Hopp 21c82f
  extern void mch_hide __ARGS((char_u *name));
Karsten Hopp 21c82f
  extern int mch_isdir __ARGS((char_u *name));
Karsten Hopp 21c82f
! extern int mch_mkdir __ARGS((char_u *name));
Karsten Hopp 21c82f
  extern int mch_can_exe __ARGS((char_u *name));
Karsten Hopp 21c82f
  extern int mch_nodetype __ARGS((char_u *name));
Karsten Hopp 21c82f
  extern void mch_early_init __ARGS((void));
Karsten Hopp 21c82f
*** ../vim-7.0.107/src/version.c	Thu Sep 14 21:04:09 2006
Karsten Hopp 21c82f
--- src/version.c	Thu Sep 14 21:34:33 2006
Karsten Hopp 21c82f
***************
Karsten Hopp 21c82f
*** 668,669 ****
Karsten Hopp 21c82f
--- 668,671 ----
Karsten Hopp 21c82f
  {   /* Add new patch number below this line */
Karsten Hopp 21c82f
+ /**/
Karsten Hopp 21c82f
+     108,
Karsten Hopp 21c82f
  /**/
Karsten Hopp 21c82f
Karsten Hopp 21c82f
-- 
Karsten Hopp 21c82f
BEDEVERE: Look!  It's the old man from scene 24 - what's he Doing here?
Karsten Hopp 21c82f
ARTHUR:   He is the keeper of the Bridge.  He asks each traveler five
Karsten Hopp 21c82f
          questions ...
Karsten Hopp 21c82f
GALAHAD:  Three questions.
Karsten Hopp 21c82f
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 21c82f
Karsten Hopp 21c82f
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 21c82f
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 21c82f
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 21c82f
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///