=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/gprof/lookup.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- src/usr.bin/gprof/lookup.c 2001/11/19 19:02:14 1.4 +++ src/usr.bin/gprof/lookup.c 2002/03/25 16:30:55 1.5 @@ -1,4 +1,4 @@ -/* $OpenBSD: lookup.c,v 1.4 2001/11/19 19:02:14 mpech Exp $ */ +/* $OpenBSD: lookup.c,v 1.5 2002/03/25 16:30:55 danh Exp $ */ /* $NetBSD: lookup.c,v 1.5 1995/04/19 07:16:06 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)lookup.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lookup.c,v 1.4 2001/11/19 19:02:14 mpech Exp $"; +static char rcsid[] = "$OpenBSD: lookup.c,v 1.5 2002/03/25 16:30:55 danh Exp $"; #endif #endif /* not lint */ @@ -60,18 +60,18 @@ int probes; probes = 0; -# endif DEBUG +# endif /* DEBUG */ for ( low = 0 , high = nname - 1 ; low != high ; ) { # ifdef DEBUG probes += 1; -# endif DEBUG +# endif /* DEBUG */ middle = ( high + low ) >> 1; if ( nl[ middle ].value <= address && nl[ middle+1 ].value > address ) { # ifdef DEBUG if ( debug & LOOKUPDEBUG ) { printf( "[nllookup] %d (%d) probes\n" , probes , nname-1 ); } -# endif DEBUG +# endif /* DEBUG */ return &nl[ middle ]; } if ( nl[ middle ].value > address ) { @@ -83,7 +83,7 @@ # ifdef DEBUG if ( debug & LOOKUPDEBUG ) warnx("[nllookup] (%d) binary search fails", nname - 1); -# endif DEBUG +# endif /* DEBUG */ return 0; } @@ -103,7 +103,7 @@ printf( "[arclookup] parent %s child %s\n" , parentp -> name , childp -> name ); } -# endif DEBUG +# endif /* DEBUG */ for ( arcp = parentp -> children ; arcp ; arcp = arcp -> arc_childlist ) { # ifdef DEBUG if ( debug & LOOKUPDEBUG ) { @@ -111,7 +111,7 @@ arcp -> arc_parentp -> name , arcp -> arc_childp -> name ); } -# endif DEBUG +# endif /* DEBUG */ if ( arcp -> arc_childp == childp ) { return arcp; }