source: trunk/dll/grep.h@ 1208

Last change on this file since 1208 was 1208, checked in by John Small, 17 years ago

Ticket 187: Move data declarations/definitions out of fm3dll.h

  • 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 1208 2008-09-13 06:50:20Z jbs $
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
29ULONG SecsSince1980(FDATE * date, FTIME * time);
30VOID GrepThread(VOID * arg);
31
32typedef 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}
42DUPES;
43
44#define GF_INSERTED 1
45#define GF_SKIPME 2
46
47typedef 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}
87GREP;
88
89// Data declarations
90extern volatile CHAR diegrep;
91extern HWND hwndStatus;
92
93#endif // GREP_H
Note: See TracBrowser for help on using the repository browser.