home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / System / Sample 2.4 Think C distribution / glob.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-29  |  3.0 KB  |  70 lines  |  [TEXT/KAHL]

  1. /*______________________________________________________________________
  2.  
  3.     glob.c - Sample Globals.
  4.     
  5.     Copyright © 1988, 1989, 1990 Northwestern University.  Permission is granted
  6.     to use this code in your own projects, provided you give credit to both
  7.     John Norstad and Northwestern University in your about box or document.
  8.  
  9.     This module declares the global variables used by the private
  10.     modules in Sample.
  11. _____________________________________________________________________*/
  12.  
  13.  
  14. #include "rez.h"
  15. #include "glob.h"
  16.  
  17. /*______________________________________________________________________
  18.  
  19.     Global Variables.
  20. _____________________________________________________________________*/
  21.  
  22.  
  23. /* The following variables are set during initialization, and never
  24.     changed thereafter. */
  25.  
  26. ControlHandle    Controls[numControls];    /* main window control handles */
  27. Handle            Report;                    /* handle to main window report record */
  28. Rect                DragRect;                /* drag rectangle */
  29. Boolean            SysHasShutDown;        /* true if shutdown trap exists */
  30. long                LongSleep;                /* long sleep time */
  31. Rect                RectList[numRects];    /* rectangle list */
  32. CursHandle        Watch;                    /* handle to watch cursor */
  33. CursHandle        HelpCurs;                /* handle to help cursor */
  34. CursHandle        IBeamCurs;                /* handle to ibeam cursor */
  35. short                SysRefNum;                /* system file ref num */
  36. short                SysVol;                    /* system vol ref num */
  37. long                SysDirID;                /* blessed folder dir id */
  38. short                DfectRefNum;            /* Sample's file ref num */
  39. short                DfectVol;                /* Sample's vol ref num */
  40. Boolean            OldRom;                    /* true if 64K rom */
  41. Boolean            Initialized=false;    /* true when initialization complete */
  42.  
  43. /*    The following variables are changed after intialization. */
  44.  
  45. PrefsType        Prefs;                    /* preferences */                                                        
  46. Boolean            Done = false;            /* true when time to quit */
  47. Boolean            MenuPick;                /* true if command was via menu pick */
  48. Boolean            Scanning = false;        /* true while scan in progress */
  49. Boolean            FloppyWait = false;    /* true while waiting for floppy insert */
  50. Boolean            Canceled;                /* true if scan canceled */
  51. Boolean            HelpMode = false;        /* true if help mode */
  52. Boolean            InForeground = true;    /* true if running in foreground */                                                                
  53. Boolean            NoMemFullAlert = false;    /* true to tell grow zone proc to return 0
  54.                                                         on mem full instead of posting mem full
  55.                                                         alert */
  56. ScanKind            CurScanKind;            /* kind of scan */
  57. long                NumScanned = 0;        /* number of files scanned counter */
  58. long                NumInfected = 0;        /* number of files infected counter */
  59. long                NumErrors = 0;            /* number of errors counter */
  60. Boolean            Notified = false;        /* true if notification posted */
  61. NMRec                NotifRec;                /* Notification Manager record */
  62. Str255            NotifString;            /* notification string */
  63. Boolean            VolIsLocal;                /* true if vol being scanned is
  64.                                                     local vol (for Zig) */
  65. long                TotFiles;                /* total number of files scanned */
  66. long                TotErrors;                /* total number of errors */
  67. long                TotInfected;            /* total number of infected files */
  68. long                TotNoAccess;            /* total number of folders with 
  69.                                                     insufficient access rights */                                            
  70.