"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ling_class/EST_Relation_mls.cc" between
speech_tools-2.4-release.tar.gz and speech_tools-2.5.0-release.tar.gz

About: The speech_tools - Edinburgh Speech Tools Library (used by the Festival Speech Synthesis System).

EST_Relation_mls.cc  (speech_tools-2.4-release):EST_Relation_mls.cc  (speech_tools-2.5.0-release)
skipping to change at line 63 skipping to change at line 63
for (i=link1(from); i; i=next_link(i)) for (i=link1(from); i; i=next_link(i))
if (i == to) if (i == to)
return TRUE; return TRUE;
return FALSE; return FALSE;
} }
void add_link(EST_Item *from, EST_Item *to) void add_link(EST_Item *from, EST_Item *to)
{ {
EST_Item *d,*q; EST_Item *d;
// structurally add it // structurally add it
d = from->down(); d = idown(from);
if (!d) if (!d)
d = from->append_daughter(); d = from->append_daughter();
q = d->append_daughter()->append_daughter(to); d->append_daughter()->append_daughter(to);
// Also add it to the simple list of the relation so traversal works // Also add it to the simple list of the relation so traversal works
// append q // append q
} }
#if 0 #if 0
/* nope all wrong */ /* nope all wrong */
static void mls_insert_up(EST_Item *c,EST_Item *d) static void mls_insert_up(EST_Item *c,EST_Item *d)
{ {
if (c->up() == 0) if (c->up() == 0)
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)