changeset 42895:ea91a126c803

rust-cpython: rename py_shared_iterator_impl to py_shared_iterator It's a public interface now.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 08 Sep 2019 12:26:12 +0900
parents 67853749961b
children 74d67c645278
files rust/hg-cpython/src/dirstate/copymap.rs rust/hg-cpython/src/dirstate/dirs_multiset.rs rust/hg-cpython/src/dirstate/dirstate_map.rs rust/hg-cpython/src/ref_sharing.rs
diffstat 4 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/rust/hg-cpython/src/dirstate/copymap.rs	Sun Sep 08 12:23:18 2019 +0900
+++ b/rust/hg-cpython/src/dirstate/copymap.rs	Sun Sep 08 12:26:12 2019 +0900
@@ -98,7 +98,7 @@
     }
 }
 
-py_shared_iterator_impl!(
+py_shared_iterator!(
     CopyMapKeysIterator,
     DirstateMapLeakedRef,
     CopyMapIter<'static>,
@@ -106,7 +106,7 @@
     Option<PyBytes>
 );
 
-py_shared_iterator_impl!(
+py_shared_iterator!(
     CopyMapItemsIterator,
     DirstateMapLeakedRef,
     CopyMapIter<'static>,
--- a/rust/hg-cpython/src/dirstate/dirs_multiset.rs	Sun Sep 08 12:23:18 2019 +0900
+++ b/rust/hg-cpython/src/dirstate/dirs_multiset.rs	Sun Sep 08 12:26:12 2019 +0900
@@ -121,7 +121,7 @@
     }
 }
 
-py_shared_iterator_impl!(
+py_shared_iterator!(
     DirsMultisetKeysIterator,
     DirsMultisetLeakedRef,
     DirsMultisetIter<'static>,
--- a/rust/hg-cpython/src/dirstate/dirstate_map.rs	Sun Sep 08 12:23:18 2019 +0900
+++ b/rust/hg-cpython/src/dirstate/dirstate_map.rs	Sun Sep 08 12:26:12 2019 +0900
@@ -484,7 +484,7 @@
 
 py_shared_ref!(DirstateMap, RustDirstateMap, inner, DirstateMapLeakedRef,);
 
-py_shared_iterator_impl!(
+py_shared_iterator!(
     DirstateMapKeysIterator,
     DirstateMapLeakedRef,
     StateMapIter<'static>,
@@ -492,7 +492,7 @@
     Option<PyBytes>
 );
 
-py_shared_iterator_impl!(
+py_shared_iterator!(
     DirstateMapItemsIterator,
     DirstateMapLeakedRef,
     StateMapIter<'static>,
--- a/rust/hg-cpython/src/ref_sharing.rs	Sun Sep 08 12:23:18 2019 +0900
+++ b/rust/hg-cpython/src/ref_sharing.rs	Sun Sep 08 12:26:12 2019 +0900
@@ -193,7 +193,7 @@
 /// that will be shared.
 /// * `$leaked` is the identifier to give to the struct that will manage
 /// references to `$name`, to be used for example in other macros like
-/// `py_shared_iterator_impl`.
+/// `py_shared_iterator`.
 ///
 /// # Example
 ///
@@ -332,7 +332,7 @@
 ///
 /// py_shared_ref!(MyType, MyStruct, inner, MyTypeLeakedRef);
 ///
-/// py_shared_iterator_impl!(
+/// py_shared_iterator!(
 ///     MyTypeItemsIterator,
 ///     MyTypeLeakedRef,
 ///     HashMap<'static, Vec<u8>, Vec<u8>>,
@@ -340,7 +340,7 @@
 ///     Option<(PyBytes, PyBytes)>
 /// );
 /// ```
-macro_rules! py_shared_iterator_impl {
+macro_rules! py_shared_iterator {
     (
         $name: ident,
         $leaked: ident,