예제 #1
0
파일: input.c 프로젝트: dforsyth/rirc
input*
new_input(void)
{
	input *i;

	if ((i = calloc(1, sizeof(*i))) == NULL)
		fatal("calloc");

	new_list_head(i);

	return i;
}
예제 #2
0
파일: ddl.c 프로젝트: mpw/p2
LISTNODE *
decompose_conceptual (LISTNODE *l)
{
#if ORDERBY
  l = new_list_tail(l, new_node("top2ds"));
  l = new_list_tail(l, new_node("inbetween"));
  /* The orderby retrieval layer (e.g. dlist_stable) must be stable??? (JAT) */
  l = new_list_tail(l, new_node("dlist_stable"));
  l = new_list_tail(l, new_node("malloc"));
  l = new_list_tail(l, new_node("transient"));
#endif

#if !TOP2DS_QUALIFY
  l = new_list_head(new_node("qualify"), l);
#endif
  l = new_list_head(new_node("inbetween"), l);
#if ORDERBY
  l = new_list_head(new_node("orderby_smart"), l);
#endif
#if GENERIC && FUNCALL
  l = new_list_head(new_node("generic_funcall"), l);
#elif FUNCALL
  l = new_list_head(new_node("named_funcall"), l);
#endif
#if GENERIC
  l = new_list_head(new_node("generic"), l);
  l = new_list_head(new_node("init_generic"), l);
#endif
#if TOP2DS_QUALIFY
  l = new_list_head(new_node("top2ds_qualify"), l);
#else
  l = new_list_head(new_node("top2ds"), l);
#endif

  return(l);
}