Corrected pcode_test.h function pointer declaration in TestInfo struct.

This commit is contained in:
ghidorahrex 2019-07-26 15:44:46 -04:00
parent d7877b0353
commit dd92314b85

View file

@ -29,9 +29,6 @@
#define PACKED_STRUCTURE
#endif
typedef i4 (*entryFunc)(i4 * val);
typedef i4 (*breakOn)(void);
typedef i4 (*breakOnD)(const char *file, int line, const char *func);
typedef i4 (*testFuncPtr)(void);
typedef struct PACKED_STRUCTURE FunctionInfo
@ -46,9 +43,9 @@ typedef struct PACKED_STRUCTURE TestInfo
char id[8]; /* id constains a "Magic Number" which will allow us to find this in a binary */
u4 ptrSz; /* how many bytes in a pointer? */
u4 byteOrder; /* value 0x01020304 used to detect endianess */
breakOn onPass; /* address of breakOnPass function, (where it goes on test pass) */
breakOn onError; /* address of breakOnError function, (where it goes on test failure) */
breakOnD onDone; /* address of breakOnDone function, (where it goes when all test done) */
void *onPass; /* address of breakOnPass function, (where it goes on test pass) */
void *onError; /* address of breakOnError function, (where it goes on test failure) */
void *onDone; /* address of breakOnDone function, (where it goes when all test done) */
u4 numpass; /* How many test passed */
u4 numfail; /* How many test failed */
u4 lastTestPos; /* Last test index number */