runtime: adjust formatting
This commit is contained in:
@@ -16,9 +16,8 @@ static enum bshell_status get_callable_name_static(
|
|||||||
const fx_type *ty,
|
const fx_type *ty,
|
||||||
fx_string *out)
|
fx_string *out)
|
||||||
{
|
{
|
||||||
bshell_cmdlet_class *class = fx_type_get_interface(
|
bshell_cmdlet_class *class
|
||||||
ty,
|
= fx_type_get_interface(ty, BSHELL_TYPE_CMDLET);
|
||||||
BSHELL_TYPE_CMDLET);
|
|
||||||
if (!class) {
|
if (!class) {
|
||||||
return BSHELL_ERR_NOT_SUPPORTED;
|
return BSHELL_ERR_NOT_SUPPORTED;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,10 @@ enum bshell_status cmdcall_load(
|
|||||||
{
|
{
|
||||||
struct bshell_cmdcall_ast_node *cmdcall;
|
struct bshell_cmdcall_ast_node *cmdcall;
|
||||||
cmdcall = (struct bshell_cmdcall_ast_node *)value->v_node;
|
cmdcall = (struct bshell_cmdcall_ast_node *)value->v_node;
|
||||||
bshell_scriptblock_push_instruction(ctx->c_block, BSHELL_OPCODE_PEXEC, 1);
|
bshell_scriptblock_push_instruction(
|
||||||
|
ctx->c_block,
|
||||||
|
BSHELL_OPCODE_PEXEC,
|
||||||
|
1);
|
||||||
return BSHELL_SUCCESS;
|
return BSHELL_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user