|
|
|
|
@ -36,47 +36,51 @@ uint32_t cli_bcapi_debug_print_uint(struct cli_bc_ctx *ctx, uint32_t, uint32_t); |
|
|
|
|
|
|
|
|
|
const struct cli_apiglobal cli_globals[] = { |
|
|
|
|
/* Bytecode globals BEGIN */ |
|
|
|
|
{"__clambc_match_counts", GLOBAL_MATCH_COUNTS, 72, |
|
|
|
|
{"__clambc_match_counts", GLOBAL_MATCH_COUNTS, 73, |
|
|
|
|
((char*)&((struct cli_bc_ctx*)0)->hooks.match_counts - (char*)NULL)}, |
|
|
|
|
{"__clambc_exeinfo", GLOBAL_EXEINFO, 69, |
|
|
|
|
{"__clambc_exeinfo", GLOBAL_EXEINFO, 70, |
|
|
|
|
((char*)&((struct cli_bc_ctx*)0)->hooks.exeinfo - (char*)NULL)}, |
|
|
|
|
{"__clambc_kind", GLOBAL_KIND, 8, |
|
|
|
|
((char*)&((struct cli_bc_ctx*)0)->hooks.kind - (char*)NULL)} |
|
|
|
|
{"__clambc_kind", GLOBAL_KIND, 16, |
|
|
|
|
((char*)&((struct cli_bc_ctx*)0)->hooks.kind - (char*)NULL)}, |
|
|
|
|
{"__clambc_pedata", GLOBAL_PEDATA, 69, |
|
|
|
|
((char*)&((struct cli_bc_ctx*)0)->hooks.pedata - (char*)NULL)} |
|
|
|
|
/* Bytecode globals END */ |
|
|
|
|
}; |
|
|
|
|
const unsigned cli_apicall_maxglobal = _LAST_GLOBAL-1; |
|
|
|
|
static uint16_t cli_tmp0[]={70, 32, 32, 16}; |
|
|
|
|
static uint16_t cli_tmp1[]={71}; |
|
|
|
|
static uint16_t cli_tmp2[]={32, 32, 32, 32, 32, 32, 32, 32, 32}; |
|
|
|
|
static uint16_t cli_tmp3[]={32}; |
|
|
|
|
static uint16_t cli_tmp4[]={32, 32, 32}; |
|
|
|
|
static uint16_t cli_tmp5[]={32, 65, 32}; |
|
|
|
|
static uint16_t cli_tmp6[]={32, 76, 32}; |
|
|
|
|
static uint16_t cli_tmp7[]={77}; |
|
|
|
|
static uint16_t cli_tmp8[]={76}; |
|
|
|
|
static uint16_t cli_tmp0[]={}; |
|
|
|
|
static uint16_t cli_tmp1[]={71, 32, 32, 16}; |
|
|
|
|
static uint16_t cli_tmp2[]={72}; |
|
|
|
|
static uint16_t cli_tmp3[]={32, 32, 32, 32, 32, 32, 32, 32, 32}; |
|
|
|
|
static uint16_t cli_tmp4[]={32}; |
|
|
|
|
static uint16_t cli_tmp5[]={32, 32, 32}; |
|
|
|
|
static uint16_t cli_tmp6[]={32, 65, 32}; |
|
|
|
|
static uint16_t cli_tmp7[]={32, 77, 32}; |
|
|
|
|
static uint16_t cli_tmp8[]={78}; |
|
|
|
|
static uint16_t cli_tmp9[]={77}; |
|
|
|
|
|
|
|
|
|
const struct cli_bc_type cli_apicall_types[]={ |
|
|
|
|
{DStructType, cli_tmp0, 4, 0, 0}, |
|
|
|
|
{DPointerType, cli_tmp1, 1, 0, 0}, |
|
|
|
|
{DStructType, cli_tmp2, 9, 0, 0}, |
|
|
|
|
{DArrayType, cli_tmp3, 64, 0, 0}, |
|
|
|
|
{DFunctionType, cli_tmp4, 3, 0, 0}, |
|
|
|
|
{, cli_tmp0, , 0, 0}, |
|
|
|
|
{DStructType, cli_tmp1, 4, 0, 0}, |
|
|
|
|
{DPointerType, cli_tmp2, 1, 0, 0}, |
|
|
|
|
{DStructType, cli_tmp3, 9, 0, 0}, |
|
|
|
|
{DArrayType, cli_tmp4, 64, 0, 0}, |
|
|
|
|
{DFunctionType, cli_tmp5, 3, 0, 0}, |
|
|
|
|
{DFunctionType, cli_tmp6, 3, 0, 0}, |
|
|
|
|
{DPointerType, cli_tmp7, 1, 0, 0}, |
|
|
|
|
{DStructType, cli_tmp8, 1, 0, 0} |
|
|
|
|
{DFunctionType, cli_tmp7, 3, 0, 0}, |
|
|
|
|
{DPointerType, cli_tmp8, 1, 0, 0}, |
|
|
|
|
{DStructType, cli_tmp9, 1, 0, 0} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const unsigned cli_apicall_maxtypes=sizeof(cli_apicall_types)/sizeof(cli_apicall_types[0]); |
|
|
|
|
const struct cli_apicall cli_apicalls[]={ |
|
|
|
|
/* Bytecode APIcalls BEGIN */ |
|
|
|
|
{"test0", 6, 0, 1}, |
|
|
|
|
{"test1", 4, 0, 0}, |
|
|
|
|
{"read", 5, 1, 1}, |
|
|
|
|
{"seek", 4, 1, 0}, |
|
|
|
|
{"setvirusname", 5, 2, 1}, |
|
|
|
|
{"debug_print_str", 5, 3, 1}, |
|
|
|
|
{"debug_print_uint", 4, 2, 0} |
|
|
|
|
{"test0", 7, 0, 1}, |
|
|
|
|
{"test1", 5, 0, 0}, |
|
|
|
|
{"read", 6, 1, 1}, |
|
|
|
|
{"seek", 5, 1, 0}, |
|
|
|
|
{"setvirusname", 6, 2, 1}, |
|
|
|
|
{"debug_print_str", 6, 3, 1}, |
|
|
|
|
{"debug_print_uint", 5, 2, 0} |
|
|
|
|
/* Bytecode APIcalls END */ |
|
|
|
|
}; |
|
|
|
|
const cli_apicall_int2 cli_apicalls0[] = { |
|
|
|
|
|