Karsten Hopp e23139
To: vim_dev@googlegroups.com
Karsten Hopp e23139
Subject: Patch 7.4.772
Karsten Hopp e23139
Fcc: outbox
Karsten Hopp e23139
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp e23139
Mime-Version: 1.0
Karsten Hopp e23139
Content-Type: text/plain; charset=UTF-8
Karsten Hopp e23139
Content-Transfer-Encoding: 8bit
Karsten Hopp e23139
------------
Karsten Hopp e23139
Karsten Hopp e23139
Patch 7.4.772
Karsten Hopp e23139
Problem:    Racket 6.2 is not supported on MS-Windows.
Karsten Hopp e23139
Solution:   Check for the "racket" subdirectory. (Weiyong Mao)
Karsten Hopp e23139
Files:      src/Make_mvc.mak, src/if_mzsch.c
Karsten Hopp e23139
Karsten Hopp e23139
Karsten Hopp e23139
*** ../vim-7.4.771/src/Make_mvc.mak	2015-06-25 16:13:37.779750062 +0200
Karsten Hopp e23139
--- src/Make_mvc.mak	2015-07-10 16:00:35.125149663 +0200
Karsten Hopp e23139
***************
Karsten Hopp e23139
*** 797,803 ****
Karsten Hopp e23139
  !endif
Karsten Hopp e23139
  CFLAGS = $(CFLAGS) -DFEAT_MZSCHEME -I $(MZSCHEME)\include
Karsten Hopp e23139
  !if EXIST("$(MZSCHEME)\collects\scheme\base.ss") \
Karsten Hopp e23139
! 	|| EXIST("$(MZSCHEME)\collects\scheme\base.rkt") 
Karsten Hopp e23139
  # for MzScheme >= 4 we need to include byte code for basic Scheme stuff
Karsten Hopp e23139
  MZSCHEME_EXTRA_DEP = mzscheme_base.c
Karsten Hopp e23139
  CFLAGS = $(CFLAGS) -DINCLUDE_MZSCHEME_BASE
Karsten Hopp e23139
--- 797,804 ----
Karsten Hopp e23139
  !endif
Karsten Hopp e23139
  CFLAGS = $(CFLAGS) -DFEAT_MZSCHEME -I $(MZSCHEME)\include
Karsten Hopp e23139
  !if EXIST("$(MZSCHEME)\collects\scheme\base.ss") \
Karsten Hopp e23139
!       	|| EXIST("$(MZSCHEME)\collects\scheme\base.rkt") \
Karsten Hopp e23139
!       	|| EXIST("$(MZSCHEME)\collects\racket\base.rkt")
Karsten Hopp e23139
  # for MzScheme >= 4 we need to include byte code for basic Scheme stuff
Karsten Hopp e23139
  MZSCHEME_EXTRA_DEP = mzscheme_base.c
Karsten Hopp e23139
  CFLAGS = $(CFLAGS) -DINCLUDE_MZSCHEME_BASE
Karsten Hopp e23139
***************
Karsten Hopp e23139
*** 1170,1176 ****
Karsten Hopp e23139
--- 1171,1181 ----
Karsten Hopp e23139
  	$(CC) $(CFLAGS) if_mzsch.c \
Karsten Hopp e23139
  		-DMZSCHEME_COLLECTS=\"$(MZSCHEME:\=\\)\\collects\"
Karsten Hopp e23139
  mzscheme_base.c:
Karsten Hopp e23139
+ !IF "$(MZSCHEME_MAIN_LIB)" == "racket"
Karsten Hopp e23139
+ 	$(MZSCHEME)\raco ctool --c-mods mzscheme_base.c ++lib scheme/base
Karsten Hopp e23139
+ !ELSE
Karsten Hopp e23139
  	$(MZSCHEME)\mzc --c-mods mzscheme_base.c ++lib scheme/base
Karsten Hopp e23139
+ !ENDIF
Karsten Hopp e23139
  
Karsten Hopp e23139
  $(OUTDIR)/if_python.obj: $(OUTDIR) if_python.c if_py_both.h $(INCL)
