source: trunk/dll/grep.h@ 1707

Last change on this file since 1707 was 1707, checked in by Steven Levine, 12 years ago

Support git, svn, hg etc. version control metadata directory excludes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
RevLine 
[523]1
2/***********************************************************************
3
4 $Id: grep.h 1707 2014-02-08 20:14:08Z stevenhl $
5
6 Grep support
7
8 Copyright (c) 1993-98 M. Kimes
[1707]9 Copyright (c) 2006, 2014 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
[1707]14 08 Feb 14 SHL Add ignoreSVN
[523]15
16***********************************************************************/
17
[902]18#if !defined(GREP_H)
19#define GREP_H
20
21#if !defined(OS2_INCLUDED)
[907]22#define INCL_LONGLONG
[902]23#include <os2.h>
[907]24#else
25#if !defined(INCL_LONGLONG)
26#error INCL_LONGLONG required by grep.h
[902]27#endif
[907]28#endif
[902]29
[551]30ULONG SecsSince1980(FDATE * date, FTIME * time);
31VOID GrepThread(VOID * arg);
[2]32
[551]33typedef struct DUPES
34{
[2]35 CHAR *name;
36 ULONG size;
37 FDATE date;
38 FTIME time;
[551]39 INT flags;
40 LONG CRC;
[2]41 struct DUPES *next;
[551]42}
43DUPES;
[2]44
45#define GF_INSERTED 1
46#define GF_SKIPME 2
47
[551]48typedef struct
49{
50 USHORT size;
[1707]51 CHAR fileMasks[8192]; // ; separated
[551]52 CHAR fileMask[CCHMAXPATH + 14];
53 CHAR curdir[CCHMAXPATH];
54 LONG fileCount;
55 HWND hwnd;
56 HWND hwndFiles;
57 HWND hwndCurFile;
58 BOOL caseFlag;
59 BOOL absFlag;
60 BOOL dirFlag;
61 BOOL sayfiles;
62 BOOL searchEAs;
63 BOOL searchFiles;
64 BOOL finddupes;
65 BOOL CRCdupes;
[1707]66 BOOL ignoreSVN;
[551]67 BOOL nosizedupes;
68 BOOL ignoreextdupes;
69 BOOL findifany;
70 BOOL anyexcludes;
71 ULONG greaterthan;
72 ULONG lessthan;
73 ULONG olderthan;
74 ULONG newerthan;
75 ULONG numfiles;
76 HAB ghab;
77 CHAR *stopflag;
78 ULONG toinsert;
[841]79 ULONGLONG insertedbytes;
80 FILEFINDBUF4L **insertffb;
[551]81 CHAR **dir;
82 ULONG attrFile;
83 ULONG antiattr;
84 DUPES *dupehead, *dupelast, **dupenames, **dupesizes;
85 CHAR searchPattern[4096];
86 ULONG numlines;
87 CHAR *matched;
88}
89GREP;
[2]90
[1208]91// Data declarations
[2]92extern volatile CHAR diegrep;
[1208]93extern HWND hwndStatus;
[902]94
95#endif // GREP_H
Note: See TracBrowser for help on using the repository browser.