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
RevLine 
[523]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
[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)
[907]21#define INCL_LONGLONG
[902]22#include <os2.h>
[907]23#else
24#if !defined(INCL_LONGLONG)
25#error INCL_LONGLONG required by grep.h
[902]26#endif
[907]27#endif
[902]28
[551]29ULONG SecsSince1980(FDATE * date, FTIME * time);
30VOID GrepThread(VOID * arg);
[2]31
[551]32typedef struct DUPES
33{
[2]34 CHAR *name;
35 ULONG size;
36 FDATE date;
37 FTIME time;
[551]38 INT flags;
39 LONG CRC;
[2]40 struct DUPES *next;
[551]41}
42DUPES;
[2]43
44#define GF_INSERTED 1
45#define GF_SKIPME 2
46
[551]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;
[841]77 ULONGLONG insertedbytes;
78 FILEFINDBUF4L **insertffb;
[551]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;
[2]88
[1208]89// Data declarations
[2]90extern volatile CHAR diegrep;
[1208]91extern HWND hwndStatus;
[902]92
93#endif // GREP_H
Note: See TracBrowser for help on using the repository browser.