============ idProgram::GetDefList ============ */
| 1202 | ============ |
| 1203 | */ |
| 1204 | idVarDef *idProgram::GetDefList( const char *name ) const { |
| 1205 | int i, hash; |
| 1206 | |
| 1207 | hash = varDefNameHash.GenerateKey( name, true ); |
| 1208 | for ( i = varDefNameHash.First( hash ); i != -1; i = varDefNameHash.Next( i ) ) { |
| 1209 | if ( idStr::Cmp( varDefNames[i]->Name(), name ) == 0 ) { |
| 1210 | return varDefNames[i]->GetDefs(); |
| 1211 | } |
| 1212 | } |
| 1213 | return NULL; |
| 1214 | } |
| 1215 | |
| 1216 | /* |
| 1217 | ============ |
no test coverage detected