home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.798 < prev    next >
Encoding:
Internet Message Format  |  2013-01-30  |  3.1 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.798
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.798 (after 7.3.791)
  11. Problem:    MzScheme: circular list does not work correctly.
  12. Solution:   Separate Mac-specific code from generic code. (Sergey Khorev)
  13. Files:        src/if_mzsch.c, src/testdir/test70.in
  14.  
  15.  
  16. *** ../vim-7.3.797/src/if_mzsch.c    2013-01-30 17:41:43.000000000 +0100
  17. --- src/if_mzsch.c    2013-01-31 21:00:02.000000000 +0100
  18. ***************
  19. *** 965,970 ****
  20. --- 965,971 ----
  21.   #ifdef MZSCHEME_COLLECTS
  22.       /* setup 'current-library-collection-paths' parameter */
  23.   # if MZSCHEME_VERSION_MAJOR >= 299
  24. + #  ifdef MACOS
  25.       {
  26.       Scheme_Object    *coll_byte_string = NULL;
  27.       Scheme_Object    *coll_char_string = NULL;
  28. ***************
  29. *** 985,990 ****
  30. --- 986,1021 ----
  31.       MZ_GC_CHECK();
  32.       MZ_GC_UNREG();
  33.       }
  34. + #  else
  35. +    {
  36. +     Scheme_Object    *coll_byte_string = NULL;
  37. +     Scheme_Object    *coll_char_string = NULL;
  38. +     Scheme_Object    *coll_path = NULL;
  39. +     Scheme_Object    *coll_pair = NULL;
  40. +     Scheme_Config    *config = NULL;
  41. +     MZ_GC_DECL_REG(5);
  42. +     MZ_GC_VAR_IN_REG(0, coll_byte_string);
  43. +     MZ_GC_VAR_IN_REG(1, coll_char_string);
  44. +     MZ_GC_VAR_IN_REG(2, coll_path);
  45. +     MZ_GC_VAR_IN_REG(3, coll_pair);
  46. +     MZ_GC_VAR_IN_REG(4, config);
  47. +     MZ_GC_REG();
  48. +     coll_byte_string = scheme_make_byte_string(MZSCHEME_COLLECTS);
  49. +     MZ_GC_CHECK();
  50. +     coll_char_string = scheme_byte_string_to_char_string(coll_byte_string);
  51. +     MZ_GC_CHECK();
  52. +     coll_path = scheme_char_string_to_path(coll_char_string);
  53. +     MZ_GC_CHECK();
  54. +     coll_pair = scheme_make_pair(coll_path, scheme_null);
  55. +     MZ_GC_CHECK();
  56. +     config = scheme_current_config();
  57. +     MZ_GC_CHECK();
  58. +     scheme_set_param(config, MZCONFIG_COLLECTION_PATHS, coll_pair);
  59. +     MZ_GC_CHECK();
  60. +     MZ_GC_UNREG();
  61. +     }
  62. + #  endif
  63.   # else
  64.       {
  65.       Scheme_Object    *coll_string = NULL;
  66. *** ../vim-7.3.797/src/testdir/test70.in    2013-01-30 14:55:35.000000000 +0100
  67. --- src/testdir/test70.in    2013-01-31 21:00:06.000000000 +0100
  68. ***************
  69. *** 38,45 ****
  70.   :" circular list (at the same time test lists containing lists)
  71.   :mz (set-car! (cddr l) l)
  72.   :let l2 = mzeval("h")["list"]
  73. ! :" bug: this returns item2, but it should be l2
  74. ! :if l2[2] == "item2"
  75.   :let res = "OK"
  76.   :else
  77.   :let res = "FAILED: " . l2[2]
  78. --- 38,44 ----
  79.   :" circular list (at the same time test lists containing lists)
  80.   :mz (set-car! (cddr l) l)
  81.   :let l2 = mzeval("h")["list"]
  82. ! :if l2[2] == l2
  83.   :let res = "OK"
  84.   :else
  85.   :let res = "FAILED: " . l2[2]
  86. *** ../vim-7.3.797/src/version.c    2013-01-30 21:55:45.000000000 +0100
  87. --- src/version.c    2013-01-31 21:01:48.000000000 +0100
  88. ***************
  89. *** 727,728 ****
  90. --- 727,730 ----
  91.   {   /* Add new patch number below this line */
  92. + /**/
  93. +     798,
  94.   /**/
  95.  
  96. -- 
  97. Be nice to your kids...  they'll be the ones choosing your nursing home.
  98.  
  99.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  100. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  101. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  102.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  103.