src/parse.c
// Find a type by name.
Find a type by name.
Find a type by name .
Type *find_tag(char *name) {
    for (TagScope *sc = tag_scope; sc; sc = sc->next) {
        if (!strcmp(name, sc->name)) {
            return sc->type;
        }
    }
    return NULL;
}
Type * find_tag ( char * name ) { for ( TagScope * sc = tag_scope ; sc ; sc = sc -> next ) { if ( ! strcmp ( name , sc -> name ) ) { return sc -> type ; } } return NULL ; }
Find a type by name.
Find a type by name .