pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:2966:       if(p) {    /* Update the type for the program constant,    * since we might have a lfun::create(). */    struct identifier *i;    struct svalue sv;    SET_SVAL(sv, T_PROGRAM, 0, program, p);    i = ID_FROM_INT(Pike_compiler->new_program, $<number>4);    free_type(i->type);    i->type = get_type_of_svalue(&sv); +  if (p->flags & PROGRAM_CONSTANT) { +  /* Update, in case of @constant. */ +  i->opt_flags = 0; +  }    free_program(p);    } else if (!Pike_compiler->num_parse_error) {    /* Make sure code in this class is aware that something went wrong. */    Pike_compiler->num_parse_error = 1;    }       $$=mkidentifiernode($<number>4);       free_node($2);    free_node($3);