Subversion Repositories Games.Carmageddon

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 pmbaty 1
#include "tokenval.h"
2
#include "harness/trace.h"
3
#include "resource.h"
4
 
5
// IDA: br_tv_template* __cdecl BrTVTemplateAllocate(void *res, br_tv_template_entry *entries, int n_entries)
6
br_tv_template* BrTVTemplateAllocate(void* res, br_tv_template_entry* entries, int n_entries) {
7
    br_tv_template* t;
8
    LOG_TRACE("(%p, %p, %d)", res, entries, n_entries);
9
 
10
    t = BrResAllocate(res, sizeof(br_tv_template), BR_MEMORY_TOKEN_TEMPLATE);
11
    t->res = t;
12
    t->entries = entries;
13
    t->n_entries = n_entries;
14
    return t;
15
}
16
 
17
// IDA: void __cdecl BrTVTemplateFree(br_tv_template *t)
18
void BrTVTemplateFree(br_tv_template* t) {
19
    LOG_TRACE("(%p)", t);
20
    NOT_IMPLEMENTED();
21
}
22
 
23
// IDA: void __usercall templateResolveNames(br_tv_template *template@<EAX>)
24
void templateResolveNames(br_tv_template* template) {
25
    br_tv_template_entry* tp; // Pierre-Marie Baty -- unused variable
26
    int n; // Pierre-Marie Baty -- unused variable
27
    LOG_TRACE("(%p)", template);
28
    NOT_IMPLEMENTED();
29
}
30
 
31
// IDA: void __usercall templateMakeMap(br_tv_template *template@<EAX>)
32
void templateMakeMap(br_tv_template* template) {
33
    br_tv_template_entry* tp;
34
    char* map;
35
    br_int_32 min;
36
    br_int_32 max;
37
    int i;
38
    int n;
39
    int e;
40
    LOG_TRACE("(%p)", template);
41
    NOT_IMPLEMENTED();
42
}
43
 
44
// IDA: br_fixed_ls* __usercall ConvertFloatToFixed@<EAX>(br_fixed_ls **pextra@<EAX>, br_float *src@<EDX>, br_int_32 count@<EBX>, br_size_t *pextra_space@<ECX>)
45
br_fixed_ls* ConvertFloatToFixed(br_fixed_ls** pextra, br_float* src, br_int_32 count, br_size_t* pextra_space) {
46
    //br_fixed_ls* ret; // Pierre-Marie Baty -- unused variable
47
    LOG_TRACE("(%p, %p, %d, %p)", pextra, src, count, pextra_space);
48
    NOT_IMPLEMENTED();
49
}
50
 
51
// IDA: br_float* __usercall ConvertFixedToFloat@<EAX>(br_float **pextra@<EAX>, br_fixed_ls *src@<EDX>, br_int_32 count@<EBX>, br_size_t *pextra_space@<ECX>)
52
br_float* ConvertFixedToFloat(br_float** pextra, br_fixed_ls* src, br_int_32 count, br_size_t* pextra_space) {
53
    //br_float* ret; // Pierre-Marie Baty -- unused variable
54
    LOG_TRACE("(%p, %p, %d, %p)", pextra, src, count, pextra_space);
55
    NOT_IMPLEMENTED();
56
}
57
 
58
// IDA: br_uint_32* __usercall ConvertLongCopy@<EAX>(br_uint_32 **pextra@<EAX>, br_uint_32 *src@<EDX>, br_int_32 count@<EBX>, br_size_t *pextra_space@<ECX>)
59
br_uint_32* ConvertLongCopy(br_uint_32** pextra, br_uint_32* src, br_int_32 count, br_size_t* pextra_space) {
60
    //br_uint_32* ret; // Pierre-Marie Baty -- unused variable
61
    LOG_TRACE("(%p, %p, %d, %p)", pextra, src, count, pextra_space);
62
    NOT_IMPLEMENTED();
63
}
64
 
65
// IDA: br_error __usercall ValueQuery@<EAX>(br_token_value *tv@<EAX>, void **pextra@<EDX>, br_size_t *pextra_size@<EBX>, void *block@<ECX>, br_tv_template_entry *tep)
66
br_error ValueQuery(br_token_value* tv, void** pextra, br_size_t* pextra_size, void* block, br_tv_template_entry* tep) {
67
    //void* mem; // Pierre-Marie Baty -- unused variable
68
    //br_uint_32* lp; // Pierre-Marie Baty -- unused variable
69
    //int t; // Pierre-Marie Baty -- unused variable
70
    //br_tv_custom* custp; // Pierre-Marie Baty -- unused variable
71
    LOG_TRACE("(%p, %p, %p, %p, %p)", tv, pextra, pextra_size, block, tep);
72
    NOT_IMPLEMENTED();
73
}
74
 
