Karsten Hopp 6fb3cf
To: vim_dev@googlegroups.com
Karsten Hopp 6fb3cf
Subject: Patch 7.3.798
Karsten Hopp 6fb3cf
Fcc: outbox
Karsten Hopp 6fb3cf
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 6fb3cf
Mime-Version: 1.0
Karsten Hopp 6fb3cf
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 6fb3cf
Content-Transfer-Encoding: 8bit
Karsten Hopp 6fb3cf
------------
Karsten Hopp 6fb3cf
Karsten Hopp 6fb3cf
Patch 7.3.798 (after 7.3.791)
Karsten Hopp 6fb3cf
Problem:    MzScheme: circular list does not work correctly.
Karsten Hopp 6fb3cf
Solution:   Separate Mac-specific code from generic code. (Sergey Khorev)
Karsten Hopp 6fb3cf
Files:	    src/if_mzsch.c, src/testdir/test70.in
Karsten Hopp 6fb3cf
Karsten Hopp 6fb3cf
Karsten Hopp 6fb3cf
*** ../vim-7.3.797/src/if_mzsch.c	2013-01-30 17:41:43.000000000 +0100
Karsten Hopp 6fb3cf
--- src/if_mzsch.c	2013-01-31 21:00:02.000000000 +0100
Karsten Hopp 6fb3cf
***************
Karsten Hopp 6fb3cf
*** 965,970 ****
Karsten Hopp 6fb3cf
--- 965,971 ----
Karsten Hopp 6fb3cf
  #ifdef MZSCHEME_COLLECTS
Karsten Hopp 6fb3cf
      /* setup 'current-library-collection-paths' parameter */
Karsten Hopp 6fb3cf
  # if MZSCHEME_VERSION_MAJOR >= 299
Karsten Hopp 6fb3cf
+ #  ifdef MACOS
Karsten Hopp 6fb3cf
      {
Karsten Hopp 6fb3cf
  	Scheme_Object	*coll_byte_string = NULL;
Karsten Hopp 6fb3cf
  	Scheme_Object	*coll_char_string = NULL;
Karsten Hopp 6fb3cf
***************
Karsten Hopp 6fb3cf
*** 985,990 ****
Karsten Hopp 6fb3cf
--- 986,1021 ----
Karsten Hopp 6fb3cf
  	MZ_GC_CHECK();
Karsten Hopp 6fb3cf
  	MZ_GC_UNREG();
Karsten Hopp 6fb3cf
      }
Karsten Hopp 6fb3cf
+ #  else
Karsten Hopp 6fb3cf
+    {
Karsten Hopp 6fb3cf
+ 	Scheme_Object	*coll_byte_string = NULL;
Karsten Hopp 6fb3cf
+ 	Scheme_Object	*coll_char_string = NULL;
Karsten Hopp 6fb3cf
+ 	Scheme_Object	*coll_path = NULL;
Karsten Hopp 6fb3cf
+ 	Scheme_Object	*coll_pair = NULL;
Karsten Hopp 6fb3cf
+ 	Scheme_Config	*config = NULL;
Karsten Hopp 6fb3cf
+ 
Karsten Hopp 6fb3cf
+ 	MZ_GC_DECL_REG(5);
Karsten Hopp 6fb3cf
+ 	MZ_GC_VAR_IN_REG(0, coll_byte_string);
Karsten Hopp 6fb3cf
+ 	MZ_GC_VAR_IN_REG(1, coll_char_string);
Karsten Hopp 6fb3cf
+ 	MZ_GC_VAR_IN_REG(2, coll_path);
Karsten Hopp 6fb3cf
+ 	MZ_GC_VAR_IN_REG(3, coll_pair);
Karsten Hopp 6fb3cf
+ 	MZ_GC_VAR_IN_REG(4, config);
Karsten Hopp 6fb3cf
+ 	MZ_GC_REG();
Karsten Hopp 6fb3cf
+ 	coll_byte_string = scheme_make_byte_string(MZSCHEME_COLLECTS);
Karsten Hopp 6fb3cf
+ 	MZ_GC_CHECK();
Karsten Hopp 6fb3cf
+ 	coll_char_string = scheme_byte_string_to_char_string(coll_byte_string);
Karsten Hopp 6fb3cf
+ 	MZ_GC_CHECK();
Karsten Hopp 6fb3cf
+ 	coll_path = scheme_char_string_to_path(coll_char_string);
Karsten Hopp 6fb3cf
+ 	MZ_GC_CHECK();
Karsten Hopp 6fb3cf
+ 	coll_pair = scheme_make_pair(coll_path, scheme_null);
Karsten Hopp 6fb3cf
+ 	MZ_GC_CHECK();
Karsten Hopp 6fb3cf
+ 	config = scheme_current_config();
Karsten Hopp 6fb3cf
+ 	MZ_GC_CHECK();
Karsten Hopp 6fb3cf
+ 	scheme_set_param(config, MZCONFIG_COLLECTION_PATHS, coll_pair);
Karsten Hopp 6fb3cf
+ 	MZ_GC_CHECK();
Karsten Hopp 6fb3cf
+ 	MZ_GC_UNREG();
Karsten Hopp 6fb3cf
+     }
Karsten Hopp 6fb3cf
+ #  endif
Karsten Hopp 6fb3cf
  # else
