============ idProgram::FindType Returns a preexisting complex type that matches the name, or returns NULL if not found ============ */
| 1183 | ============ |
| 1184 | */ |
| 1185 | idTypeDef *idProgram::FindType( const char *name ) { |
| 1186 | idTypeDef *check; |
| 1187 | int i; |
| 1188 | |
| 1189 | for( i = types.Num() - 1; i >= 0; i-- ) { |
| 1190 | check = types[ i ]; |
| 1191 | if ( !strcmp( check->Name(), name ) ) { |
| 1192 | return check; |
| 1193 | } |
| 1194 | } |
| 1195 | |
| 1196 | return NULL; |
| 1197 | } |
| 1198 | |
| 1199 | /* |
| 1200 | ============ |