Skip to content

Commit cf07b13

Browse files
committed
重命名为 xy_run_get_stdout()
1 parent afc4ba3 commit cf07b13

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/xy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ xy_run_get_status (char *cmd)
862862
* @return 返回命令的执行状态
863863
*/
864864
static int
865-
xy_run_capture (const char *cmd, char **output)
865+
xy_run_get_stdout (const char *cmd, char **output)
866866
{
867867
int cap = 8192; /* 假如1行100个字符,大约支持80行输出 */
868868
char *buf = (char *) xy_malloc0 (cap);

src/recipe/lang/Java.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ char *
7171
pl_java_find_maven_config ()
7272
{
7373
char *output;
74-
int status = xy_run_capture ("mvn -v", &output);
74+
int status = xy_run_get_stdout ("mvn -v", &output);
7575
if (0==status)
7676
{
7777
char *maven_home_line = xy_run_iter_lines ("mvn -v", 0, pl_java_is_maven_home_line);
@@ -88,7 +88,7 @@ char *
8888
pl_java_find_maven_daemon_config ()
8989
{
9090
char *output;
91-
int status = xy_run_capture ("mvnd -v", &output);
91+
int status = xy_run_get_stdout ("mvnd -v", &output);
9292
if (0==status)
9393
{
9494
char *maven_home_line = xy_run_iter_lines ("mvnd -v", 0, pl_java_is_maven_home_line);

0 commit comments

Comments
 (0)