]> Dogcows Code - chaz/thecheat/blob - Searching.h
The Cheat 1.2.1
[chaz/thecheat] / Searching.h
1
2 // **********************************************************************
3 // The Cheat - A universal game cheater for Mac OS X
4 // (C) 2003-2005 Chaz McGarvey (BrokenZipper)
5 //
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)
9 // any later version.
10 //
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.
15 //
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.
19 //
20
21
22 #import <Cocoa/Cocoa.h>
23
24 #import "ThreadedTask.h"
25 #import "SearchContext.h"
26
27 #import "VMRegion.h"
28
29
30 extern __inline__ void ReportSearchProgress( ThreadedTask *task, unsigned iteration, unsigned regions, int *progress );
31
32
33
34 /*
35 * Search iteration functions:
36 * The first set is the generic one, the other is for strings.
37 */
38
39 int SearchIteration( ThreadedTask *task, unsigned iteration );
40 int SearchIterationAgain( ThreadedTask *task, unsigned iteration );
41 int SearchIterationLastValue( ThreadedTask *task, unsigned iteration );
42
43 int SearchStringIteration( ThreadedTask *task, unsigned iteration );
44 int SearchStringIterationAgain( ThreadedTask *task, unsigned iteration );
45 int SearchStringIterationLastValue( ThreadedTask *task, unsigned iteration );
46
47
48 /*
49 * Compare functions...
50 * "Function( first, second)" -> "first [operator] second"
51 */
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 );
62
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 );
73
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 );
84
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 );
95
96 /* Strings are handled by special iteration functions. */
97
98
99
This page took 0.0322249999999999 seconds and 4 git commands to generate.