75
// IDA: br_error __usercall ValueSet@<EAX>(void *block@<EAX>, br_token_value *tv@<EDX>, br_tv_template_entry *tep@<EBX>)
76
br_error ValueSet(void* block, br_token_value* tv, br_tv_template_entry* tep) {
77
    void* mem;
78
    int i;
79
    int t;
80
    br_tv_custom* custp;
81
    LOG_TRACE("(%p, %p, %p)", block, tv, tep);
82
    NOT_IMPLEMENTED();
83
}
84
 
85
// IDA: br_size_t __usercall ValueExtraSize@<EAX>(void *block@<EAX>, br_tv_template_entry *tep@<EDX>)
86
br_size_t ValueExtraSize(void* block, br_tv_template_entry* tep) {
87
    //void* mem; // Pierre-Marie Baty -- unused variable
88
    //br_uint_32* lp; // Pierre-Marie Baty -- unused variable
89
    //int t; // Pierre-Marie Baty -- unused variable
90
    //br_tv_custom* custp; // Pierre-Marie Baty -- unused variable
91
    LOG_TRACE("(%p, %p)", block, tep);
92
    NOT_IMPLEMENTED();
93
}
94
 
95
// IDA: br_error __cdecl BrTokenValueQuery(br_uint_32 *pvalue, br_uint_32 *extra, br_size_t extra_size, br_token t, void *block, br_tv_template *template)
96
br_error BrTokenValueQuery(br_uint_32* pvalue, br_uint_32* extra, br_size_t extra_size, br_token t, void* block, br_tv_template* template) {
97
    //br_int_32 o; // Pierre-Marie Baty -- unused variable
98
    //br_tv_template_entry* tep; // Pierre-Marie Baty -- unused variable
99
    //br_token_value tv; // Pierre-Marie Baty -- unused variable
100
    //br_error r; // Pierre-Marie Baty -- unused variable
101
    LOG_TRACE("(%p, %p, %d, %d, %p, %p)", pvalue, extra, extra_size, t, block, template);
102
    NOT_IMPLEMENTED();
103
}
104
 
105
// IDA: br_error __cdecl BrTokenValueQueryMany(br_token_value *tv, void *extra, br_size_t extra_size, br_int_32 *pcount, void *block, br_tv_template *template)
106
br_error BrTokenValueQueryMany(br_token_value* tv, void* extra, br_size_t extra_size, br_int_32* pcount, void* block, br_tv_template* template) {
107
    //br_int_32 o; // Pierre-Marie Baty -- unused variable
108
    //br_tv_template_entry* tep; // Pierre-Marie Baty -- unused variable
109
    //br_error r; // Pierre-Marie Baty -- unused variable
110
    LOG_TRACE("(%p, %p, %d, %p, %p, %p)", tv, extra, extra_size, pcount, block, template);
111
    NOT_IMPLEMENTED();
112
}
113
 
114
// IDA: br_error __cdecl BrTokenValueQueryManySize(br_size_t *psize, br_token_value *tv, void *block, br_tv_template *template)
115
br_error BrTokenValueQueryManySize(br_size_t* psize, br_token_value* tv, void* block, br_tv_template* template) {
116
    //br_int_32 o; // Pierre-Marie Baty -- unused variable
117
    //br_size_t extra_size; // Pierre-Marie Baty -- unused variable
118
    LOG_TRACE("(%p, %p, %p, %p)", psize, tv, block, template);
119
    NOT_IMPLEMENTED();
120
}
121
 
122
// IDA: br_error __cdecl BrTokenValueQueryAll(br_token_value *buffer, br_size_t buffer_size, void *block, br_tv_template *template)
123
br_error BrTokenValueQueryAll(br_token_value* buffer, br_size_t buffer_size, void* block, br_tv_template* template) {
124
    //br_tv_template_entry* tp; // Pierre-Marie Baty -- unused variable
125
    //int n; // Pierre-Marie Baty -- unused variable
126
    //int e; // Pierre-Marie Baty -- unused variable
127
    //br_token_value* tv; // Pierre-Marie Baty -- unused variable
128
    //char* extra; // Pierre-Marie Baty -- unused variable
129
    //br_size_t extra_size; // Pierre-Marie Baty -- unused variable
130
    //br_error r; // Pierre-Marie Baty -- unused variable
131
    LOG_TRACE("(%p, %d, %p, %p)", buffer, buffer_size, block, template);
132
    NOT_IMPLEMENTED();
133
}
134
 
