Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
joente committed Nov 13, 2023
1 parent 9118e8e commit ccdcc98
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ti/thing.c
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,12 @@ _Bool ti_thing_equals(ti_thing_t * thing, ti_val_t * otherv, uint8_t deep)

static inline void thing__deep_set(ti_thing_t * thing, ti_thing_t * other)
{
/* During the recursive copying, we don't need the collection on the thing
* as we just want the newly created thing. Therefore we can temporary
* use the collection pointer as a placeholder for the new thing.
* After the "walk" has finished, a call to thing__deep_unset must be made
* to restore the collection.
*/
thing->collection = (ti_collection_t *) other;
thing->flags |= TI_THING_FLAG_DEEP;
}
Expand Down

0 comments on commit ccdcc98

Please sign in to comment.