home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 2 / RISC_DISC_2.iso / pd_share / program / code / stubshack / HeapGraph / !HeapDisp / c / Main < prev    next >
Encoding:
Text File  |  1994-08-31  |  618 b   |  45 lines

  1. #include <stdlib.h>
  2. #include <string.h>
  3. #include <time.h>
  4. #include <stdio.h>
  5. #include <math.h>
  6.  
  7.  
  8. #include "Desklib:Error.h"
  9. #include "Desklib:WimpSWIs.h"
  10.  
  11.  
  12. #include "Shell.RectSave.h"
  13. #include "Shell.Printf.h"
  14. #include "Shell.BarIcon.h"
  15.  
  16. #include "Structs.h"
  17. #include "ScanPipeFS.h"
  18.  
  19.  
  20. static apps_anchorblock    apps;
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29. int main()
  30. {
  31. Shell_Init( "HeapDisplay", "HeapDisplay");
  32. Shell_AddBarIcon( "application");
  33. Shell_InitRectSave( "SaveAs", 3, 0, 1, 2);
  34.  
  35. Shell_Printf( "Waiting for debug data...\n");
  36. LinkList_Init( &apps.anchor);
  37.  
  38. for(;;)    {
  39.     Shell_PollSlow();
  40.     ScanPipeFS( "Pipe:$.C_Debug", &apps);
  41.     }
  42.  
  43. return 0;
  44. }
  45.