Branch: Tag:

2021-02-26

2021-02-26 16:58:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Swap CAR and CDR for F_DO nodes.

This change causes the conditional be in CAR, analogous to
'?' and F_FOR nodes, reducing the number of special cases
in some upcoming code.

3682:   do: TOK_DO line_number_info statement    TOK_WHILE '(' safe_comma_expr end_cond expected_semicolon    { -  $$=mknode(F_DO,$3,$6); +  $$=mknode(F_DO,$6,$3);    COPY_LINE_NUMBER_INFO($$, $2);    free_node ($2);    Pike_compiler->compiler_frame->opt_flags |= OPT_CUSTOM_LABELS;