135
// IDA: br_error __cdecl BrTokenValueQueryAllSize(br_size_t *psize, void *block, br_tv_template *template)
136
br_error BrTokenValueQueryAllSize(br_size_t* psize, void* block, br_tv_template* template) {
137
    //br_tv_template_entry* tp; // Pierre-Marie Baty -- unused variable
138
    //int e; // Pierre-Marie Baty -- unused variable
139
    //int n; // Pierre-Marie Baty -- unused variable
140
    //br_size_t extra_size; // Pierre-Marie Baty -- unused variable
141
    LOG_TRACE("(%p, %p, %p)", psize, block, template);
142
    NOT_IMPLEMENTED();
143
}
144
 
145
// IDA: br_error __cdecl BrTokenValueSet(void *mem, br_uint_32 *pcombined_mask, br_token t, br_uint_32 value, br_tv_template *template)
146
br_error BrTokenValueSet(void* mem, br_uint_32* pcombined_mask, br_token t, br_uint_32 value, br_tv_template* template) {
147
    //br_int_32 o; // Pierre-Marie Baty -- unused variable
148
    //br_error r; // Pierre-Marie Baty -- unused variable
149
    //br_token_value tv; // Pierre-Marie Baty -- unused variable
150
    LOG_TRACE("(%p, %p, %d, %d, %p)", mem, pcombined_mask, t, value, template);
151
    NOT_IMPLEMENTED();
152
}
153
 
154
// IDA: br_error __cdecl BrTokenValueSetMany(void *mem, br_int_32 *pcount, br_uint_32 *pcombined_mask, br_token_value *tv, br_tv_template *template)
155
br_error BrTokenValueSetMany(void* mem, br_int_32* pcount, br_uint_32* pcombined_mask, br_token_value* tv, br_tv_template* template) {
156
    //br_int_32 o; // Pierre-Marie Baty -- unused variable
157
    //br_int_32 n; // Pierre-Marie Baty -- unused variable
158
    //br_error r; // Pierre-Marie Baty -- unused variable
159
    //br_uint_32 cm; // Pierre-Marie Baty -- unused variable
160
    STUB();
161
    return 0; // Pierre-Marie Baty -- function must return a value
162
}
163
 
164
// IDA: void __usercall DumpMatrixInteger(br_int_32 *ip@<EAX>, int rows@<EDX>, int cols@<EBX>, char *prefix@<ECX>, char *info_0, char *info_n, br_putline_cbfn *putline, void *arg)
165
void DumpMatrixInteger(br_int_32* ip, int rows, int cols, char* prefix, char* info_0, char* info_n, br_putline_cbfn* putline, void* arg) {
166
    //int i; // Pierre-Marie Baty -- unused variable
167
    //int j; // Pierre-Marie Baty -- unused variable
168
    //char* cp; // Pierre-Marie Baty -- unused variable
169
    //char value[128]; // Pierre-Marie Baty -- unused variable
170
    LOG_TRACE("(%p, %d, %d, \"%s\", \"%s\", \"%s\", %p, %p)", ip, rows, cols, prefix, info_0, info_n, putline, arg);
171
    NOT_IMPLEMENTED();
172
}
173
 
174
// IDA: void __usercall DumpMatrixFixed(br_fixed_ls *xp@<EAX>, int rows@<EDX>, int cols@<EBX>, char *prefix@<ECX>, char *info_0, char *info_n, br_putline_cbfn *putline, void *arg)
175
void DumpMatrixFixed(br_fixed_ls* xp, int rows, int cols, char* prefix, char* info_0, char* info_n, br_putline_cbfn* putline, void* arg) {
176
    //int i; // Pierre-Marie Baty -- unused variable
177
    //int j; // Pierre-Marie Baty -- unused variable
178
    //char* cp; // Pierre-Marie Baty -- unused variable
179
    //char value[128]; // Pierre-Marie Baty -- unused variable
180
    LOG_TRACE("(%p, %d, %d, \"%s\", \"%s\", \"%s\", %p, %p)", xp, rows, cols, prefix, info_0, info_n, putline, arg);
181
    NOT_IMPLEMENTED();
182
}
183
 
184
// IDA: void __usercall DumpMatrixFloat(br_float *fp@<EAX>, int rows@<EDX>, int cols@<EBX>, char *prefix@<ECX>, char *info_0, char *info_n, br_putline_cbfn *putline, void *arg)
185
void DumpMatrixFloat(br_float* fp, int rows, int cols, char* prefix, char* info_0, char* info_n, br_putline_cbfn* putline, void* arg) {
186
    //int i; // Pierre-Marie Baty -- unused variable
187
    //int j; // Pierre-Marie Baty -- unused variable
188
    //char* cp; // Pierre-Marie Baty -- unused variable
189
    //char value[128]; // Pierre-Marie Baty -- unused variable
190
    LOG_TRACE("(%p, %d, %d, \"%s\", \"%s\", \"%s\", %p, %p)", fp, rows, cols, prefix, info_0, info_n, putline, arg);
191
    NOT_IMPLEMENTED();
192
}
193
 
