home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume6 / misc.patches1 / calls.mods next >
Encoding:
Internet Message Format  |  1986-11-30  |  460 b 

  1. From: wjh12!pixel!pixutl!chris
  2. Subject: Re: v06i003:  new calls; shows function call flow (calls.new)
  3. I would like to suggest a minor change to your 'calls' program. It does
  4. not accept stdin unless you specify '-' as an argument. This can easily
  5. be fixed by adding an extern variable:
  6.     int anyproc;
  7.  
  8. then, inside of process(), do:
  9.     anyproc++;
  10.  
  11. and in main(), after the  'while (EOF != getarg (argc, argv)) {'  loop, add:
  12.     if (anyproc == 0)
  13.         dostdin();
  14.  
  15. Chris
  16.