link-grammar-5.8.0/link-grammar/dict-common/print-dict.c
/**
 * Display the number of disjuncts associated with this dict node
 */
Display the number of disjuncts associated with this dict node
Display the number of disjuncts associated with this dict node
static char *display_counts(const char *word, Dict_node *dn)
{
	dyn_str *s = dyn_str_new();
	dyn_strcat(s, "matches:\n");
	for (; dn != NULL; dn = dn->right)
	{
		append_string(s, "    %-*s %8u  disjuncts",
		              display_width(DJ_COL_WIDTH, dn->string), dn->string,
		              count_disjunct_for_dict_node(dn));
		if (dn->file != NULL)
		{
			append_string(s, " <%s>", dn->file->file);
		}
		dyn_strcat(s, "\n\n");
	}
	return dyn_str_take(s);
}
static char * display_counts ( const char * word , Dict_node * dn ) { dyn_str * s = dyn_str_new ( ) ; dyn_strcat ( s , " \n " ) ; for ( ; dn != NULL ; dn = dn -> right ) { append_string ( s , " " , display_width ( DJ_COL_WIDTH , dn -> string ) , dn -> string , count_disjunct_for_dict_node ( dn ) ) ; if ( dn -> file != NULL ) { append_string ( s , " " , dn -> file -> file ) ; } dyn_strcat ( s , " \n \n " ) ; } return dyn_str_take ( s ) ; }
Display the number of disjuncts associated with this dict node
Display the number of disjuncts associated with this dict node