]> Dogcows Code - chaz/thecheat/blob - Searching.h
update contact information and project URL
[chaz/thecheat] / Searching.h
1
2 /*
3 * The Cheat - The legendary universal game trainer for Mac OS X.
4 * http://www.brokenzipper.com/trac/wiki/TheCheat
5 *
6 * Copyright (c) 2003-2011, Charles McGarvey et al.
7 *
8 * Distributable under the terms and conditions of the 2-clause BSD
9 * license; see the file COPYING for the legal text of the license.
10 */
11
12
13 #import <Cocoa/Cocoa.h>
14
15 #import "ThreadedTask.h"
16 #import "SearchContext.h"
17
18 #import "VMRegion.h"
19
20
21 extern __inline__ void ReportSearchProgress( ThreadedTask *task, unsigned iteration, unsigned regions, int *progress );
22
23
24
25 /*
26 * Search iteration functions:
27 * The first set is the generic one, the other is for strings.
28 */
29
30 int SearchIteration( ThreadedTask *task, unsigned iteration );
31 int SearchIterationAgain( ThreadedTask *task, unsigned iteration );
32 int SearchIterationLastValue( ThreadedTask *task, unsigned iteration );
33
34 int SearchStringIteration( ThreadedTask *task, unsigned iteration );
35 int SearchStringIterationAgain( ThreadedTask *task, unsigned iteration );
36 int SearchStringIterationLastValue( ThreadedTask *task, unsigned iteration );
37
38
39 /*
40 * Compare functions...
41 * "Function( first, second)" -> "first [operator] second"
42 */
43 BOOL EqualInt64( void const *first, void const *second );
44 BOOL EqualInt32( void const *first, void const *second );
45 BOOL EqualInt16( void const *first, void const *second );
46 BOOL EqualInt8( void const *first, void const *second );
47 BOOL EqualUInt64( void const *first, void const *second );
48 BOOL EqualUInt32( void const *first, void const *second );
49 BOOL EqualUInt16( void const *first, void const *second );
50 BOOL EqualUInt8( void const *first, void const *second );
51 BOOL EqualFloat( void const *first, void const *second );
52 BOOL EqualDouble( void const *first, void const *second );
53
54 BOOL NotEqualInt64( void const *first, void const *second );
55 BOOL NotEqualInt32( void const *first, void const *second );
56 BOOL NotEqualInt16( void const *first, void const *second );
57 BOOL NotEqualInt8( void const *first, void const *second );
58 BOOL NotEqualUInt64( void const *first, void const *second );
59 BOOL NotEqualUInt32( void const *first, void const *second );
60 BOOL NotEqualUInt16( void const *first, void const *second );
61 BOOL NotEqualUInt8( void const *first, void const *second );
62 BOOL NotEqualFloat( void const *first, void const *second );
63 BOOL NotEqualDouble( void const *first, void const *second );
64
65 BOOL LessThanInt64( void const *first, void const *second );
66 BOOL LessThanInt32( void const *first, void const *second );
67 BOOL LessThanInt16( void const *first, void const *second );
68 BOOL LessThanInt8( void const *first, void const *second );
69 BOOL LessThanUInt64( void const *first, void const *second );
70 BOOL LessThanUInt32( void const *first, void const *second );
71 BOOL LessThanUInt16( void const *first, void const *second );
72 BOOL LessThanUInt8( void const *first, void const *second );
73 BOOL LessThanFloat( void const *first, void const *second );
74 BOOL LessThanDouble( void const *first, void const *second );
75
76 BOOL GreaterThanInt64( void const *first, void const *second );
77 BOOL GreaterThanInt32( void const *first, void const *second );
78 BOOL GreaterThanInt16( void const *first, void const *second );
79 BOOL GreaterThanInt8( void const *first, void const *second );
80 BOOL GreaterThanUInt64( void const *first, void const *second );
81 BOOL GreaterThanUInt32( void const *first, void const *second );
82 BOOL GreaterThanUInt16( void const *first, void const *second );
83 BOOL GreaterThanUInt8( void const *first, void const *second );
84 BOOL GreaterThanFloat( void const *first, void const *second );
85 BOOL GreaterThanDouble( void const *first, void const *second );
86
87 /* Strings are handled by special iteration functions. */
88
89
90
This page took 0.038518 seconds and 4 git commands to generate.