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
RevLine 
[523]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
[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)
21#include <os2.h>
22#endif
23
[551]24ULONG SecsSince1980(FDATE * date, FTIME * time);
25VOID GrepThread(VOID * arg);
[2]26
[551]27typedef struct DUPES
28{
[2]29 CHAR *name;
30 ULONG size;
31 FDATE date;
32 FTIME time;
[551]33 INT flags;
34 LONG CRC;
[2]35 struct DUPES *next;
[551]36}
37DUPES;
[2]38
39#define GF_INSERTED 1
40#define GF_SKIPME 2
41
[551]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;
[841]72 ULONGLONG insertedbytes;
73 FILEFINDBUF4L **insertffb;
[551]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;
[2]83
84extern volatile CHAR diegrep;
[902]85
86#endif // GREP_H
Note: See TracBrowser for help on using the repository browser.