rename BLI_ghashIterator_notDone() -> BLI_ghashIterator_done()
was renamed fairly recently but other similar iterators not negated like this, would prefer to keep it as it was
This commit is contained in:
@@ -330,7 +330,7 @@ struct GHashIterator *ntreeTypeGetIterator(void);
|
|||||||
#define NODE_TREE_TYPES_BEGIN(ntype) \
|
#define NODE_TREE_TYPES_BEGIN(ntype) \
|
||||||
{ \
|
{ \
|
||||||
GHashIterator *__node_tree_type_iter__ = ntreeTypeGetIterator(); \
|
GHashIterator *__node_tree_type_iter__ = ntreeTypeGetIterator(); \
|
||||||
for (; BLI_ghashIterator_notDone(__node_tree_type_iter__); BLI_ghashIterator_step(__node_tree_type_iter__)) { \
|
for (; !BLI_ghashIterator_done(__node_tree_type_iter__); BLI_ghashIterator_step(__node_tree_type_iter__)) { \
|
||||||
bNodeTreeType *ntype = BLI_ghashIterator_getValue(__node_tree_type_iter__);
|
bNodeTreeType *ntype = BLI_ghashIterator_getValue(__node_tree_type_iter__);
|
||||||
|
|
||||||
#define NODE_TREE_TYPES_END \
|
#define NODE_TREE_TYPES_END \
|
||||||
@@ -406,7 +406,7 @@ struct GHashIterator *nodeTypeGetIterator(void);
|
|||||||
#define NODE_TYPES_BEGIN(ntype) \
|
#define NODE_TYPES_BEGIN(ntype) \
|
||||||
{ \
|
{ \
|
||||||
GHashIterator *__node_type_iter__ = nodeTypeGetIterator(); \
|
GHashIterator *__node_type_iter__ = nodeTypeGetIterator(); \
|
||||||
for (; BLI_ghashIterator_notDone(__node_type_iter__); BLI_ghashIterator_step(__node_type_iter__)) { \
|
for (; !BLI_ghashIterator_done(__node_type_iter__); BLI_ghashIterator_step(__node_type_iter__)) { \
|
||||||
bNodeType *ntype = BLI_ghashIterator_getValue(__node_type_iter__);
|
bNodeType *ntype = BLI_ghashIterator_getValue(__node_type_iter__);
|
||||||
|
|
||||||
#define NODE_TYPES_END \
|
#define NODE_TYPES_END \
|
||||||
@@ -426,7 +426,7 @@ const char * nodeStaticSocketInterfaceType(int type, int subtype);
|
|||||||
#define NODE_SOCKET_TYPES_BEGIN(stype) \
|
#define NODE_SOCKET_TYPES_BEGIN(stype) \
|
||||||
{ \
|
{ \
|
||||||
GHashIterator *__node_socket_type_iter__ = nodeSocketTypeGetIterator(); \
|
GHashIterator *__node_socket_type_iter__ = nodeSocketTypeGetIterator(); \
|
||||||
for (; BLI_ghashIterator_notDone(__node_socket_type_iter__); BLI_ghashIterator_step(__node_socket_type_iter__)) { \
|
for (; !BLI_ghashIterator_done(__node_socket_type_iter__); BLI_ghashIterator_step(__node_socket_type_iter__)) { \
|
||||||
bNodeSocketType *stype = BLI_ghashIterator_getValue(__node_socket_type_iter__);
|
bNodeSocketType *stype = BLI_ghashIterator_getValue(__node_socket_type_iter__);
|
||||||
|
|
||||||
#define NODE_SOCKET_TYPES_END \
|
#define NODE_SOCKET_TYPES_END \
|
||||||
@@ -534,11 +534,11 @@ BLI_INLINE void BKE_node_instance_hash_iterator_free(bNode
|
|||||||
BLI_INLINE bNodeInstanceKey BKE_node_instance_hash_iterator_get_key(bNodeInstanceHashIterator *iter) { return *(bNodeInstanceKey *)BLI_ghashIterator_getKey(iter); }
|
BLI_INLINE bNodeInstanceKey BKE_node_instance_hash_iterator_get_key(bNodeInstanceHashIterator *iter) { return *(bNodeInstanceKey *)BLI_ghashIterator_getKey(iter); }
|
||||||
BLI_INLINE void *BKE_node_instance_hash_iterator_get_value(bNodeInstanceHashIterator *iter) { return BLI_ghashIterator_getValue(iter); }
|
BLI_INLINE void *BKE_node_instance_hash_iterator_get_value(bNodeInstanceHashIterator *iter) { return BLI_ghashIterator_getValue(iter); }
|
||||||
BLI_INLINE void BKE_node_instance_hash_iterator_step(bNodeInstanceHashIterator *iter) { BLI_ghashIterator_step(iter); }
|
BLI_INLINE void BKE_node_instance_hash_iterator_step(bNodeInstanceHashIterator *iter) { BLI_ghashIterator_step(iter); }
|
||||||
BLI_INLINE bool BKE_node_instance_hash_iterator_not_done(bNodeInstanceHashIterator *iter) { return BLI_ghashIterator_notDone(iter); }
|
BLI_INLINE bool BKE_node_instance_hash_iterator_done(bNodeInstanceHashIterator *iter) { return BLI_ghashIterator_done(iter); }
|
||||||
|
|
||||||
#define NODE_INSTANCE_HASH_ITER(iter_, hash_) \
|
#define NODE_INSTANCE_HASH_ITER(iter_, hash_) \
|
||||||
for (BKE_node_instance_hash_iterator_init(&iter_, hash_); \
|
for (BKE_node_instance_hash_iterator_init(&iter_, hash_); \
|
||||||
BKE_node_instance_hash_iterator_not_done(&iter_); \
|
BKE_node_instance_hash_iterator_done(&iter_) == false; \
|
||||||
BKE_node_instance_hash_iterator_step(&iter_))
|
BKE_node_instance_hash_iterator_step(&iter_))
|
||||||
|
|
||||||
|
|
||||||
|
@@ -295,7 +295,7 @@ void pbvh_vertex_iter_init(PBVH *bvh, PBVHNode *node,
|
|||||||
vi.mask = &vi.vmask[vi.vert_indices[vi.gx]]; \
|
vi.mask = &vi.vmask[vi.vert_indices[vi.gx]]; \
|
||||||
} \
|
} \
|
||||||
else { \
|
else { \
|
||||||
if (BLI_ghashIterator_notDone(&vi.bm_unique_verts)) {\
|
if (!BLI_ghashIterator_done(&vi.bm_unique_verts)) {\
|
||||||
vi.bm_vert = BLI_ghashIterator_getKey(&vi.bm_unique_verts); \
|
vi.bm_vert = BLI_ghashIterator_getKey(&vi.bm_unique_verts); \
|
||||||
BLI_ghashIterator_step(&vi.bm_unique_verts); \
|
BLI_ghashIterator_step(&vi.bm_unique_verts); \
|
||||||
} \
|
} \
|
||||||
|
@@ -294,7 +294,7 @@ static void build_mesh_leaf_node(PBVH *bvh, PBVHNode *node)
|
|||||||
|
|
||||||
/* Build the vertex list, unique verts first */
|
/* Build the vertex list, unique verts first */
|
||||||
for (iter = BLI_ghashIterator_new(map), i = 0;
|
for (iter = BLI_ghashIterator_new(map), i = 0;
|
||||||
BLI_ghashIterator_notDone(iter);
|
BLI_ghashIterator_done(iter) == false;
|
||||||
BLI_ghashIterator_step(iter), ++i)
|
BLI_ghashIterator_step(iter), ++i)
|
||||||
{
|
{
|
||||||
void *value = BLI_ghashIterator_getValue(iter);
|
void *value = BLI_ghashIterator_getValue(iter);
|
||||||
@@ -1217,7 +1217,7 @@ void BKE_pbvh_get_grid_updates(PBVH *bvh, int clear, void ***gridfaces, int *tot
|
|||||||
faces = MEM_callocN(sizeof(void *) * tot, "PBVH Grid Faces");
|
faces = MEM_callocN(sizeof(void *) * tot, "PBVH Grid Faces");
|
||||||
|
|
||||||
for (hiter = BLI_ghashIterator_new(map), i = 0;
|
for (hiter = BLI_ghashIterator_new(map), i = 0;
|
||||||
BLI_ghashIterator_notDone(hiter);
|
BLI_ghashIterator_done(hiter) == false;
|
||||||
BLI_ghashIterator_step(hiter), ++i)
|
BLI_ghashIterator_step(hiter), ++i)
|
||||||
{
|
{
|
||||||
faces[i] = BLI_ghashIterator_getKey(hiter);
|
faces[i] = BLI_ghashIterator_getKey(hiter);
|
||||||
|
@@ -1034,7 +1034,7 @@ static int sb_detect_aabb_collisionCached(float UNUSED(force[3]), unsigned int U
|
|||||||
|
|
||||||
hash = vertexowner->soft->scratch->colliderhash;
|
hash = vertexowner->soft->scratch->colliderhash;
|
||||||
ihash = BLI_ghashIterator_new(hash);
|
ihash = BLI_ghashIterator_new(hash);
|
||||||
while (BLI_ghashIterator_notDone(ihash) ) {
|
while (!BLI_ghashIterator_done(ihash)) {
|
||||||
|
|
||||||
ccd_Mesh *ccdm = BLI_ghashIterator_getValue (ihash);
|
ccd_Mesh *ccdm = BLI_ghashIterator_getValue (ihash);
|
||||||
ob = BLI_ghashIterator_getKey (ihash);
|
ob = BLI_ghashIterator_getKey (ihash);
|
||||||
@@ -1113,7 +1113,7 @@ static int sb_detect_face_pointCached(float face_v1[3], float face_v2[3], float
|
|||||||
|
|
||||||
hash = vertexowner->soft->scratch->colliderhash;
|
hash = vertexowner->soft->scratch->colliderhash;
|
||||||
ihash = BLI_ghashIterator_new(hash);
|
ihash = BLI_ghashIterator_new(hash);
|
||||||
while (BLI_ghashIterator_notDone(ihash) ) {
|
while (!BLI_ghashIterator_done(ihash)) {
|
||||||
|
|
||||||
ccd_Mesh *ccdm = BLI_ghashIterator_getValue (ihash);
|
ccd_Mesh *ccdm = BLI_ghashIterator_getValue (ihash);
|
||||||
ob = BLI_ghashIterator_getKey (ihash);
|
ob = BLI_ghashIterator_getKey (ihash);
|
||||||
@@ -1205,7 +1205,7 @@ static int sb_detect_face_collisionCached(float face_v1[3], float face_v2[3], fl
|
|||||||
|
|
||||||
hash = vertexowner->soft->scratch->colliderhash;
|
hash = vertexowner->soft->scratch->colliderhash;
|
||||||
ihash = BLI_ghashIterator_new(hash);
|
ihash = BLI_ghashIterator_new(hash);
|
||||||
while (BLI_ghashIterator_notDone(ihash) ) {
|
while (!BLI_ghashIterator_done(ihash)) {
|
||||||
|
|
||||||
ccd_Mesh *ccdm = BLI_ghashIterator_getValue (ihash);
|
ccd_Mesh *ccdm = BLI_ghashIterator_getValue (ihash);
|
||||||
ob = BLI_ghashIterator_getKey (ihash);
|
ob = BLI_ghashIterator_getKey (ihash);
|
||||||
@@ -1433,7 +1433,7 @@ static int sb_detect_edge_collisionCached(float edge_v1[3], float edge_v2[3], fl
|
|||||||
|
|
||||||
hash = vertexowner->soft->scratch->colliderhash;
|
hash = vertexowner->soft->scratch->colliderhash;
|
||||||
ihash = BLI_ghashIterator_new(hash);
|
ihash = BLI_ghashIterator_new(hash);
|
||||||
while (BLI_ghashIterator_notDone(ihash) ) {
|
while (!BLI_ghashIterator_done(ihash)) {
|
||||||
|
|
||||||
ccd_Mesh *ccdm = BLI_ghashIterator_getValue (ihash);
|
ccd_Mesh *ccdm = BLI_ghashIterator_getValue (ihash);
|
||||||
ob = BLI_ghashIterator_getKey (ihash);
|
ob = BLI_ghashIterator_getKey (ihash);
|
||||||
@@ -1763,7 +1763,7 @@ static int sb_detect_vertex_collisionCached(float opco[3], float facenormal[3],
|
|||||||
outerforceaccu[0]=outerforceaccu[1]=outerforceaccu[2]=0.0f;
|
outerforceaccu[0]=outerforceaccu[1]=outerforceaccu[2]=0.0f;
|
||||||
innerforceaccu[0]=innerforceaccu[1]=innerforceaccu[2]=0.0f;
|
innerforceaccu[0]=innerforceaccu[1]=innerforceaccu[2]=0.0f;
|
||||||
/* go */
|
/* go */
|
||||||
while (BLI_ghashIterator_notDone(ihash) ) {
|
while (!BLI_ghashIterator_done(ihash)) {
|
||||||
|
|
||||||
ccd_Mesh *ccdm = BLI_ghashIterator_getValue (ihash);
|
ccd_Mesh *ccdm = BLI_ghashIterator_getValue (ihash);
|
||||||
ob = BLI_ghashIterator_getKey (ihash);
|
ob = BLI_ghashIterator_getKey (ihash);
|
||||||
|
@@ -132,11 +132,11 @@ void BLI_ghashIterator_step(GHashIterator *ghi);
|
|||||||
* \param ghi The iterator.
|
* \param ghi The iterator.
|
||||||
* \return True if done, False otherwise.
|
* \return True if done, False otherwise.
|
||||||
*/
|
*/
|
||||||
bool BLI_ghashIterator_notDone(GHashIterator *ghi);
|
bool BLI_ghashIterator_done(GHashIterator *ghi);
|
||||||
|
|
||||||
#define GHASH_ITER(gh_iter_, ghash_) \
|
#define GHASH_ITER(gh_iter_, ghash_) \
|
||||||
for (BLI_ghashIterator_init(&gh_iter_, ghash_); \
|
for (BLI_ghashIterator_init(&gh_iter_, ghash_); \
|
||||||
BLI_ghashIterator_notDone(&gh_iter_); \
|
BLI_ghashIterator_done(&gh_iter_) == false; \
|
||||||
BLI_ghashIterator_step(&gh_iter_))
|
BLI_ghashIterator_step(&gh_iter_))
|
||||||
|
|
||||||
/* *** */
|
/* *** */
|
||||||
|
@@ -299,9 +299,9 @@ void BLI_ghashIterator_step(GHashIterator *ghi)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bool BLI_ghashIterator_notDone(GHashIterator *ghi)
|
bool BLI_ghashIterator_done(GHashIterator *ghi)
|
||||||
{
|
{
|
||||||
return ghi->curEntry != NULL;
|
return ghi->curEntry == NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***/
|
/***/
|
||||||
|
@@ -896,7 +896,7 @@ static void RIG_reconnectControlBones(RigGraph *rg)
|
|||||||
/* look on deform bones first */
|
/* look on deform bones first */
|
||||||
BLI_ghashIterator_init(&ghi, rg->bones_map);
|
BLI_ghashIterator_init(&ghi, rg->bones_map);
|
||||||
|
|
||||||
for (; BLI_ghashIterator_notDone(&ghi); BLI_ghashIterator_step(&ghi)) {
|
for (; !BLI_ghashIterator_done(&ghi); BLI_ghashIterator_step(&ghi)) {
|
||||||
EditBone *bone = (EditBone *)BLI_ghashIterator_getValue(&ghi);
|
EditBone *bone = (EditBone *)BLI_ghashIterator_getValue(&ghi);
|
||||||
|
|
||||||
/* don't link with parent */
|
/* don't link with parent */
|
||||||
|
@@ -183,7 +183,7 @@ const char *BIF_listTemplates(const bContext *UNUSED(C))
|
|||||||
|
|
||||||
BLI_ghashIterator_init(&ghi, TEMPLATES_HASH);
|
BLI_ghashIterator_init(&ghi, TEMPLATES_HASH);
|
||||||
|
|
||||||
while (BLI_ghashIterator_notDone(&ghi)) {
|
while (!BLI_ghashIterator_done(&ghi)) {
|
||||||
Object *ob = BLI_ghashIterator_getValue(&ghi);
|
Object *ob = BLI_ghashIterator_getValue(&ghi);
|
||||||
int key = GET_INT_FROM_POINTER(BLI_ghashIterator_getKey(&ghi));
|
int key = GET_INT_FROM_POINTER(BLI_ghashIterator_getKey(&ghi));
|
||||||
|
|
||||||
@@ -203,7 +203,7 @@ int BIF_currentTemplate(const bContext *C)
|
|||||||
GHashIterator ghi;
|
GHashIterator ghi;
|
||||||
BLI_ghashIterator_init(&ghi, TEMPLATES_HASH);
|
BLI_ghashIterator_init(&ghi, TEMPLATES_HASH);
|
||||||
|
|
||||||
while (BLI_ghashIterator_notDone(&ghi)) {
|
while (!BLI_ghashIterator_done(&ghi)) {
|
||||||
Object *ob = BLI_ghashIterator_getValue(&ghi);
|
Object *ob = BLI_ghashIterator_getValue(&ghi);
|
||||||
int key = GET_INT_FROM_POINTER(BLI_ghashIterator_getKey(&ghi));
|
int key = GET_INT_FROM_POINTER(BLI_ghashIterator_getKey(&ghi));
|
||||||
|
|
||||||
|
@@ -1661,7 +1661,7 @@ int filterSmartReebGraph(ReebGraph *UNUSED(rg), float UNUSED(threshold))
|
|||||||
float avg_vec[3] = {0, 0, 0};
|
float avg_vec[3] = {0, 0, 0};
|
||||||
|
|
||||||
for (BLI_ghashIterator_init(&ghi, arc->faces);
|
for (BLI_ghashIterator_init(&ghi, arc->faces);
|
||||||
BLI_ghashIterator_notDone(&ghi);
|
BLI_ghashIterator_done(&ghi) == false;
|
||||||
BLI_ghashIterator_step(&ghi))
|
BLI_ghashIterator_step(&ghi))
|
||||||
{
|
{
|
||||||
EditFace *efa = BLI_ghashIterator_getValue(&ghi);
|
EditFace *efa = BLI_ghashIterator_getValue(&ghi);
|
||||||
@@ -2047,7 +2047,7 @@ void mergeArcFaces(ReebGraph *UNUSED(rg), ReebArc *aDst, ReebArc *aSrc)
|
|||||||
GHashIterator ghi;
|
GHashIterator ghi;
|
||||||
|
|
||||||
for (BLI_ghashIterator_init(&ghi, aSrc->faces);
|
for (BLI_ghashIterator_init(&ghi, aSrc->faces);
|
||||||
BLI_ghashIterator_notDone(&ghi);
|
BLI_ghashIterator_done(&ghi) == false;
|
||||||
BLI_ghashIterator_step(&ghi))
|
BLI_ghashIterator_step(&ghi))
|
||||||
{
|
{
|
||||||
EditFace *efa = BLI_ghashIterator_getValue(&ghi);
|
EditFace *efa = BLI_ghashIterator_getValue(&ghi);
|
||||||
|
@@ -676,7 +676,7 @@ static GHash *dupli_keyIndexHash(GHash *keyindex)
|
|||||||
gh = BLI_ghash_ptr_new("dupli_keyIndex gh");
|
gh = BLI_ghash_ptr_new("dupli_keyIndex gh");
|
||||||
|
|
||||||
for (hashIter = BLI_ghashIterator_new(keyindex);
|
for (hashIter = BLI_ghashIterator_new(keyindex);
|
||||||
BLI_ghashIterator_notDone(hashIter);
|
BLI_ghashIterator_done(hashIter) == false;
|
||||||
BLI_ghashIterator_step(hashIter))
|
BLI_ghashIterator_step(hashIter))
|
||||||
{
|
{
|
||||||
void *cv = BLI_ghashIterator_getKey(hashIter);
|
void *cv = BLI_ghashIterator_getKey(hashIter);
|
||||||
|
@@ -853,7 +853,7 @@ static int editsource_exec(bContext *C, wmOperator *op)
|
|||||||
ED_region_do_draw(C, ar);
|
ED_region_do_draw(C, ar);
|
||||||
|
|
||||||
for (BLI_ghashIterator_init(&ghi, ui_editsource_info->hash);
|
for (BLI_ghashIterator_init(&ghi, ui_editsource_info->hash);
|
||||||
BLI_ghashIterator_notDone(&ghi);
|
BLI_ghashIterator_done(&ghi) == false;
|
||||||
BLI_ghashIterator_step(&ghi))
|
BLI_ghashIterator_step(&ghi))
|
||||||
{
|
{
|
||||||
uiBut *but_key = BLI_ghashIterator_getKey(&ghi);
|
uiBut *but_key = BLI_ghashIterator_getKey(&ghi);
|
||||||
|
@@ -2752,7 +2752,7 @@ static void operator_search_cb(const bContext *C, void *UNUSED(arg), const char
|
|||||||
{
|
{
|
||||||
GHashIterator *iter = WM_operatortype_iter();
|
GHashIterator *iter = WM_operatortype_iter();
|
||||||
|
|
||||||
for (; BLI_ghashIterator_notDone(iter); BLI_ghashIterator_step(iter)) {
|
for (; !BLI_ghashIterator_done(iter); BLI_ghashIterator_step(iter)) {
|
||||||
wmOperatorType *ot = BLI_ghashIterator_getValue(iter);
|
wmOperatorType *ot = BLI_ghashIterator_getValue(iter);
|
||||||
|
|
||||||
if ((ot->flag & OPTYPE_INTERNAL) && (G.debug & G_DEBUG_WM) == 0)
|
if ((ot->flag & OPTYPE_INTERNAL) && (G.debug & G_DEBUG_WM) == 0)
|
||||||
|
@@ -712,7 +712,7 @@ static UvSculptData *uv_sculpt_stroke_init(bContext *C, wmOperator *op, const wm
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
/* fill the edges with data */
|
/* fill the edges with data */
|
||||||
for (i = 0; BLI_ghashIterator_notDone(ghi); BLI_ghashIterator_step(ghi)) {
|
for (i = 0; !BLI_ghashIterator_done(ghi); BLI_ghashIterator_step(ghi)) {
|
||||||
data->uvedges[i++] = *((UvEdge *)BLI_ghashIterator_getKey(ghi));
|
data->uvedges[i++] = *((UvEdge *)BLI_ghashIterator_getKey(ghi));
|
||||||
}
|
}
|
||||||
data->totalUvEdges = BLI_ghash_size(edgeHash);
|
data->totalUvEdges = BLI_ghash_size(edgeHash);
|
||||||
|
@@ -745,7 +745,7 @@ static void operator_search_cb(const struct bContext *UNUSED(C), void *UNUSED(ar
|
|||||||
{
|
{
|
||||||
GHashIterator *iter = WM_operatortype_iter();
|
GHashIterator *iter = WM_operatortype_iter();
|
||||||
|
|
||||||
for (; BLI_ghashIterator_notDone(iter); BLI_ghashIterator_step(iter)) {
|
for (; !BLI_ghashIterator_done(iter); BLI_ghashIterator_step(iter)) {
|
||||||
wmOperatorType *ot = BLI_ghashIterator_getValue(iter);
|
wmOperatorType *ot = BLI_ghashIterator_getValue(iter);
|
||||||
|
|
||||||
if (BLI_strcasestr(ot->idname, str)) {
|
if (BLI_strcasestr(ot->idname, str)) {
|
||||||
|
@@ -220,7 +220,7 @@ static GHash *text_autocomplete_build(Text *text)
|
|||||||
TextFormatType *tft;
|
TextFormatType *tft;
|
||||||
tft = ED_text_format_get(text);
|
tft = ED_text_format_get(text);
|
||||||
|
|
||||||
for (; BLI_ghashIterator_notDone(iter); BLI_ghashIterator_step(iter)) {
|
for (; !BLI_ghashIterator_done(iter); BLI_ghashIterator_step(iter)) {
|
||||||
const char *s = BLI_ghashIterator_getValue(iter);
|
const char *s = BLI_ghashIterator_getValue(iter);
|
||||||
texttool_suggest_add(s, tft->format_identifier(s));
|
texttool_suggest_add(s, tft->format_identifier(s));
|
||||||
}
|
}
|
||||||
|
@@ -156,7 +156,7 @@ static void operator_search_cb(const struct bContext *C, void *UNUSED(arg), cons
|
|||||||
{
|
{
|
||||||
GHashIterator *iter = WM_operatortype_iter();
|
GHashIterator *iter = WM_operatortype_iter();
|
||||||
|
|
||||||
for (; BLI_ghashIterator_notDone(iter); BLI_ghashIterator_step(iter)) {
|
for (; !BLI_ghashIterator_done(iter); BLI_ghashIterator_step(iter)) {
|
||||||
wmOperatorType *ot = BLI_ghashIterator_getValue(iter);
|
wmOperatorType *ot = BLI_ghashIterator_getValue(iter);
|
||||||
|
|
||||||
if (BLI_strcasestr(ot->name, str)) {
|
if (BLI_strcasestr(ot->name, str)) {
|
||||||
|
@@ -1752,7 +1752,7 @@ static int stitch_init(bContext *C, wmOperator *op)
|
|||||||
state->total_separate_edges = total_edges;
|
state->total_separate_edges = total_edges;
|
||||||
|
|
||||||
/* fill the edges with data */
|
/* fill the edges with data */
|
||||||
for (i = 0, BLI_ghashIterator_init(ghi, edge_hash); BLI_ghashIterator_notDone(ghi); BLI_ghashIterator_step(ghi)) {
|
for (i = 0, BLI_ghashIterator_init(ghi, edge_hash); !BLI_ghashIterator_done(ghi); BLI_ghashIterator_step(ghi)) {
|
||||||
edges[i++] = *((UvEdge *)BLI_ghashIterator_getKey(ghi));
|
edges[i++] = *((UvEdge *)BLI_ghashIterator_getKey(ghi));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -197,7 +197,7 @@ static char *gpu_generate_function_prototyps(GHash *hash)
|
|||||||
* generated code, to avoid have to add the actual code & recompile all */
|
* generated code, to avoid have to add the actual code & recompile all */
|
||||||
ghi = BLI_ghashIterator_new(hash);
|
ghi = BLI_ghashIterator_new(hash);
|
||||||
|
|
||||||
for (; BLI_ghashIterator_notDone(ghi); BLI_ghashIterator_step(ghi)) {
|
for (; !BLI_ghashIterator_done(ghi); BLI_ghashIterator_step(ghi)) {
|
||||||
name = BLI_ghashIterator_getValue(ghi);
|
name = BLI_ghashIterator_getValue(ghi);
|
||||||
function = BLI_ghashIterator_getValue(ghi);
|
function = BLI_ghashIterator_getValue(ghi);
|
||||||
|
|
||||||
|
@@ -145,7 +145,7 @@ static void check_unused_keys(MovieCache *cache)
|
|||||||
GHashIterator *iter;
|
GHashIterator *iter;
|
||||||
|
|
||||||
iter = BLI_ghashIterator_new(cache->hash);
|
iter = BLI_ghashIterator_new(cache->hash);
|
||||||
while (BLI_ghashIterator_notDone(iter)) {
|
while (!BLI_ghashIterator_done(iter)) {
|
||||||
MovieCacheKey *key = BLI_ghashIterator_getKey(iter);
|
MovieCacheKey *key = BLI_ghashIterator_getKey(iter);
|
||||||
MovieCacheItem *item = BLI_ghashIterator_getValue(iter);
|
MovieCacheItem *item = BLI_ghashIterator_getValue(iter);
|
||||||
int remove = 0;
|
int remove = 0;
|
||||||
@@ -448,7 +448,7 @@ void IMB_moviecache_cleanup(MovieCache *cache, int (cleanup_check_cb) (void *use
|
|||||||
GHashIterator *iter;
|
GHashIterator *iter;
|
||||||
|
|
||||||
iter = BLI_ghashIterator_new(cache->hash);
|
iter = BLI_ghashIterator_new(cache->hash);
|
||||||
while (BLI_ghashIterator_notDone(iter)) {
|
while (!BLI_ghashIterator_done(iter)) {
|
||||||
MovieCacheKey *key = BLI_ghashIterator_getKey(iter);
|
MovieCacheKey *key = BLI_ghashIterator_getKey(iter);
|
||||||
int remove;
|
int remove;
|
||||||
|
|
||||||
@@ -497,7 +497,7 @@ void IMB_moviecache_get_cache_segments(MovieCache *cache, int proxy, int render_
|
|||||||
|
|
||||||
iter = BLI_ghashIterator_new(cache->hash);
|
iter = BLI_ghashIterator_new(cache->hash);
|
||||||
a = 0;
|
a = 0;
|
||||||
while (BLI_ghashIterator_notDone(iter)) {
|
while (!BLI_ghashIterator_done(iter)) {
|
||||||
MovieCacheKey *key = BLI_ghashIterator_getKey(iter);
|
MovieCacheKey *key = BLI_ghashIterator_getKey(iter);
|
||||||
MovieCacheItem *item = BLI_ghashIterator_getValue(iter);
|
MovieCacheItem *item = BLI_ghashIterator_getValue(iter);
|
||||||
int framenr, curproxy, curflags;
|
int framenr, curproxy, curflags;
|
||||||
|
@@ -230,7 +230,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *UNUSED(ob),
|
|||||||
|
|
||||||
/* copy the vertices across */
|
/* copy the vertices across */
|
||||||
for (hashIter = BLI_ghashIterator_new(vertHash);
|
for (hashIter = BLI_ghashIterator_new(vertHash);
|
||||||
BLI_ghashIterator_notDone(hashIter);
|
BLI_ghashIterator_done(hashIter) == false;
|
||||||
BLI_ghashIterator_step(hashIter)
|
BLI_ghashIterator_step(hashIter)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@@ -316,7 +316,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
|
|||||||
/* using ghash-iterators, map data into new mesh */
|
/* using ghash-iterators, map data into new mesh */
|
||||||
/* vertices */
|
/* vertices */
|
||||||
for (hashIter = BLI_ghashIterator_new(vertHash);
|
for (hashIter = BLI_ghashIterator_new(vertHash);
|
||||||
BLI_ghashIterator_notDone(hashIter);
|
BLI_ghashIterator_done(hashIter) == false;
|
||||||
BLI_ghashIterator_step(hashIter) )
|
BLI_ghashIterator_step(hashIter) )
|
||||||
{
|
{
|
||||||
MVert source;
|
MVert source;
|
||||||
@@ -334,7 +334,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
|
|||||||
|
|
||||||
/* edges */
|
/* edges */
|
||||||
for (hashIter = BLI_ghashIterator_new(edgeHash);
|
for (hashIter = BLI_ghashIterator_new(edgeHash);
|
||||||
BLI_ghashIterator_notDone(hashIter);
|
BLI_ghashIterator_done(hashIter) == false;
|
||||||
BLI_ghashIterator_step(hashIter))
|
BLI_ghashIterator_step(hashIter))
|
||||||
{
|
{
|
||||||
MEdge source;
|
MEdge source;
|
||||||
@@ -355,7 +355,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
|
|||||||
|
|
||||||
/* faces */
|
/* faces */
|
||||||
for (hashIter = BLI_ghashIterator_new(polyHash);
|
for (hashIter = BLI_ghashIterator_new(polyHash);
|
||||||
BLI_ghashIterator_notDone(hashIter);
|
BLI_ghashIterator_done(hashIter) == false;
|
||||||
BLI_ghashIterator_step(hashIter) )
|
BLI_ghashIterator_step(hashIter) )
|
||||||
{
|
{
|
||||||
int oldIndex = GET_INT_FROM_POINTER(BLI_ghashIterator_getKey(hashIter));
|
int oldIndex = GET_INT_FROM_POINTER(BLI_ghashIterator_getKey(hashIter));
|
||||||
|
@@ -369,7 +369,7 @@ static PyObject *pyop_dir(PyObject *UNUSED(self))
|
|||||||
GHashIterator *iter = WM_operatortype_iter();
|
GHashIterator *iter = WM_operatortype_iter();
|
||||||
PyObject *list = PyList_New(0), *name;
|
PyObject *list = PyList_New(0), *name;
|
||||||
|
|
||||||
for ( ; BLI_ghashIterator_notDone(iter); BLI_ghashIterator_step(iter)) {
|
for ( ; !BLI_ghashIterator_done(iter); BLI_ghashIterator_step(iter)) {
|
||||||
wmOperatorType *ot = BLI_ghashIterator_getValue(iter);
|
wmOperatorType *ot = BLI_ghashIterator_getValue(iter);
|
||||||
|
|
||||||
name = PyUnicode_FromString(ot->idname);
|
name = PyUnicode_FromString(ot->idname);
|
||||||
|
@@ -250,7 +250,7 @@ static void id_release_weakref_list(struct ID *id, GHash *weakinfo_hash)
|
|||||||
fprintf(stdout, "id_release_weakref: '%s', %d items\n", id->name, BLI_ghash_size(weakinfo_hash));
|
fprintf(stdout, "id_release_weakref: '%s', %d items\n", id->name, BLI_ghash_size(weakinfo_hash));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
while (BLI_ghashIterator_notDone(&weakinfo_hash_iter)) {
|
while (!BLI_ghashIterator_done(&weakinfo_hash_iter)) {
|
||||||
PyObject *weakref = (PyObject *)BLI_ghashIterator_getKey(&weakinfo_hash_iter);
|
PyObject *weakref = (PyObject *)BLI_ghashIterator_getKey(&weakinfo_hash_iter);
|
||||||
PyObject *item = PyWeakref_GET_OBJECT(weakref);
|
PyObject *item = PyWeakref_GET_OBJECT(weakref);
|
||||||
if (item != Py_None) {
|
if (item != Py_None) {
|
||||||
|
@@ -1018,7 +1018,7 @@ void free_sss(Render *re)
|
|||||||
if (re->sss_hash) {
|
if (re->sss_hash) {
|
||||||
GHashIterator *it= BLI_ghashIterator_new(re->sss_hash);
|
GHashIterator *it= BLI_ghashIterator_new(re->sss_hash);
|
||||||
|
|
||||||
while (BLI_ghashIterator_notDone(it)) {
|
while (!BLI_ghashIterator_done(it)) {
|
||||||
sss_free_tree(BLI_ghashIterator_getValue(it));
|
sss_free_tree(BLI_ghashIterator_getValue(it));
|
||||||
BLI_ghashIterator_step(it);
|
BLI_ghashIterator_step(it);
|
||||||
}
|
}
|
||||||
|
@@ -234,7 +234,7 @@ void WM_uilisttype_free(void)
|
|||||||
{
|
{
|
||||||
GHashIterator *iter = BLI_ghashIterator_new(uilisttypes_hash);
|
GHashIterator *iter = BLI_ghashIterator_new(uilisttypes_hash);
|
||||||
|
|
||||||
for (; BLI_ghashIterator_notDone(iter); BLI_ghashIterator_step(iter)) {
|
for (; !BLI_ghashIterator_done(iter); BLI_ghashIterator_step(iter)) {
|
||||||
uiListType *ult = BLI_ghashIterator_getValue(iter);
|
uiListType *ult = BLI_ghashIterator_getValue(iter);
|
||||||
if (ult->ext.free) {
|
if (ult->ext.free) {
|
||||||
ult->ext.free(ult->ext.data);
|
ult->ext.free(ult->ext.data);
|
||||||
@@ -287,7 +287,7 @@ void WM_menutype_free(void)
|
|||||||
{
|
{
|
||||||
GHashIterator *iter = BLI_ghashIterator_new(menutypes_hash);
|
GHashIterator *iter = BLI_ghashIterator_new(menutypes_hash);
|
||||||
|
|
||||||
for (; BLI_ghashIterator_notDone(iter); BLI_ghashIterator_step(iter)) {
|
for (; !BLI_ghashIterator_done(iter); BLI_ghashIterator_step(iter)) {
|
||||||
MenuType *mt = BLI_ghashIterator_getValue(iter);
|
MenuType *mt = BLI_ghashIterator_getValue(iter);
|
||||||
if (mt->ext.free) {
|
if (mt->ext.free) {
|
||||||
mt->ext.free(mt->ext.data);
|
mt->ext.free(mt->ext.data);
|
||||||
|
Reference in New Issue
Block a user