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