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