home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 5.7.009 < prev    next >
Encoding:
Internet Message Format  |  2000-08-06  |  1.6 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 5.7.009 (extra)
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.7.009 (extra)
  8. Problem:    Mac: Crash when using a long file.
  9. Solution:   Don't redefine malloc() and free(), because it will break using
  10.             realloc().
  11. Files:      src/os_mac.h
  12.  
  13.  
  14. *** ../vim-5.7.8/src/os_mac.h    Wed Jun  7 12:30:32 2000
  15. --- src/os_mac.h    Sun Jul 23 12:45:19 2000
  16. ***************
  17. *** 31,42 ****
  18.   #include <stat.h>
  19.   #include <unix.h>
  20.   
  21.   /*
  22.    * Use Macintosh subroutine to alloc the memory.
  23.    * (malloc generate Ptr format hard to debug with ZoneRanger)
  24.    */
  25. ! #define malloc(x) NewPtr(x)
  26. ! #define free(x)   DisposePtr((char *) x)
  27.   
  28.   /* This will go away when CMD_KEY fully tested */
  29.   #define USE_CMD_KEY
  30. --- 31,44 ----
  31.   #include <stat.h>
  32.   #include <unix.h>
  33.   
  34. + #if 0        /* this doesn't work, because realloc() isn't redefined */
  35.   /*
  36.    * Use Macintosh subroutine to alloc the memory.
  37.    * (malloc generate Ptr format hard to debug with ZoneRanger)
  38.    */
  39. ! # define malloc(x) NewPtr(x)
  40. ! # define free(x)   DisposePtr((char *) x)
  41. ! #endif
  42.   
  43.   /* This will go away when CMD_KEY fully tested */
  44.   #define USE_CMD_KEY
  45. *** ../vim-5.7.8/src/version.c    Sat Aug  5 16:53:54 2000
  46. --- src/version.c    Mon Aug  7 09:52:55 2000
  47. ***************
  48. *** 439,440 ****
  49. --- 439,442 ----
  50.   {   /* Add new patch number below this line */
  51. + /**/
  52. +     9,
  53.   /**/
  54.  
  55. -- 
  56. hundred-and-one symptoms of being an internet addict:
  57. 142. You dream about creating the world's greatest web site.
  58.  
  59. ///  Bram Moolenaar     Bram@moolenaar.net     http://www.moolenaar.net  \\\
  60. \\\  Vim: http://www.vim.org      ICCF Holland: http://iccf-holland.org  ///
  61.