Karsten Hopp e23139
  	$(CC) $(CFLAGS) $(PYTHON_INC) if_python.c
Karsten Hopp e23139
*** ../vim-7.4.771/src/if_mzsch.c	2013-05-06 04:06:04.000000000 +0200
Karsten Hopp e23139
--- src/if_mzsch.c	2015-07-10 16:04:38.714856066 +0200
Karsten Hopp e23139
***************
Karsten Hopp e23139
*** 851,857 ****
Karsten Hopp e23139
  #endif
Karsten Hopp e23139
  }
Karsten Hopp e23139
  
Karsten Hopp e23139
! #if MZSCHEME_VERSION_MAJOR >= 500 && defined(WIN32) && defined(USE_THREAD_LOCAL)
Karsten Hopp e23139
  static __declspec(thread) void *tls_space;
Karsten Hopp e23139
  #endif
Karsten Hopp e23139
  
Karsten Hopp e23139
--- 851,863 ----
Karsten Hopp e23139
  #endif
Karsten Hopp e23139
  }
Karsten Hopp e23139
  
Karsten Hopp e23139
! /*
Karsten Hopp e23139
!  * scheme_register_tls_space is only available on 32-bit Windows.
Karsten Hopp e23139
!  * See http://docs.racket-lang.org/inside/im_memoryalloc.html?q=scheme_register_tls_space
Karsten Hopp e23139
!  */
Karsten Hopp e23139
! #if MZSCHEME_VERSION_MAJOR >= 500 && defined(WIN32) \
Karsten Hopp e23139
! 	&& defined(USE_THREAD_LOCAL) && !defined(_WIN64)
Karsten Hopp e23139
! # define HAVE_TLS_SPACE 1
Karsten Hopp e23139
  static __declspec(thread) void *tls_space;
Karsten Hopp e23139
  #endif
Karsten Hopp e23139
  
Karsten Hopp e23139
***************
Karsten Hopp e23139
*** 870,876 ****
Karsten Hopp e23139
      int
Karsten Hopp e23139
  mzscheme_main(int argc, char** argv)
Karsten Hopp e23139
  {
Karsten Hopp e23139
! #if MZSCHEME_VERSION_MAJOR >= 500 && defined(WIN32) && defined(USE_THREAD_LOCAL)
Karsten Hopp e23139
      scheme_register_tls_space(&tls_space, 0);
Karsten Hopp e23139
  #endif
Karsten Hopp e23139
  #ifdef TRAMPOLINED_MZVIM_STARTUP
Karsten Hopp e23139
--- 876,882 ----
Karsten Hopp e23139
      int
Karsten Hopp e23139
  mzscheme_main(int argc, char** argv)
Karsten Hopp e23139
  {
Karsten Hopp e23139
! #ifdef HAVE_TLS_SPACE
Karsten Hopp e23139
      scheme_register_tls_space(&tls_space, 0);
Karsten Hopp e23139
  #endif
Karsten Hopp e23139
  #ifdef TRAMPOLINED_MZVIM_STARTUP
Karsten Hopp e23139
*** ../vim-7.4.771/src/version.c	2015-07-10 14:43:29.560722567 +0200
Karsten Hopp e23139
--- src/version.c	2015-07-10 16:11:54.982749248 +0200
Karsten Hopp e23139
***************
Karsten Hopp e23139
*** 743,744 ****
Karsten Hopp e23139
--- 743,746 ----
Karsten Hopp e23139
  {   /* Add new patch number below this line */
Karsten Hopp e23139
+ /**/
Karsten Hopp e23139
+     772,
Karsten Hopp e23139
  /**/
Karsten Hopp e23139
Karsten Hopp e23139
-- 
Karsten Hopp e23139
hundred-and-one symptoms of being an internet addict:
Karsten Hopp e23139
199. You read this entire list of symptoms, looking for something
Karsten Hopp e23139
     that doesn't describe you.
Karsten Hopp e23139
Karsten Hopp e23139
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp e23139
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp e23139
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp e23139
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///