Karsten Hopp 6fb3cf
      {
Karsten Hopp 6fb3cf
  	Scheme_Object	*coll_string = NULL;
Karsten Hopp 6fb3cf
*** ../vim-7.3.797/src/testdir/test70.in	2013-01-30 14:55:35.000000000 +0100
Karsten Hopp 6fb3cf
--- src/testdir/test70.in	2013-01-31 21:00:06.000000000 +0100
Karsten Hopp 6fb3cf
***************
Karsten Hopp 6fb3cf
*** 38,45 ****
Karsten Hopp 6fb3cf
  :" circular list (at the same time test lists containing lists)
Karsten Hopp 6fb3cf
  :mz (set-car! (cddr l) l)
Karsten Hopp 6fb3cf
  :let l2 = mzeval("h")["list"]
Karsten Hopp 6fb3cf
! :" bug: this returns item2, but it should be l2
Karsten Hopp 6fb3cf
! :if l2[2] == "item2"
Karsten Hopp 6fb3cf
  :let res = "OK"
Karsten Hopp 6fb3cf
  :else
Karsten Hopp 6fb3cf
  :let res = "FAILED: " . l2[2]
Karsten Hopp 6fb3cf
--- 38,44 ----
Karsten Hopp 6fb3cf
  :" circular list (at the same time test lists containing lists)
Karsten Hopp 6fb3cf
  :mz (set-car! (cddr l) l)
Karsten Hopp 6fb3cf
  :let l2 = mzeval("h")["list"]
Karsten Hopp 6fb3cf
! :if l2[2] == l2
Karsten Hopp 6fb3cf
  :let res = "OK"
Karsten Hopp 6fb3cf
  :else
Karsten Hopp 6fb3cf
  :let res = "FAILED: " . l2[2]
Karsten Hopp 6fb3cf
*** ../vim-7.3.797/src/version.c	2013-01-30 21:55:45.000000000 +0100
Karsten Hopp 6fb3cf
--- src/version.c	2013-01-31 21:01:48.000000000 +0100
Karsten Hopp 6fb3cf
***************
Karsten Hopp 6fb3cf
*** 727,728 ****
Karsten Hopp 6fb3cf
--- 727,730 ----
Karsten Hopp 6fb3cf
  {   /* Add new patch number below this line */
Karsten Hopp 6fb3cf
+ /**/
Karsten Hopp 6fb3cf
+     798,
Karsten Hopp 6fb3cf
  /**/
Karsten Hopp 6fb3cf
Karsten Hopp 6fb3cf
-- 
Karsten Hopp 6fb3cf
Be nice to your kids...  they'll be the ones choosing your nursing home.
Karsten Hopp 6fb3cf
Karsten Hopp 6fb3cf
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 6fb3cf
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 6fb3cf
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 6fb3cf
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///