link-grammar-5.8.0/link-grammar/linkage/lisjuncts.c
/* Cannot be used when morphology is not suppressed and lexical links exist. */
Cannot be used when morphology is not suppressed and lexical links exist.
Cannot be used when morphology is not suppressed and lexical links exist .
static void assert_same_disjunct(Linkage lkg, WordIdx w, const char *djstr)
{
	char *cs;
	if (lkg->chosen_disjuncts[w])
	{
		cs = print_one_disjunct(lkg->chosen_disjuncts[w]);
		char *cs_lastchar = &cs[strlen(cs)-1];
		if (*cs_lastchar == ' ') *cs_lastchar = '\0';
	}
	else
		cs = (char *)"";
	assert(strcmp(cs, djstr) == 0,
			 "Word %zu: Inconsistent disjunct string %s (link_array %s)",
	       w, cs, djstr);
	if (lkg->chosen_disjuncts[w])
		free(cs);
}
static void assert_same_disjunct ( Linkage lkg , WordIdx w , const char * djstr ) { char * cs ; if ( lkg -> chosen_disjuncts [ w ] ) { cs = print_one_disjunct ( lkg -> chosen_disjuncts [ w ] ) ; char * cs_lastchar = & cs [ strlen ( cs ) - 1 ] ; if ( * cs_lastchar == ' ' ) * cs_lastchar = ' \0 ' ; } else cs = ( char * ) " " ; assert ( strcmp ( cs , djstr ) == 0 , " " , w , cs , djstr ) ; if ( lkg -> chosen_disjuncts [ w ] ) free ( cs ) ; }
Cannot be used when morphology is not suppressed and lexical links exist.
Cannot be used when morphology is not suppressed and lexical links exist .