home *** CD-ROM | disk | FTP | other *** search
- #include "make.h"
-
- #ifdef DEBUG
- /*----------------------------------------------------------------*/
- ptime( file, t )
- char *file;
- long t;
- {
- int date, time;
-
- date = (t >> 17) & 0x7fffL;
- time = t & 0x1ffffL;
-
- printf("%s: %ld - ", file, date );
- printf("%02ld:%02ld:%02ld\n", (time / (60*60)),
- (time / 60) % 60,
- (time % 60) );
- }
-
- /*----------------------------------------------------------------*/
- static printlist( node )
- STRNODE *node;
- {
- for( ; node != NULL; node=node->next )
- printf("| %s\n", node->string);
- }
-
- /*----------------------------------------------------------------*/
- pnode( node )
- TNODE *node;
- {
- printf("+-------------------------------------\n" );
- printf("| node at $%08lx\n", node );
- printf("| targets:\n");
- printlist( node->targets );
- printf("| dependancies :\n" );
- printlist( node->depends );
- printf("| commands:\n" );
- printlist( node->commands );
- printf("+-------------------------------------\n" );
- }
-
- /*----------------------------------------------------------------*/
- trav( root )
- TREENODE *root;
- {
- if (root != NULL )
- {
- trav( root->lnode );
- pnode( root->inode);
- trav( root->rnode );
- }
- }
- #else
- ptime(){}
- #endif
-