|
|
|
@ -26,30 +26,38 @@ |
|
|
|
|
|
|
|
|
|
uint32_t cli_bcapi_test0(struct cli_bc_ctx *ctx, struct foo*, uint32_t); |
|
|
|
|
uint32_t cli_bcapi_test1(struct cli_bc_ctx *ctx, uint32_t, uint32_t); |
|
|
|
|
int32_t cli_bcapi_read(struct cli_bc_ctx *ctx, uint8_t*, int32_t); |
|
|
|
|
int32_t cli_bcapi_seek(struct cli_bc_ctx *ctx, int32_t, uint32_t); |
|
|
|
|
|
|
|
|
|
static uint16_t cli_tmp0[]={32, 70, 32}; |
|
|
|
|
static uint16_t cli_tmp1[]={71}; |
|
|
|
|
static uint16_t cli_tmp2[]={70}; |
|
|
|
|
static uint16_t cli_tmp3[]={32, 32, 32}; |
|
|
|
|
static uint16_t cli_tmp4[]={32, 65, 32}; |
|
|
|
|
|
|
|
|
|
const struct cli_bc_type cli_apicall_types[]={ |
|
|
|
|
{DFunctionType, cli_tmp0, 3}, |
|
|
|
|
{DPointerType, cli_tmp1, 1}, |
|
|
|
|
{DStructType, cli_tmp2, 1}, |
|
|
|
|
{DFunctionType, cli_tmp3, 3} |
|
|
|
|
{DFunctionType, cli_tmp3, 3}, |
|
|
|
|
{DFunctionType, cli_tmp4, 3} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const unsigned cli_apicall_maxtypes=sizeof(cli_apicall_types)/sizeof(cli_apicall_types[0]); |
|
|
|
|
const struct cli_apicall cli_apicalls[]={ |
|
|
|
|
/* Bytecode APIcalls BEGIN */ |
|
|
|
|
{"test0", 0, 0, 1}, |
|
|
|
|
{"test1", 3, 0, 0} |
|
|
|
|
{"test1", 3, 0, 0}, |
|
|
|
|
{"read", 4, 1, 1}, |
|
|
|
|
{"seek", 3, 1, 0} |
|
|
|
|
/* Bytecode APIcalls END */ |
|
|
|
|
}; |
|
|
|
|
const cli_apicall_int2 cli_apicalls0[] = { |
|
|
|
|
cli_bcapi_test1 |
|
|
|
|
cli_bcapi_test1, |
|
|
|
|
cli_bcapi_seek |
|
|
|
|
}; |
|
|
|
|
const cli_apicall_pointer cli_apicalls1[] = { |
|
|
|
|
(cli_apicall_pointer)cli_bcapi_test0 |
|
|
|
|
(cli_apicall_pointer)cli_bcapi_test0, |
|
|
|
|
cli_bcapi_read |
|
|
|
|
}; |
|
|
|
|
const unsigned cli_apicall_maxapi = sizeof(cli_apicalls)/sizeof(cli_apicalls[0]); |
|
|
|
|