]> Dogcows Code - chaz/thecheat/blob - Searching.h
The Cheat 1.2
[chaz/thecheat] / Searching.h
1 //
2 // Searching.h
3 // The Cheat
4 //
5 // Created by Chaz McGarvey on 12/28/04.
6 // Copyright 2004 Chaz McGarvey. All rights reserved.
7 //
8
9 #import <Cocoa/Cocoa.h>
10
11 #import "ThreadedTask.h"
12 #import "SearchContext.h"
13
14 #import "VMRegion.h"
15
16
17 extern __inline__ void ReportSearchProgress( ThreadedTask *task, unsigned iteration, unsigned regions, int *progress );
18
19
20
21 /*
22 * Search iteration functions:
23 * The first set is the generic one, the other is for strings.
24 */
25
26 int SearchIteration( ThreadedTask *task, unsigned iteration );
27 int SearchIterationAgain( ThreadedTask *task, unsigned iteration );
28 int SearchIterationLastValue( ThreadedTask *task, unsigned iteration );
29
30 int SearchStringIteration( ThreadedTask *task, unsigned iteration );
31 int SearchStringIterationAgain( ThreadedTask *task, unsigned iteration );
32 int SearchStringIterationLastValue( ThreadedTask *task, unsigned iteration );
33
34
35 /*
36 * Compare functions...
37 * "Function( first, second)" -> "first [operator] second"
38 */
39 BOOL EqualInt64( void const *first, void const *second );
40 BOOL EqualInt32( void const *first, void const *second );
41 BOOL EqualInt16( void const *first, void const *second );
42 BOOL EqualInt8( void const *first, void const *second );
43 BOOL EqualUInt64( void const *first, void const *second );
44 BOOL EqualUInt32( void const *first, void const *second );
45 BOOL EqualUInt16( void const *first, void const *second );
46 BOOL EqualUInt8( void const *first, void const *second );
47 BOOL EqualFloat( void const *first, void const *second );
48 BOOL EqualDouble( void const *first, void const *second );
49
50 BOOL NotEqualInt64( void const *first, void const *second );
51 BOOL NotEqualInt32( void const *first, void const *second );
52 BOOL NotEqualInt16( void const *first, void const *second );
53 BOOL NotEqualInt8( void const *first, void const *second );
54 BOOL NotEqualUInt64( void const *first, void const *second );
55 BOOL NotEqualUInt32( void const *first, void const *second );
56 BOOL NotEqualUInt16( void const *first, void const *second );
57 BOOL NotEqualUInt8( void const *first, void const *second );
58 BOOL NotEqualFloat( void const *first, void const *second );
59 BOOL NotEqualDouble( void const *first, void const *second );
60
61 BOOL LessThanInt64( void const *first, void const *second );
62 BOOL LessThanInt32( void const *first, void const *second );
63 BOOL LessThanInt16( void const *first, void const *second );
64 BOOL LessThanInt8( void const *first, void const *second );
65 BOOL LessThanUInt64( void const *first, void const *second );
66 BOOL LessThanUInt32( void const *first, void const *second );
67 BOOL LessThanUInt16( void const *first, void const *second );
68 BOOL LessThanUInt8( void const *first, void const *second );
69 BOOL LessThanFloat( void const *first, void const *second );
70 BOOL LessThanDouble( void const *first, void const *second );
71
72 BOOL GreaterThanInt64( void const *first, void const *second );
73 BOOL GreaterThanInt32( void const *first, void const *second );
74 BOOL GreaterThanInt16( void const *first, void const *second );
75 BOOL GreaterThanInt8( void const *first, void const *second );
76 BOOL GreaterThanUInt64( void const *first, void const *second );
77 BOOL GreaterThanUInt32( void const *first, void const *second );
78 BOOL GreaterThanUInt16( void const *first, void const *second );
79 BOOL GreaterThanUInt8( void const *first, void const *second );
80 BOOL GreaterThanFloat( void const *first, void const *second );
81 BOOL GreaterThanDouble( void const *first, void const *second );
82
83 /* Strings are handled by special iteration functions. */
84
85
86
This page took 0.033548 seconds and 4 git commands to generate.