source: trunk/dll/grep.h@ 902

Last change on this file since 902 was 902, checked in by Steven Levine, 18 years ago

Allow includes to be used standalone
Document include dependencies

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1
2/***********************************************************************
3
4 $Id: grep.h 902 2008-01-05 02:47:56Z 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#include <os2.h>
22#endif
23
24ULONG SecsSince1980(FDATE * date, FTIME * time);
25VOID GrepThread(VOID * arg);
26
27typedef struct DUPES
28{
29 CHAR *name;
30 ULONG size;
31 FDATE date;
32 FTIME time;
33 INT flags;
34 LONG CRC;
35 struct DUPES *next;
36}
37DUPES;
38
39#define GF_INSERTED 1
40#define GF_SKIPME 2
41
42typedef struct
43{
44 USHORT size;
45 CHAR tosearch[8192];
46 CHAR fileMask[CCHMAXPATH + 14];
47 CHAR curdir[CCHMAXPATH];
48 LONG fileCount;
49 HWND hwnd;
50 HWND hwndFiles;
51 HWND hwndCurFile;
52 BOOL caseFlag;
53 BOOL absFlag;
54 BOOL dirFlag;
55 BOOL sayfiles;
56 BOOL searchEAs;
57 BOOL searchFiles;
58 BOOL finddupes;
59 BOOL CRCdupes;
60 BOOL nosizedupes;
61 BOOL ignoreextdupes;
62 BOOL findifany;
63 BOOL anyexcludes;
64 ULONG greaterthan;
65 ULONG lessthan;
66 ULONG olderthan;
67 ULONG newerthan;
68 ULONG numfiles;
69 HAB ghab;
70 CHAR *stopflag;
71 ULONG toinsert;
72 ULONGLONG insertedbytes;
73 FILEFINDBUF4L **insertffb;
74 CHAR **dir;
75 ULONG attrFile;
76 ULONG antiattr;
77 DUPES *dupehead, *dupelast, **dupenames, **dupesizes;
78 CHAR searchPattern[4096];
79 ULONG numlines;
80 CHAR *matched;
81}
82GREP;
83
84extern volatile CHAR diegrep;
85
86#endif // GREP_H
Note: See TracBrowser for help on using the repository browser.