]> granicus.if.org Git - php/commitdiff
fix #28
authorkrakjoe <joe.watkins@live.co.uk>
Tue, 26 Nov 2013 16:02:39 +0000 (16:02 +0000)
committerkrakjoe <joe.watkins@live.co.uk>
Tue, 26 Nov 2013 16:02:39 +0000 (16:02 +0000)
phpdbg_help.c
phpdbg_set.c
phpdbg_set.h

index b6bc28cb66dfcb7f1aa9ccd47fce50955904f98e..eaf5f649d898bf4d45f519c59101ecf0da47ee3e 100644 (file)
@@ -458,6 +458,7 @@ PHPDBG_HELP(set) /* {{{ */
                        ++set_command;
                }
        }
+#ifndef _WIN32
        phpdbg_notice("Colors");
        {
                const phpdbg_color_t *color = phpdbg_get_colors(TSRMLS_C);
@@ -479,6 +480,7 @@ PHPDBG_HELP(set) /* {{{ */
                }
        }
        phpdbg_writeln("The <element> for set color can be \"prompt\", \"notice\", or \"error\"");
+#endif
        phpdbg_help_footer();
        return SUCCESS;
 } /* }}} */
index f7a32bbcf9c9772313a235abf3519d426f091d73..aa24822b9e16f3fd8029898431ab34ff50651c5d 100644 (file)
@@ -63,6 +63,7 @@ PHPDBG_SET(break) /* {{{ */
        return SUCCESS;
 } /* }}} */
 
+#ifndef _WIN32
 PHPDBG_SET(color) /* {{{ */
 {
        if ((param->type == STR_PARAM) && (input->argc == 3)) {
@@ -104,6 +105,7 @@ usage:
        }
        return SUCCESS;
 } /* }}} */
+#endif
 
 PHPDBG_SET(oplog) /* {{{ */
 {
index 2fcc0d06b4fa5e2a80bf64452bfeb483005b1819..b18da4846a25a811d8dbd254b7900a6daab4c6dc 100644 (file)
 #define PHPDBG_SET(name) PHPDBG_COMMAND(set_##name)
 
 PHPDBG_SET(prompt);
+#ifndef _WIN32
 PHPDBG_SET(color);
+#endif
 PHPDBG_SET(oplog);
 PHPDBG_SET(break);
 
 static const phpdbg_command_t phpdbg_set_commands[] = {
        PHPDBG_COMMAND_D_EX(prompt,       "usage: set prompt <string>",          'p', set_prompt,       NULL, 0),
+#ifndef _WIN32
        PHPDBG_COMMAND_D_EX(color,        "usage: set color  <element> <color>", 'c', set_color,        NULL, 1),
+#endif
        PHPDBG_COMMAND_D_EX(oplog,        "usage: set oplog  <output>",          'O', set_oplog,        NULL, 0),
        PHPDBG_COMMAND_D_EX(break,        "usage: set break  <on|off>",          'b', set_break,        NULL, 0),
        PHPDBG_END_COMMAND