Pristine Ack-5.5
[Ack-5.5.git] / lang / cem / ctest / ctprof / procentry.c
1 /*
2  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3  * See the copyright notice in the ACK home directory, in the file "Copyright".
4  *
5  */
6
7 char rcs_id[] = "$Id: procentry.c,v 2.3 1994/06/24 12:09:44 ceriel Exp $" ;
8
9 static int level = 0 ;
10 int procentry(name) char *name ; {
11         register int count ;
12
13         count=level++ ;
14         while ( count-- ) {
15                 printf("  ") ;
16         }
17         printf("Entering %s\n",name) ;
18 }
19 int procexit(name) char *name ; {
20         register int count ;
21
22         count= --level ;
23         while ( count-- ) {
24                 printf("  ") ;
25         }
26         printf("Leaving  %s\n",name) ;
27 }