Branch: Tag:

2017-01-09

2017-01-09 22:16:21 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: API change for docode.c:do_code_block().

Propagate identifier_flags explicitly to do_code_block().

5341:    extern int remove_clear_locals;    int saved_fun_num =    Pike_compiler->compiler_frame->current_function_number; -  /* NB: The following prototype is needed to propagate -  * the IDENTIFIER_VARARGS flag to do_code_block(). +  /* NB: The following prototype is needed to propagate the +  * ID_LOCAL flags for the identifier to do_code_block().    */    Pike_compiler->compiler_frame->current_function_number =    define_function(name,
5355:    (Pike_compiler->compiler_frame->opt_flags));    remove_clear_locals=args;    if(vargs) remove_clear_locals++; -  tmp.offset=do_code_block(n); +  tmp.offset=do_code_block(n, vargs);    remove_clear_locals=0x7fffffff;    Pike_compiler->compiler_frame->current_function_number = saved_fun_num;    }