Last change
on this file since 1200 was 907, checked in by Steven Levine, 17 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
|
Line | |
---|
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
|
---|
9 | Copyright (c) 2006, 2008 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 |
|
---|
15 | ***********************************************************************/
|
---|
16 |
|
---|
17 | #if !defined(GREP_H)
|
---|
18 | #define GREP_H
|
---|
19 |
|
---|
20 | #if !defined(OS2_INCLUDED)
|
---|
21 | #define INCL_LONGLONG
|
---|
22 | #include <os2.h>
|
---|
23 | #else
|
---|
24 | #if !defined(INCL_LONGLONG)
|
---|
25 | #error INCL_LONGLONG required by grep.h
|
---|
26 | #endif
|
---|
27 | #endif
|
---|
28 |
|
---|
29 | ULONG SecsSince1980(FDATE * date, FTIME * time);
|
---|
30 | VOID GrepThread(VOID * arg);
|
---|
31 |
|
---|
32 | typedef struct DUPES
|
---|
33 | {
|
---|
34 | CHAR *name;
|
---|
35 | ULONG size;
|
---|
36 | FDATE date;
|
---|
37 | FTIME time;
|
---|
38 | INT flags;
|
---|
39 | LONG CRC;
|
---|
40 | struct DUPES *next;
|
---|
41 | }
|
---|
42 | DUPES;
|
---|
43 |
|
---|
44 | #define GF_INSERTED 1
|
---|
45 | #define GF_SKIPME 2
|
---|
46 |
|
---|
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;
|
---|
77 | ULONGLONG insertedbytes;
|
---|
78 | FILEFINDBUF4L **insertffb;
|
---|
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;
|
---|
88 |
|
---|
89 | extern volatile CHAR diegrep;
|
---|
90 |
|
---|
91 | #endif // GREP_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.