contrib/gcc-4.4/gcc/cp/call.c
/* Add a new entry to the list of candidates.  Used by the add_*_candidate
   functions.  */
Add a new entry to the list of candidates.  Used by the add_*_candidate
functions.
Add a new entry to the list of candidates . Used by the add_ * _candidate functions .
static struct z_candidate *
add_candidate (struct z_candidate **candidates,
	       tree fn, tree args,
	       size_t num_convs, conversion **convs,
	       tree access_path, tree conversion_path,
	       int viable)
{
  struct z_candidate *cand = (struct z_candidate *)
    conversion_obstack_alloc (sizeof (struct z_candidate));
  cand->fn = fn;
  cand->args = args;
  cand->convs = convs;
  cand->num_convs = num_convs;
  cand->access_path = access_path;
  cand->conversion_path = conversion_path;
  cand->viable = viable;
  cand->next = *candidates;
  *candidates = cand;
  return cand;
}
static struct z_candidate * add_candidate ( struct z_candidate * * candidates , tree fn , tree args , size_t num_convs , conversion * * convs , tree access_path , tree conversion_path , int viable ) { struct z_candidate * cand = ( struct z_candidate * ) conversion_obstack_alloc ( sizeof ( struct z_candidate ) ) ; cand -> fn = fn ; cand -> args = args ; cand -> convs = convs ; cand -> num_convs = num_convs ; cand -> access_path = access_path ; cand -> conversion_path = conversion_path ; cand -> viable = viable ; cand -> next = * candidates ; * candidates = cand ; return cand ; }
Add a new entry to the list of candidates.
Add a new entry to the list of candidates .