ack/lang/cem/ctest/ctprof/procentry.c

28 lines
521 B
C
Raw Normal View History

1985-02-06 21:25:27 +00:00
/*
1987-03-10 01:26:51 +00:00
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
1985-02-06 21:25:27 +00:00
*
*/
char rcs_id[] = "$Header$" ;
1985-02-06 21:25:27 +00:00
static int level = 0 ;
int procentry(name) char *name ; {
register int count ;
count=level++ ;
while ( count-- ) {
printf(" ") ;
}
printf("Entering %s\n",name) ;
}
int procexit(name) char *name ; {
register int count ;
count= --level ;
while ( count-- ) {
printf(" ") ;
}
printf("Leaving %s\n",name) ;
}