mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
- CS
This commit is contained in:
parent
70cf09bf5b
commit
d21e7f5aa0
2 changed files with 4 additions and 3 deletions
|
@ -228,7 +228,7 @@ PHPDBG_API int phpdbg_print(int type TSRMLS_DC, FILE *fp, const char *format, ..
|
||||||
return rc;
|
return rc;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
PHPDBG_API const phpdbg_color_t* phpdbg_get_color(const char *name, size_t name_length TSRMLS_DC) /* {{{ */
|
PHPDBG_API const phpdbg_color_t *phpdbg_get_color(const char *name, size_t name_length TSRMLS_DC) /* {{{ */
|
||||||
{
|
{
|
||||||
const phpdbg_color_t *color = colors;
|
const phpdbg_color_t *color = colors;
|
||||||
|
|
||||||
|
@ -256,6 +256,7 @@ PHPDBG_API void phpdbg_set_color(int element, const phpdbg_color_t *color TSRMLS
|
||||||
PHPDBG_API void phpdbg_set_color_ex(int element, const char *name, size_t name_length TSRMLS_DC) /* {{{ */
|
PHPDBG_API void phpdbg_set_color_ex(int element, const char *name, size_t name_length TSRMLS_DC) /* {{{ */
|
||||||
{
|
{
|
||||||
const phpdbg_color_t *color = phpdbg_get_color(name, name_length TSRMLS_CC);
|
const phpdbg_color_t *color = phpdbg_get_color(name, name_length TSRMLS_CC);
|
||||||
|
|
||||||
if (color) {
|
if (color) {
|
||||||
phpdbg_set_color(element, color TSRMLS_CC);
|
phpdbg_set_color(element, color TSRMLS_CC);
|
||||||
} else PHPDBG_G(colors)[element] = colors;
|
} else PHPDBG_G(colors)[element] = colors;
|
||||||
|
|
|
@ -81,7 +81,7 @@ PHPDBG_API int phpdbg_print(int TSRMLS_DC, FILE*, const char*, ...) PHP_ATTRIBUT
|
||||||
{color, sizeof(color)-1, code}
|
{color, sizeof(color)-1, code}
|
||||||
#define PHPDBG_COLOR_END \
|
#define PHPDBG_COLOR_END \
|
||||||
{NULL, 0L, {0}}
|
{NULL, 0L, {0}}
|
||||||
|
|
||||||
#define PHPDBG_COLOR_INVALID -1
|
#define PHPDBG_COLOR_INVALID -1
|
||||||
#define PHPDBG_COLOR_PROMPT 0
|
#define PHPDBG_COLOR_PROMPT 0
|
||||||
#define PHPDBG_COLOR_ERROR 1
|
#define PHPDBG_COLOR_ERROR 1
|
||||||
|
@ -94,7 +94,7 @@ typedef struct _phpdbg_color_t {
|
||||||
const char code[PHPDBG_COLOR_LEN];
|
const char code[PHPDBG_COLOR_LEN];
|
||||||
} phpdbg_color_t;
|
} phpdbg_color_t;
|
||||||
|
|
||||||
PHPDBG_API const phpdbg_color_t* phpdbg_get_color(const char *name, size_t name_length TSRMLS_DC);
|
PHPDBG_API const phpdbg_color_t *phpdbg_get_color(const char *name, size_t name_length TSRMLS_DC);
|
||||||
PHPDBG_API void phpdbg_set_color(int element, const phpdbg_color_t *color TSRMLS_DC);
|
PHPDBG_API void phpdbg_set_color(int element, const phpdbg_color_t *color TSRMLS_DC);
|
||||||
PHPDBG_API void phpdbg_set_color_ex(int element, const char *name, size_t name_length TSRMLS_DC); /* }}} */
|
PHPDBG_API void phpdbg_set_color_ex(int element, const char *name, size_t name_length TSRMLS_DC); /* }}} */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue