3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.512
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.512
3ef2ca
Problem:    Cannot generate prototypes for Win32 files and VMS.
3ef2ca
Solution:   Add typedefs and #ifdef
3ef2ca
Files:	    src/os_win32.c, src/gui_w32.c, src/os_vms.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.511/src/os_win32.c	2014-11-05 18:35:59.104397681 +0100
3ef2ca
--- src/os_win32.c	2014-11-12 15:33:13.136237810 +0100
3ef2ca
***************
3ef2ca
*** 135,140 ****
3ef2ca
--- 135,142 ----
3ef2ca
  typedef int SE_OBJECT_TYPE;
3ef2ca
  typedef int PSNSECINFO;
3ef2ca
  typedef int PSNSECINFOW;
3ef2ca
+ typedef int STARTUPINFO;
3ef2ca
+ typedef int PROCESS_INFORMATION;
3ef2ca
  #endif
3ef2ca
  
3ef2ca
  #ifndef FEAT_GUI_W32
3ef2ca
*** ../vim-7.4.511/src/gui_w32.c	2014-10-06 18:10:04.521273516 +0200
3ef2ca
--- src/gui_w32.c	2014-11-12 15:30:44.309980459 +0100
3ef2ca
***************
3ef2ca
*** 29,40 ****
3ef2ca
  # include "gui_dwrite.h"
3ef2ca
  #endif
3ef2ca
  
3ef2ca
! #if defined(FEAT_DIRECTX) || defined(PROTO)
3ef2ca
  static DWriteContext *s_dwc = NULL;
3ef2ca
  static int s_directx_enabled = 0;
3ef2ca
  static int s_directx_load_attempted = 0;
3ef2ca
  # define IS_ENABLE_DIRECTX() (s_directx_enabled && s_dwc != NULL)
3ef2ca
  
3ef2ca
      int
3ef2ca
  directx_enabled(void)
3ef2ca
  {
3ef2ca
--- 29,42 ----
3ef2ca
  # include "gui_dwrite.h"
3ef2ca
  #endif
3ef2ca
  
3ef2ca
! #if defined(FEAT_DIRECTX)
3ef2ca
  static DWriteContext *s_dwc = NULL;
3ef2ca
  static int s_directx_enabled = 0;
3ef2ca
  static int s_directx_load_attempted = 0;
3ef2ca
  # define IS_ENABLE_DIRECTX() (s_directx_enabled && s_dwc != NULL)
3ef2ca
+ #endif
3ef2ca
  
3ef2ca
+ #if defined(FEAT_DIRECTX) || defined(PROTO)
3ef2ca
      int
3ef2ca
  directx_enabled(void)
3ef2ca
  {
3ef2ca
*** ../vim-7.4.511/src/os_vms.c	2014-04-01 21:00:45.436733663 +0200
3ef2ca
--- src/os_vms.c	2014-11-12 15:34:04.223639992 +0100
3ef2ca
***************
3ef2ca
*** 12,18 ****
3ef2ca
  #include	"vim.h"
3ef2ca
  
3ef2ca
  /* define _generic_64 for use in time functions */
3ef2ca
! #ifndef VAX
3ef2ca
  #   include <gen64def.h>
3ef2ca
  #else
3ef2ca
  /* based on Alpha's gen64def.h; the file is absent on VAX */
3ef2ca
--- 12,18 ----
3ef2ca
  #include	"vim.h"
3ef2ca
  
3ef2ca
  /* define _generic_64 for use in time functions */
3ef2ca
! #if !defined(VAX) && !defined(PROTO)
3ef2ca
  #   include <gen64def.h>
3ef2ca
  #else
3ef2ca
  /* based on Alpha's gen64def.h; the file is absent on VAX */
3ef2ca
*** ../vim-7.4.511/src/version.c	2014-11-12 16:05:01.142042845 +0100
3ef2ca
--- src/version.c	2014-11-12 16:05:52.861446039 +0100
3ef2ca
***************
3ef2ca
*** 743,744 ****
3ef2ca
--- 743,746 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     512,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
TIM: But follow only if you are men of valour.  For the entrance to this cave
3ef2ca
     is guarded by a monster, a creature so foul and cruel that no man yet has
3ef2ca
     fought with it and lived.  Bones of full fifty men lie strewn about its
3ef2ca
     lair ...
3ef2ca
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///