types.c
// Create a new type iterator instance. A type iterator can be used to recurse
// through all scalars either depth first, or by iterating at a single level.
Create a new type iterator instance. A type iterator can be used to recurse
through all scalars either depth first, or by iterating at a single level.
Create a new type iterator instance . A type iterator can be used to recurse through all scalars either depth first or by iterating at a single level .
TypeIterator *type_iterator(Type *type) {
    TypeIterator *it = malloc(sizeof(TypeIterator));
    memset(it, 0, sizeof(TypeIterator));
    it->type = type;
    return it;
}
TypeIterator * type_iterator ( Type * type ) { TypeIterator * it = malloc ( sizeof ( TypeIterator ) ) ; memset ( it , 0 , sizeof ( TypeIterator ) ) ; it -> type = type ; return it ; }
Create a new type iterator instance.
Create a new type iterator instance .