version 1.9, 2004/07/23 23:15:18 |
version 1.10, 2006/03/25 19:06:35 |
|
|
* add (or just increment) an arc |
* add (or just increment) an arc |
*/ |
*/ |
void |
void |
addarc( parentp , childp , count ) |
addarc(nltype *parentp, nltype *childp, long count) |
nltype *parentp; |
|
nltype *childp; |
|
long count; |
|
{ |
{ |
arctype *arcp; |
arctype *arcp; |
|
|
|
|
nltype **topsortnlp; |
nltype **topsortnlp; |
|
|
int |
int |
topcmp( npp1 , npp2 ) |
topcmp(nltype **npp1, nltype **npp2) |
nltype **npp1; |
|
nltype **npp2; |
|
{ |
{ |
return (*npp1) -> toporder - (*npp2) -> toporder; |
return (*npp1) -> toporder - (*npp2) -> toporder; |
} |
} |
|
|
} |
} |
|
|
void |
void |
timepropagate( parentp ) |
timepropagate(nltype *parentp) |
nltype *parentp; |
|
{ |
{ |
arctype *arcp; |
arctype *arcp; |
nltype *childp; |
nltype *childp; |
|
|
} |
} |
|
|
int |
int |
descend( node , stkstart , stkp ) |
descend(nltype *node, arctype **stkstart, arctype **stkp) |
nltype *node; |
|
arctype **stkstart; |
|
arctype **stkp; |
|
{ |
{ |
arctype *arcp; |
arctype *arcp; |
bool ret; |
bool ret; |
|
|
} |
} |
|
|
int |
int |
addcycle( stkstart , stkend ) |
addcycle(arctype **stkstart, arctype **stkend) |
arctype **stkstart; |
|
arctype **stkend; |
|
{ |
{ |
arctype **arcpp; |
arctype **arcpp; |
arctype **stkloc; |
arctype **stkloc; |
|
|
|
|
#ifdef DEBUG |
#ifdef DEBUG |
void |
void |
printsubcycle( clp ) |
printsubcycle(cltype *clp) |
cltype *clp; |
|
{ |
{ |
arctype **arcpp; |
arctype **arcpp; |
arctype **endlist; |
arctype **endlist; |
|
|
* similarly, deal with propagation fractions from parents. |
* similarly, deal with propagation fractions from parents. |
*/ |
*/ |
void |
void |
inheritflags( childp ) |
inheritflags(nltype *childp) |
nltype *childp; |
|
{ |
{ |
nltype *headp; |
nltype *headp; |
arctype *arcp; |
arctype *arcp; |