]>
Dogcows Code - chaz/thecheat/blob - Searching.h
2 // **********************************************************************
3 // The Cheat - A universal game cheater for Mac OS X
4 // (C) 2003-2005 Chaz McGarvey (BrokenZipper)
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 1, or (at your option)
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #import <Cocoa/Cocoa.h>
24 #import "ThreadedTask.h"
25 #import "SearchContext.h"
30 extern __inline__
void ReportSearchProgress( ThreadedTask
*task
, unsigned iteration
, unsigned regions
, int *progress
);
35 * Search iteration functions:
36 * The first set is the generic one, the other is for strings.
39 int SearchIteration( ThreadedTask
*task
, unsigned iteration
);
40 int SearchIterationAgain( ThreadedTask
*task
, unsigned iteration
);
41 int SearchIterationLastValue( ThreadedTask
*task
, unsigned iteration
);
43 int SearchStringIteration( ThreadedTask
*task
, unsigned iteration
);
44 int SearchStringIterationAgain( ThreadedTask
*task
, unsigned iteration
);
45 int SearchStringIterationLastValue( ThreadedTask
*task
, unsigned iteration
);
49 * Compare functions...
50 * "Function( first, second)" -> "first [operator] second"
52 BOOL
EqualInt64( void const *first
, void const *second
);
53 BOOL
EqualInt32( void const *first
, void const *second
);
54 BOOL
EqualInt16( void const *first
, void const *second
);
55 BOOL
EqualInt8( void const *first
, void const *second
);
56 BOOL
EqualUInt64( void const *first
, void const *second
);
57 BOOL
EqualUInt32( void const *first
, void const *second
);
58 BOOL
EqualUInt16( void const *first
, void const *second
);
59 BOOL
EqualUInt8( void const *first
, void const *second
);
60 BOOL
EqualFloat( void const *first
, void const *second
);
61 BOOL
EqualDouble( void const *first
, void const *second
);
63 BOOL
NotEqualInt64( void const *first
, void const *second
);
64 BOOL
NotEqualInt32( void const *first
, void const *second
);
65 BOOL
NotEqualInt16( void const *first
, void const *second
);
66 BOOL
NotEqualInt8( void const *first
, void const *second
);
67 BOOL
NotEqualUInt64( void const *first
, void const *second
);
68 BOOL
NotEqualUInt32( void const *first
, void const *second
);
69 BOOL
NotEqualUInt16( void const *first
, void const *second
);
70 BOOL
NotEqualUInt8( void const *first
, void const *second
);
71 BOOL
NotEqualFloat( void const *first
, void const *second
);
72 BOOL
NotEqualDouble( void const *first
, void const *second
);
74 BOOL
LessThanInt64( void const *first
, void const *second
);
75 BOOL
LessThanInt32( void const *first
, void const *second
);
76 BOOL
LessThanInt16( void const *first
, void const *second
);
77 BOOL
LessThanInt8( void const *first
, void const *second
);
78 BOOL
LessThanUInt64( void const *first
, void const *second
);
79 BOOL
LessThanUInt32( void const *first
, void const *second
);
80 BOOL
LessThanUInt16( void const *first
, void const *second
);
81 BOOL
LessThanUInt8( void const *first
, void const *second
);
82 BOOL
LessThanFloat( void const *first
, void const *second
);
83 BOOL
LessThanDouble( void const *first
, void const *second
);
85 BOOL
GreaterThanInt64( void const *first
, void const *second
);
86 BOOL
GreaterThanInt32( void const *first
, void const *second
);
87 BOOL
GreaterThanInt16( void const *first
, void const *second
);
88 BOOL
GreaterThanInt8( void const *first
, void const *second
);
89 BOOL
GreaterThanUInt64( void const *first
, void const *second
);
90 BOOL
GreaterThanUInt32( void const *first
, void const *second
);
91 BOOL
GreaterThanUInt16( void const *first
, void const *second
);
92 BOOL
GreaterThanUInt8( void const *first
, void const *second
);
93 BOOL
GreaterThanFloat( void const *first
, void const *second
);
94 BOOL
GreaterThanDouble( void const *first
, void const *second
);
96 /* Strings are handled by special iteration functions. */
This page took 0.039651 seconds and 5 git commands to generate.