src/parse.c
// Find a typedef by name.
Find a typedef by name.
Find a typedef by name .
Type *find_typedef(char *name) {
    for (VarScope *sc = var_scope; sc; sc = sc->next) {
        if (!strcmp(name, sc->name)) {
            return sc->type_def;
        }
    }
    return NULL;
}
Type * find_typedef ( char * name ) { for ( VarScope * sc = var_scope ; sc ; sc = sc -> next ) { if ( ! strcmp ( name , sc -> name ) ) { return sc -> type_def ; } } return NULL ; }
Find a typedef by name.
Find a typedef by name .