diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-05-18 17:16:23 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-05-18 17:53:02 +0300 |
commit | c36eb9b291328a5345ad406a28435c97d5ac0155 (patch) | |
tree | 43645c5b1618cc7bb5da0a0f54ccdc8933571c83 /source/blender/blenlib/BLI_iterator.h | |
parent | 849b26c7460ace53573b063349228c1106a22b1d (diff) |
Rename Iterator struct to BLI_Iterator
Diffstat (limited to 'source/blender/blenlib/BLI_iterator.h')
-rw-r--r-- | source/blender/blenlib/BLI_iterator.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenlib/BLI_iterator.h b/source/blender/blenlib/BLI_iterator.h index 26d2728d432..a2ec21d89b3 100644 --- a/source/blender/blenlib/BLI_iterator.h +++ b/source/blender/blenlib/BLI_iterator.h @@ -27,20 +27,20 @@ * \ingroup bli */ -typedef struct Iterator { +typedef struct BLI_Iterator { void *current; /* current pointer we iterate over */ void *data; /* stored data required for this iterator */ bool valid; -} Iterator; +} BLI_Iterator; -typedef void (*IteratorCb)(Iterator *iter); -typedef void (*IteratorBeginCb)(Iterator *iter, void *data_in); +typedef void (*IteratorCb)(BLI_Iterator *iter); +typedef void (*IteratorBeginCb)(BLI_Iterator *iter, void *data_in); #define ITER_BEGIN(callback_begin, callback_next, callback_end, _data_in, _type, _instance) \ { \ _type _instance; \ IteratorCb callback_end_func = callback_end; \ - Iterator iter_macro; \ + BLI_Iterator iter_macro; \ for (callback_begin(&iter_macro, (_data_in)); \ iter_macro.valid; \ callback_next(&iter_macro)) \ |