FreeBSD/contrib/gcc/cp/typeck.c
/* Given a list of expressions, return a compound expression
   that performs them all and returns the value of the last of them.  */
Given a list of expressions, return a compound expression
that performs them all and returns the value of the last of them.
Given a list of expressions return a compound expression that performs them all and returns the value of the last of them .
tree build_x_compound_expr_from_list (tree list, const char *msg)
{
  tree expr = TREE_VALUE (list);
  if (TREE_CHAIN (list))
    {
      if (msg)
	pedwarn ("%s expression list treated as compound expression", msg);
      for (list = TREE_CHAIN (list); list; list = TREE_CHAIN (list))
	expr = build_x_compound_expr (expr, TREE_VALUE (list));
    }
  return expr;
}
tree build_x_compound_expr_from_list ( tree list , const char * msg ) { tree expr = TREE_VALUE ( list ) ; if ( TREE_CHAIN ( list ) ) { if ( msg ) pedwarn ( " " , msg ) ; for ( list = TREE_CHAIN ( list ) ; list ; list = TREE_CHAIN ( list ) ) expr = build_x_compound_expr ( expr , TREE_VALUE ( list ) ) ; } return expr ; }
Given a list of expressions, return a compound expression
that performs them all and returns the value of the last of them.
Given a list of expressions return a compound expression that performs them all and returns the value of the last of them .