| 
            Last change
 on this file since 1026 was             907, checked in by Steven Levine, 18 years ago           | 
        
        
          | 
             
Avoid out of memory traps in Compare Directories 
Rework Compare Directories progress display for 2 second update rate 
Start refactoring to reduce dependence on fm3dll.h 
Add timer services (IsITimerExpired etc.) 
 
           | 
        
        
          
            
              - 
Property                 svn:eol-style
 set to                 
native
               
              - 
Property                 svn:keywords
 set to                 
Author Date Id Revision
               
             
           | 
        
        
          | 
            File size:
            1.6 KB
           | 
        
      
      
| Rev | Line |   | 
|---|
| [523] | 1 | 
 | 
|---|
 | 2 | /***********************************************************************
 | 
|---|
 | 3 | 
 | 
|---|
 | 4 |   $Id: grep.h 907 2008-01-06 07:26:17Z stevenhl $
 | 
|---|
 | 5 | 
 | 
|---|
 | 6 |   Grep support
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 |   Copyright (c) 1993-98 M. Kimes
 | 
|---|
| [902] | 9 |   Copyright (c) 2006, 2008 Steven H. Levine
 | 
|---|
| [523] | 10 | 
 | 
|---|
| [785] | 11 |   04 Nov 06 SHL Renames
 | 
|---|
 | 12 |   15 Aug 07 SHL Drop obsoletes
 | 
|---|
| [902] | 13 |   04 Jan 08 SHL Allow standalone usage
 | 
|---|
| [523] | 14 | 
 | 
|---|
 | 15 | ***********************************************************************/
 | 
|---|
 | 16 | 
 | 
|---|
| [902] | 17 | #if !defined(GREP_H)
 | 
|---|
 | 18 | #define GREP_H
 | 
|---|
 | 19 | 
 | 
|---|
 | 20 | #if !defined(OS2_INCLUDED)
 | 
|---|
| [907] | 21 | #define INCL_LONGLONG
 | 
|---|
| [902] | 22 | #include <os2.h>
 | 
|---|
| [907] | 23 | #else
 | 
|---|
 | 24 | #if !defined(INCL_LONGLONG)
 | 
|---|
 | 25 | #error INCL_LONGLONG required by grep.h
 | 
|---|
| [902] | 26 | #endif
 | 
|---|
| [907] | 27 | #endif
 | 
|---|
| [902] | 28 | 
 | 
|---|
| [551] | 29 | ULONG SecsSince1980(FDATE * date, FTIME * time);
 | 
|---|
 | 30 | VOID GrepThread(VOID * arg);
 | 
|---|
| [2] | 31 | 
 | 
|---|
| [551] | 32 | typedef struct DUPES
 | 
|---|
 | 33 | {
 | 
|---|
| [2] | 34 |   CHAR *name;
 | 
|---|
 | 35 |   ULONG size;
 | 
|---|
 | 36 |   FDATE date;
 | 
|---|
 | 37 |   FTIME time;
 | 
|---|
| [551] | 38 |   INT flags;
 | 
|---|
 | 39 |   LONG CRC;
 | 
|---|
| [2] | 40 |   struct DUPES *next;
 | 
|---|
| [551] | 41 | }
 | 
|---|
 | 42 | DUPES;
 | 
|---|
| [2] | 43 | 
 | 
|---|
 | 44 | #define GF_INSERTED 1
 | 
|---|
 | 45 | #define GF_SKIPME   2
 | 
|---|
 | 46 | 
 | 
|---|
| [551] | 47 | typedef struct
 | 
|---|
 | 48 | {
 | 
|---|
 | 49 |   USHORT size;
 | 
|---|
 | 50 |   CHAR tosearch[8192];
 | 
|---|
 | 51 |   CHAR fileMask[CCHMAXPATH + 14];
 | 
|---|
 | 52 |   CHAR curdir[CCHMAXPATH];
 | 
|---|
 | 53 |   LONG fileCount;
 | 
|---|
 | 54 |   HWND hwnd;
 | 
|---|
 | 55 |   HWND hwndFiles;
 | 
|---|
 | 56 |   HWND hwndCurFile;
 | 
|---|
 | 57 |   BOOL caseFlag;
 | 
|---|
 | 58 |   BOOL absFlag;
 | 
|---|
 | 59 |   BOOL dirFlag;
 | 
|---|
 | 60 |   BOOL sayfiles;
 | 
|---|
 | 61 |   BOOL searchEAs;
 | 
|---|
 | 62 |   BOOL searchFiles;
 | 
|---|
 | 63 |   BOOL finddupes;
 | 
|---|
 | 64 |   BOOL CRCdupes;
 | 
|---|
 | 65 |   BOOL nosizedupes;
 | 
|---|
 | 66 |   BOOL ignoreextdupes;
 | 
|---|
 | 67 |   BOOL findifany;
 | 
|---|
 | 68 |   BOOL anyexcludes;
 | 
|---|
 | 69 |   ULONG greaterthan;
 | 
|---|
 | 70 |   ULONG lessthan;
 | 
|---|
 | 71 |   ULONG olderthan;
 | 
|---|
 | 72 |   ULONG newerthan;
 | 
|---|
 | 73 |   ULONG numfiles;
 | 
|---|
 | 74 |   HAB ghab;
 | 
|---|
 | 75 |   CHAR *stopflag;
 | 
|---|
 | 76 |   ULONG toinsert;
 | 
|---|
| [841] | 77 |   ULONGLONG insertedbytes;
 | 
|---|
 | 78 |   FILEFINDBUF4L **insertffb;
 | 
|---|
| [551] | 79 |   CHAR **dir;
 | 
|---|
 | 80 |   ULONG attrFile;
 | 
|---|
 | 81 |   ULONG antiattr;
 | 
|---|
 | 82 |   DUPES *dupehead, *dupelast, **dupenames, **dupesizes;
 | 
|---|
 | 83 |   CHAR searchPattern[4096];
 | 
|---|
 | 84 |   ULONG numlines;
 | 
|---|
 | 85 |   CHAR *matched;
 | 
|---|
 | 86 | }
 | 
|---|
 | 87 | GREP;
 | 
|---|
| [2] | 88 | 
 | 
|---|
 | 89 | extern volatile CHAR diegrep;
 | 
|---|
| [902] | 90 | 
 | 
|---|
 | 91 | #endif // GREP_H
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.