link-grammar-5.8.0/link-grammar/dict-common/dict-common.c
/**
 * Returns true if it finds a non-idiom dict_node in a file that matches
 * the string s.
 *
 * Also sets parent and to_be_deleted appropriately.
 * Note: this function is used in only one place: delete_dictionary_words()
 * which is, itself, not currently used ...
 */
Returns true if it finds a non-idiom dict_node in a file that matches
the string s.

Also sets parent and to_be_deleted appropriately.
Note: this function is used in only one place: delete_dictionary_words()
which is, itself, not currently used
Returns true if it finds a non - idiom dict_node in a file that matches the string s . Also sets parent and to_be_deleted appropriately . Note : this function is used in only one place : delete_dictionary_words () which is itself not currently used
static bool find_one_non_idiom_node(Dict_node * p, Dict_node * dn,
                                   const char * s,
                                   Dict_node **parent, Dict_node **to_be_deleted)
{
	int m;
	if (dn == NULL) return false;
	m = dict_order_bare(s, dn);
	if (m <= 0) {
		if (find_one_non_idiom_node(dn, dn->left, s, parent, to_be_deleted)) return true;
	}
	if ((m == 0) && (!is_idiom_word(dn->string))) {
		*to_be_deleted = dn;
		*parent = p;
		return true;
	}
	if (m >= 0) {
		if (find_one_non_idiom_node(dn, dn->right, s, parent, to_be_deleted)) return true;
	}
	return false;
}
static bool find_one_non_idiom_node ( Dict_node * p , Dict_node * dn , const char * s , Dict_node * * parent , Dict_node * * to_be_deleted ) { int m ; if ( dn == NULL ) return false ; m = dict_order_bare ( s , dn ) ; if ( m <= 0 ) { if ( find_one_non_idiom_node ( dn , dn -> left , s , parent , to_be_deleted ) ) return true ; } if ( ( m == 0 ) && ( ! is_idiom_word ( dn -> string ) ) ) { * to_be_deleted = dn ; * parent = p ; return true ; } if ( m >= 0 ) { if ( find_one_non_idiom_node ( dn , dn -> right , s , parent , to_be_deleted ) ) return true ; } return false ; }
Returns true if it finds a non-idiom dict_node in a file that matches
 the string s.
Returns true if it finds a non - idiom dict_node in a file that matches the string s .
/*	if ((m == 0) && (!is_idiom_word(dn->string)) && (dn->file != NULL)) { */