|
@@ -5623,13 +5623,6 @@ BUILDIN_FUNC(return)
|
|
|
get_val(st, data); // current scope, convert to value
|
|
|
if( data->ref && data->ref->vars == st->stack->stack_data[st->stack->defsp-1].u.ri->scope.vars )
|
|
|
data->ref = NULL; // Reference to the parent scope, remove reference pointer
|
|
|
- } else if( name[0] == '.' && !data->ref ) { // script variable, link to current script
|
|
|
- data->ref = (struct reg_db *)aCalloc(sizeof(struct reg_db), 1);
|
|
|
- data->ref->vars = st->script->local.vars;
|
|
|
-
|
|
|
- if (!st->script->local.arrays)
|
|
|
- st->script->local.arrays = idb_alloc(DB_OPT_BASE);
|
|
|
- data->ref->arrays = st->script->local.arrays;
|
|
|
}
|
|
|
}
|
|
|
}
|