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