194
// IDA: void __usercall DumpObject(br_object *h@<EAX>, char *prefix@<EDX>, char *info@<EBX>, br_putline_cbfn *putline@<ECX>, void *arg)
195
void DumpObject(br_object* h, char* prefix, char* info, br_putline_cbfn* putline, void* arg) {
196
    //char value[128]; // Pierre-Marie Baty -- unused variable
197
    //char* dev_ident; // Pierre-Marie Baty -- unused variable
198
    //char* h_ident; // Pierre-Marie Baty -- unused variable
199
    //br_object* dev; // Pierre-Marie Baty -- unused variable
200
    LOG_TRACE("(%p, \"%s\", \"%s\", %p, %p)", h, prefix, info, putline, arg);
201
    NOT_IMPLEMENTED();
202
}
203
 
204
// IDA: void __cdecl BrTokenValueDump(br_token_value *tv, char *prefix, br_putline_cbfn *putline, void *arg)
205
void BrTokenValueDump(br_token_value* tv, char* prefix, br_putline_cbfn* putline, void* arg) {
206
    //char* id; // Pierre-Marie Baty -- unused variable
207
    //char value[128]; // Pierre-Marie Baty -- unused variable
208
    //char tmp[128]; // Pierre-Marie Baty -- unused variable
209
    //char info_0[64]; // Pierre-Marie Baty -- unused variable
210
    //char* info_n; // Pierre-Marie Baty -- unused variable
211
    //char* pvalue; // Pierre-Marie Baty -- unused variable
212
    //int n; // Pierre-Marie Baty -- unused variable
213
    //int i; // Pierre-Marie Baty -- unused variable
214
    //br_object** pph; // Pierre-Marie Baty -- unused variable
215
    //void** ppp; // Pierre-Marie Baty -- unused variable
216
    //br_token* pt; // Pierre-Marie Baty -- unused variable
217
    LOG_TRACE("(%p, \"%s\", %p, %p)", tv, prefix, putline, arg);
218
    NOT_IMPLEMENTED();
219
}
220
 
221
// IDA: br_error __cdecl BrStringToTokenValue(br_token_value *buffer, br_size_t buffer_size, char *str)
222
br_error BrStringToTokenValue(br_token_value* buffer, br_size_t buffer_size, char* str) {
223
    //br_lexer* l; // Pierre-Marie Baty -- unused variable
224
    //br_error r; // Pierre-Marie Baty -- unused variable
225
    //static br_lexer_keyword keywords[4]; // Pierre-Marie Baty -- unused variable
226
    LOG_TRACE("(%p, %d, \"%s\")", buffer, buffer_size, str);
227
    NOT_IMPLEMENTED();
228
}
229
 
230
// IDA: br_error __usercall parseTokenValue@<EAX>(br_lexer *l@<EAX>, br_token_value *tv@<EDX>, br_size_t size@<EBX>)
231
br_error parseTokenValue(br_lexer* l, br_token_value* tv, br_size_t size) {
232
    //int len; // Pierre-Marie Baty -- unused variable
233
    //char name[40]; // Pierre-Marie Baty -- unused variable
234
    //br_token type; // Pierre-Marie Baty -- unused variable
235
    //static br_token real_types[2]; // Pierre-Marie Baty -- unused variable
236
    //br_error r; // Pierre-Marie Baty -- unused variable
237
    LOG_TRACE("(%p, %p, %d)", l, tv, size);
238
    NOT_IMPLEMENTED();
239
}
240
 
241
// IDA: br_boolean __cdecl BrTokenValueCompare(br_token_value *tv1, br_token_value *tv2)
242
br_boolean BrTokenValueCompare(br_token_value* tv1, br_token_value* tv2) {
243
    //int i; // Pierre-Marie Baty -- unused variable
244
    LOG_TRACE("(%p, %p)", tv1, tv2);
245
    NOT_IMPLEMENTED();
246
}
247
 
248
// IDA: br_error __usercall BrTokenValueDup@<EAX>(br_token_value **dstp@<EAX>, br_token_value *src@<EDX>)
249
br_error BrTokenValueDup(br_token_value** dstp, br_token_value* src) {
250
    //int i; // Pierre-Marie Baty -- unused variable
251
    //int c; // Pierre-Marie Baty -- unused variable
252
    //br_token_value* tv; // Pierre-Marie Baty -- unused variable
253
    LOG_TRACE("(%p, %p)", dstp, src);
254
    NOT_IMPLEMENTED();
255
}