From d24ebc7810a1c9b9b357173dee854384ac64657a Mon Sep 17 00:00:00 2001 From: Kristin Rutenkolk Date: Fri, 3 Jan 2025 00:20:03 +0100 Subject: [PATCH] refactor struct-vec-iterator to camel case --- src/clj/coffi/mem.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clj/coffi/mem.clj b/src/clj/coffi/mem.clj index ef2861a..8d1aa87 100644 --- a/src/clj/coffi/mem.clj +++ b/src/clj/coffi/mem.clj @@ -2021,7 +2021,7 @@ (for-each-fixed-length 15) (for-each-fixed-length 16) -(deftype struct-vec-iterator [^coffi.mem.IStructImpl struct-obj ^int size ^{:volatile-mutable true :tag int} i] +(deftype StructVecIterator [^coffi.mem.IStructImpl struct-obj ^int size ^{:volatile-mutable true :tag int} i] java.util.Iterator (forEachRemaining [this action] (case (- size i) @@ -2145,7 +2145,7 @@ (vec-cons [] (list 'cons ['this 'o] (vec (cons 'o as-vec)))) (vec-equiv [] (list 'equiv ['this 'o] (list `= as-vec 'o))) (vec-empty [] (list 'empty ['this] [])) - (vec-iterator [] (list 'iterator ['this] (list `struct-vec-iterator. 'this (count members) 0))) + (vec-iterator [] (list 'iterator ['this] (list `StructVecIterator. 'this (count members) 0))) (vec-foreach [] (concat ['forEach ['this 'action]] (partition 2 (interleave (repeat 'action) as-vec)))) (vec-seq [] (list 'seq ['this] (list `StructVecSeq. 'this 0))) (vec-rseq [] (list 'rseq ['this] (list `seq (vec (reverse as-vec)))))