| 416 | |
| 417 | |
| 418 | int module_get_fixed_var( struct module_t * m_, OBJECT * name ) |
| 419 | { |
| 420 | struct fixed_variable * v; |
| 421 | struct module_t * m = m_; |
| 422 | |
| 423 | if ( m->class_module ) |
| 424 | m = m->class_module; |
| 425 | |
| 426 | if ( !m->variable_indices ) |
| 427 | return -1; |
| 428 | |
| 429 | v = (struct fixed_variable *)hash_find( m->variable_indices, name ); |
| 430 | return v && v->n < m_->num_fixed_variables ? v->n : -1; |
| 431 | } |