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.1053 < prev    next >
Encoding:
Internet Message Format  |  2013-05-28  |  4.2 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.1053
  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.1053
  11. Problem:    Python: no flag for types with tp_traverse+tp_clear.
  12. Solution:   Python patch 14: Add Py_TPFLAGS_HAVE_GC. (ZyX)
  13. Files:        src/if_py_both.h
  14.  
  15.  
  16. *** ../vim-7.3.1052/src/if_py_both.h    2013-05-29 22:52:29.000000000 +0200
  17. --- src/if_py_both.h    2013-05-29 22:55:08.000000000 +0200
  18. ***************
  19. *** 4461,4467 ****
  20.       vim_memset(&IterType, 0, sizeof(IterType));
  21.       IterType.tp_name = "vim.iter";
  22.       IterType.tp_basicsize = sizeof(IterObject);
  23. !     IterType.tp_flags = Py_TPFLAGS_DEFAULT;
  24.       IterType.tp_doc = "generic iterator object";
  25.       IterType.tp_iter = (getiterfunc)IterIter;
  26.       IterType.tp_iternext = (iternextfunc)IterNext;
  27. --- 4461,4467 ----
  28.       vim_memset(&IterType, 0, sizeof(IterType));
  29.       IterType.tp_name = "vim.iter";
  30.       IterType.tp_basicsize = sizeof(IterObject);
  31. !     IterType.tp_flags = Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC;
  32.       IterType.tp_doc = "generic iterator object";
  33.       IterType.tp_iter = (getiterfunc)IterIter;
  34.       IterType.tp_iternext = (iternextfunc)IterNext;
  35. ***************
  36. *** 4495,4501 ****
  37.       WindowType.tp_basicsize = sizeof(WindowObject);
  38.       WindowType.tp_dealloc = (destructor)WindowDestructor;
  39.       WindowType.tp_repr = (reprfunc)WindowRepr;
  40. !     WindowType.tp_flags = Py_TPFLAGS_DEFAULT;
  41.       WindowType.tp_doc = "vim Window object";
  42.       WindowType.tp_methods = WindowMethods;
  43.       WindowType.tp_traverse = (traverseproc)WindowTraverse;
  44. --- 4495,4501 ----
  45.       WindowType.tp_basicsize = sizeof(WindowObject);
  46.       WindowType.tp_dealloc = (destructor)WindowDestructor;
  47.       WindowType.tp_repr = (reprfunc)WindowRepr;
  48. !     WindowType.tp_flags = Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC;
  49.       WindowType.tp_doc = "vim Window object";
  50.       WindowType.tp_methods = WindowMethods;
  51.       WindowType.tp_traverse = (traverseproc)WindowTraverse;
  52. ***************
  53. *** 4558,4564 ****
  54.       RangeType.tp_repr = (reprfunc)RangeRepr;
  55.       RangeType.tp_as_sequence = &RangeAsSeq;
  56.       RangeType.tp_as_mapping = &RangeAsMapping;
  57. !     RangeType.tp_flags = Py_TPFLAGS_DEFAULT;
  58.       RangeType.tp_doc = "vim Range object";
  59.       RangeType.tp_methods = RangeMethods;
  60.       RangeType.tp_traverse = (traverseproc)RangeTraverse;
  61. --- 4558,4564 ----
  62.       RangeType.tp_repr = (reprfunc)RangeRepr;
  63.       RangeType.tp_as_sequence = &RangeAsSeq;
  64.       RangeType.tp_as_mapping = &RangeAsMapping;
  65. !     RangeType.tp_flags = Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC;
  66.       RangeType.tp_doc = "vim Range object";
  67.       RangeType.tp_methods = RangeMethods;
  68.       RangeType.tp_traverse = (traverseproc)RangeTraverse;
  69. ***************
  70. *** 4637,4643 ****
  71.       vim_memset(&OptionsType, 0, sizeof(OptionsType));
  72.       OptionsType.tp_name = "vim.options";
  73.       OptionsType.tp_basicsize = sizeof(OptionsObject);
  74. !     OptionsType.tp_flags = Py_TPFLAGS_DEFAULT;
  75.       OptionsType.tp_doc = "object for manipulating options";
  76.       OptionsType.tp_as_mapping = &OptionsAsMapping;
  77.       OptionsType.tp_dealloc = (destructor)OptionsDestructor;
  78. --- 4637,4643 ----
  79.       vim_memset(&OptionsType, 0, sizeof(OptionsType));
  80.       OptionsType.tp_name = "vim.options";
  81.       OptionsType.tp_basicsize = sizeof(OptionsObject);
  82. !     OptionsType.tp_flags = Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC;
  83.       OptionsType.tp_doc = "object for manipulating options";
  84.       OptionsType.tp_as_mapping = &OptionsAsMapping;
  85.       OptionsType.tp_dealloc = (destructor)OptionsDestructor;
  86. *** ../vim-7.3.1052/src/version.c    2013-05-29 22:52:29.000000000 +0200
  87. --- src/version.c    2013-05-29 22:54:46.000000000 +0200
  88. ***************
  89. *** 730,731 ****
  90. --- 730,733 ----
  91.   {   /* Add new patch number below this line */
  92. + /**/
  93. +     1053,
  94.   /**/
  95.  
  96. -- 
  97. hundred-and-one symptoms of being an internet addict:
  98. 26. You check your mail. It says "no new messages." So you check it again.
  99.  
  100.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  101. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  102. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  103.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  104.