To: vim_dev@googlegroups.com Subject: Patch 8.0.1572 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1572 Problem: Mac: getting memory size doesn't work everywhere. Solution: Use MACOS_X instead of MACOS_X_DARWIN. (Kazunobu Kuriyama) Files: src/os_unix.c *** ../vim-8.0.1571/src/os_unix.c 2018-03-05 10:54:49.412071984 +0100 --- src/os_unix.c 2018-03-05 21:57:58.943488995 +0100 *************** *** 563,569 **** # if defined(HAVE_SYS_SYSINFO_H) && defined(HAVE_SYSINFO) # include # endif ! # ifdef MACOS_X_DARWIN # include # include # endif --- 563,569 ---- # if defined(HAVE_SYS_SYSINFO_H) && defined(HAVE_SYSINFO) # include # endif ! # ifdef MACOS_X # include # include # endif *************** *** 578,584 **** long_u mem = 0; long_u shiftright = 10; /* how much to shift "mem" right for Kbyte */ ! # ifdef MACOS_X_DARWIN { /* Mac (Darwin) way of getting the amount of RAM available */ mach_port_t host = mach_host_self(); --- 578,584 ---- long_u mem = 0; long_u shiftright = 10; /* how much to shift "mem" right for Kbyte */ ! # ifdef MACOS_X { /* Mac (Darwin) way of getting the amount of RAM available */ mach_port_t host = mach_host_self(); *** ../vim-8.0.1571/src/version.c 2018-03-05 21:32:23.177321875 +0100 --- src/version.c 2018-03-05 21:58:54.783134078 +0100 *************** *** 768,769 **** --- 768,771 ---- { /* Add new patch number below this line */ + /**/ + 1572, /**/ -- ARTHUR: I've said I'm sorry about the old woman, but from the behind you looked ... DENNIS: What I object to is that you automatically treat me like an inferior... ARTHUR: Well ... I AM king. "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/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///