Skip to content

Commit f8e7685

Browse files
committed
fix #28
1 parent 969e659 commit f8e7685

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

phpdbg_help.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ PHPDBG_HELP(set) /* {{{ */
458458
++set_command;
459459
}
460460
}
461+
#ifndef _WIN32
461462
phpdbg_notice("Colors");
462463
{
463464
const phpdbg_color_t *color = phpdbg_get_colors(TSRMLS_C);
@@ -479,6 +480,7 @@ PHPDBG_HELP(set) /* {{{ */
479480
}
480481
}
481482
phpdbg_writeln("The <element> for set color can be \"prompt\", \"notice\", or \"error\"");
483+
#endif
482484
phpdbg_help_footer();
483485
return SUCCESS;
484486
} /* }}} */

phpdbg_set.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ PHPDBG_SET(break) /* {{{ */
6363
return SUCCESS;
6464
} /* }}} */
6565

66+
#ifndef _WIN32
6667
PHPDBG_SET(color) /* {{{ */
6768
{
6869
if ((param->type == STR_PARAM) && (input->argc == 3)) {
@@ -104,6 +105,7 @@ PHPDBG_SET(color) /* {{{ */
104105
}
105106
return SUCCESS;
106107
} /* }}} */
108+
#endif
107109

108110
PHPDBG_SET(oplog) /* {{{ */
109111
{

phpdbg_set.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@
2525
#define PHPDBG_SET(name) PHPDBG_COMMAND(set_##name)
2626

2727
PHPDBG_SET(prompt);
28+
#ifndef _WIN32
2829
PHPDBG_SET(color);
30+
#endif
2931
PHPDBG_SET(oplog);
3032
PHPDBG_SET(break);
3133

3234
static const phpdbg_command_t phpdbg_set_commands[] = {
3335
PHPDBG_COMMAND_D_EX(prompt, "usage: set prompt <string>", 'p', set_prompt, NULL, 0),
36+
#ifndef _WIN32
3437
PHPDBG_COMMAND_D_EX(color, "usage: set color <element> <color>", 'c', set_color, NULL, 1),
38+
#endif
3539
PHPDBG_COMMAND_D_EX(oplog, "usage: set oplog <output>", 'O', set_oplog, NULL, 0),
3640
PHPDBG_COMMAND_D_EX(break, "usage: set break <on|off>", 'b', set_break, NULL, 0),
3741
PHPDBG_END_COMMAND

0 commit comments

Comments
 (0)