Skip to content

Commit 5bb8cae

Browse files
committed
merge 5.1.x
1 parent 966beb9 commit 5bb8cae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/swoole.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ typedef unsigned long ulong_t;
116116
#define SW_ECHO_LEN_CYAN "\e[36m%.*s\e[0m"
117117
#define SW_ECHO_LEN_WHITE "\e[37m%.*s\e[0m"
118118

119+
#define SW_ECHO_RED_BG "\e[41m%s\e[0m"
120+
#define SW_ECHO_GREEN_BG "\e[42m%s\e[0m"
121+
119122
#define SW_COLOR_RED 1
120123
#define SW_COLOR_GREEN 2
121124
#define SW_COLOR_YELLOW 3
@@ -227,6 +230,9 @@ typedef swoole::Event swEvent;
227230
#define SW_STRCT(str, len, const_sub_str) swoole_strct(str, len, SW_STRL(const_sub_str))
228231
#define SW_STRCASECT(str, len, const_sub_str) swoole_strcasect(str, len, SW_STRL(const_sub_str))
229232

233+
#define SW_STR_STARTS_WITH(str, len, const_sub_str) swoole_str_starts_with(str, len, SW_STRL(const_sub_str))
234+
#define SW_STR_ISTARTS_WITH(str, len, const_sub_str) swoole_str_istarts_with(str, len, SW_STRL(const_sub_str))
235+
230236
#if defined(SW_USE_JEMALLOC) || defined(SW_USE_TCMALLOC)
231237
#define sw_strdup swoole_strdup
232238
#define sw_strndup swoole_strndup

0 commit comments

Comments
 (0)