FreeBSD/usr.bin/gprof/dfn.c
/*
     *	push a parent onto the stack and mark it busy
     */
push a parent onto the stack and mark it busy
push a parent onto the stack and mark it busy
void
dfn_pre_visit(nltype *parentp)
{
    dfn_depth += 1;
    if ( dfn_depth >= DFN_DEPTH )
	errx( 1 , "[dfn] out of my depth (dfn_stack overflow)" );
    dfn_stack[ dfn_depth ].nlentryp = parentp;
    dfn_stack[ dfn_depth ].cycletop = dfn_depth;
    parentp -> toporder = DFN_BUSY;
#   ifdef DEBUG
	if ( debug & DFNDEBUG ) {
	    printf( "[dfn_pre_visit]\t\t%d:" , dfn_depth );
	    printname( parentp );
	    printf( "\n" );
	}
#   endif 
}
void dfn_pre_visit ( nltype * parentp ) { dfn_depth += 1 ; if ( dfn_depth >= DFN_DEPTH ) errx ( 1 , " " ) ; dfn_stack [ dfn_depth ] . nlentryp = parentp ; dfn_stack [ dfn_depth ] . cycletop = dfn_depth ; parentp -> toporder = DFN_BUSY ; #   ifdef DEBUG if ( debug & DFNDEBUG ) { printf ( " \t \t " , dfn_depth ) ; printname ( parentp ) ; printf ( " \n " ) ; } #   endif }
push a parent onto the stack and mark it busy
push a parent onto the stack and mark it busy
/* DEBUG */