优化源码配置宏位置,方便个性化编译
This commit is contained in:
@ -174,6 +174,8 @@ int exce(const int command,ctx *all_ctx)
|
||||
all_ctx->statue = -1;
|
||||
write(all_ctx->fifofd[1],"q",1);
|
||||
return 1;
|
||||
default :
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
@ -186,7 +188,7 @@ int interpret(int mod, ctx *all_ctx,Cmd *cmd_dic)
|
||||
|
||||
split(all_ctx->command,all_ctx);
|
||||
get_args(all_ctx);
|
||||
char *cmd_buf = malloc(MAX_BUF);
|
||||
char *cmd_buf = malloc(INTER_MAX_BUF);
|
||||
int len;
|
||||
if(all_ctx->space_index[0]==0)
|
||||
{
|
||||
@ -214,5 +216,8 @@ int interpret(int mod, ctx *all_ctx,Cmd *cmd_dic)
|
||||
|
||||
if (mod == FILE_MOD)
|
||||
{
|
||||
//todo 读取命令脚本并执行
|
||||
return -1;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
Reference in New Issue
Block a user