[quote:2rqnxdl2]This is our pcode C model. It compiles fine.
Test.c
typedef unsigned char BYTE;
typedef void * LPVOID;
typedef struct
{
char * szName;
BYTE bScope;
LPVOID pVoid;
} SYMBOL;
#define PUBLIC 0
void MAIN( void );
void QOUT( void );
void VirtualMachine( BYTE * pcode, SYMBOL * symbols );
SYMBOL symbols[] = { { "MAIN", PUBLIC, MAIN },
{ "QOUT", PUBLIC, QOUT } };
void MAIN( void )
{
BYTE pcode[] = { 0, 1, 2, 3 };
VirtualMachine( pcode, symbols );
}[/quote:2rqnxdl2]
↧