mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 22:24:47 +02:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a70ca92b74 | |||
| 684f10c442 | |||
| 2d081b0ef3 | |||
| 19be144d2f | |||
| fb9a69c6ae | |||
| c82486d437 | |||
| 802e462ce5 | |||
| 126a42235c | |||
| ddb1db9a2c | |||
| 26c000c6b0 |
+9
-1
@@ -8,6 +8,14 @@
|
||||
:see-release-notes: If you are upgrading: please see release notes.
|
||||
:breaking: pass:quotes[*[breaking]*]
|
||||
|
||||
[[v4.3.3]]
|
||||
== Version 4.3.3 (2024-06-22)
|
||||
|
||||
[[v4.3.3_fixed]]
|
||||
=== Fixed
|
||||
|
||||
* core, plugins: return "0x0" instead of "(nil)" for pointers formatted in strings
|
||||
|
||||
[[v4.3.2]]
|
||||
== Version 4.3.2 (2024-06-06)
|
||||
|
||||
@@ -66,7 +74,7 @@
|
||||
* {breaking} core: rename variables with creation time in hdata "hotlist": "creation_time.tv_sec" to "time" and "creation_time.tv_usec" to "time_usec"
|
||||
* {breaking} api: return `-1` or `1` if one input string is NULL and not the other in string comparison functions
|
||||
* {breaking} api: use whole replacement string instead of first char in function string_remove_color
|
||||
* core: use nick offline color for nick in action message
|
||||
* core: use nick offline color for nick in action message (issue #446)
|
||||
* core: display a specific message when the value of option is unchanged after `/set` command
|
||||
* core: add variable `${highlight}` in option weechat.look.buffer_time_format (issue #2079)
|
||||
* core: reintroduce help on the variables and operators in `/help eval` (issue #2005)
|
||||
|
||||
@@ -11,6 +11,11 @@ It is recommended to read it when upgrading to a new stable version. +
|
||||
For a complete list of changes, please look at ChangeLog.
|
||||
|
||||
|
||||
[[v4.3.3]]
|
||||
== Version 4.3.3 (2024-06-22)
|
||||
|
||||
No release notes.
|
||||
|
||||
[[v4.3.2]]
|
||||
== Version 4.3.2 (2024-06-06)
|
||||
|
||||
|
||||
@@ -1,3 +1,19 @@
|
||||
weechat (4.3.1-1) unstable; urgency=medium
|
||||
|
||||
* New upstream release (Closes: #1067608)
|
||||
- fix FTBFS against libgcrypt 1.11 (Closes: #1071960)
|
||||
* Add build dependency on libcjson-dev
|
||||
* Replace pkg-config build dependency by pkgconf
|
||||
* Minor updates in debian/copyright
|
||||
|
||||
-- Emmanuel Bouthenot <kolter@debian.org> Sat, 01 Jun 2024 14:21:02 +0000
|
||||
|
||||
weechat (4.1.1-1) unstable; urgency=medium
|
||||
|
||||
* New upstream release (Closes: #1055278)
|
||||
|
||||
-- Emmanuel Bouthenot <kolter@debian.org> Fri, 03 Nov 2023 20:23:37 +0000
|
||||
|
||||
weechat (4.0.5-1) unstable; urgency=medium
|
||||
|
||||
* New upstream release
|
||||
|
||||
+10
-8
@@ -1149,9 +1149,9 @@ eval_hdata_get_value (struct t_hdata *hdata, void *pointer, const char *path,
|
||||
int type, debug_id;
|
||||
struct t_hashtable *hashtable;
|
||||
|
||||
EVAL_DEBUG_MSG(1, "eval_hdata_get_value(\"%s\", %p, \"%s\")",
|
||||
EVAL_DEBUG_MSG(1, "eval_hdata_get_value(\"%s\", 0x%lx, \"%s\")",
|
||||
(hdata) ? hdata->name : "(null)",
|
||||
pointer,
|
||||
(unsigned long)pointer,
|
||||
path);
|
||||
|
||||
value = NULL;
|
||||
@@ -1167,7 +1167,7 @@ eval_hdata_get_value (struct t_hdata *hdata, void *pointer, const char *path,
|
||||
/* no path? just return current pointer as string */
|
||||
if (!path || !path[0])
|
||||
{
|
||||
snprintf (str_value, sizeof (str_value), "%p", pointer);
|
||||
snprintf (str_value, sizeof (str_value), "0x%lx", (unsigned long)pointer);
|
||||
value = strdup (str_value);
|
||||
goto end;
|
||||
}
|
||||
@@ -1224,7 +1224,8 @@ eval_hdata_get_value (struct t_hdata *hdata, void *pointer, const char *path,
|
||||
break;
|
||||
case WEECHAT_HDATA_POINTER:
|
||||
pointer = hdata_pointer (hdata, pointer, var_name);
|
||||
snprintf (str_value, sizeof (str_value), "%p", pointer);
|
||||
snprintf (str_value, sizeof (str_value),
|
||||
"0x%lx", (unsigned long)pointer);
|
||||
value = strdup (str_value);
|
||||
break;
|
||||
case WEECHAT_HDATA_TIME:
|
||||
@@ -1273,7 +1274,7 @@ eval_hdata_get_value (struct t_hdata *hdata, void *pointer, const char *path,
|
||||
case HASHTABLE_POINTER:
|
||||
case HASHTABLE_BUFFER:
|
||||
snprintf (str_value, sizeof (str_value),
|
||||
"%p", ptr_value);
|
||||
"0x%lx", (unsigned long)ptr_value);
|
||||
value = strdup (str_value);
|
||||
break;
|
||||
case HASHTABLE_TIME:
|
||||
@@ -1288,7 +1289,8 @@ eval_hdata_get_value (struct t_hdata *hdata, void *pointer, const char *path,
|
||||
}
|
||||
else
|
||||
{
|
||||
snprintf (str_value, sizeof (str_value), "%p", pointer);
|
||||
snprintf (str_value, sizeof (str_value),
|
||||
"0x%lx", (unsigned long)pointer);
|
||||
value = strdup (str_value);
|
||||
}
|
||||
break;
|
||||
@@ -2432,8 +2434,8 @@ eval_replace_regex (const char *string, regex_t *regex, const char *replace,
|
||||
|
||||
result = NULL;
|
||||
|
||||
EVAL_DEBUG_MSG(1, "eval_replace_regex(\"%s\", %p, \"%s\")",
|
||||
string, regex, replace);
|
||||
EVAL_DEBUG_MSG(1, "eval_replace_regex(\"%s\", 0x%lx, \"%s\")",
|
||||
string, (unsigned long)regex, replace);
|
||||
|
||||
if (!string || !regex || !replace)
|
||||
goto end;
|
||||
|
||||
@@ -559,7 +559,8 @@ hashtable_to_string (enum t_hashtable_type type, const void *value)
|
||||
break;
|
||||
case HASHTABLE_POINTER:
|
||||
case HASHTABLE_BUFFER:
|
||||
snprintf (str_value, sizeof (str_value), "%p", value);
|
||||
snprintf (str_value, sizeof (str_value), "0x%lx",
|
||||
(unsigned long)value);
|
||||
return str_value;
|
||||
break;
|
||||
case HASHTABLE_TIME:
|
||||
|
||||
@@ -43,7 +43,8 @@ struct t_infolist_item;
|
||||
#define HASHTABLE_SET_POINTER(__name, __pointer) \
|
||||
if (__pointer) \
|
||||
{ \
|
||||
snprintf (str_value, sizeof (str_value), "%p", __pointer); \
|
||||
snprintf (str_value, sizeof (str_value), \
|
||||
"0x%lx", (unsigned long)__pointer); \
|
||||
hashtable_set (hashtable, __name, str_value); \
|
||||
} \
|
||||
else \
|
||||
|
||||
@@ -265,7 +265,7 @@ input_data (struct t_gui_buffer *buffer, const char *data,
|
||||
}
|
||||
|
||||
/* execute modifier "input_text_for_buffer" */
|
||||
snprintf (str_buffer, sizeof (str_buffer), "%p", buffer);
|
||||
snprintf (str_buffer, sizeof (str_buffer), "0x%lx", (unsigned long)buffer);
|
||||
new_data = hook_modifier_exec (NULL,
|
||||
"input_text_for_buffer",
|
||||
str_buffer,
|
||||
|
||||
@@ -947,7 +947,7 @@ gui_bar_item_input_text_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/* for modifiers */
|
||||
snprintf (str_buffer, sizeof (str_buffer), "%p", buffer);
|
||||
snprintf (str_buffer, sizeof (str_buffer), "0x%lx", (unsigned long)buffer);
|
||||
|
||||
/* execute modifier with basic string (without cursor tag) */
|
||||
ptr_input = NULL;
|
||||
|
||||
+1
-1
@@ -434,7 +434,7 @@ gui_bar_check_conditions (struct t_gui_bar *bar,
|
||||
*/
|
||||
snprintf (str_modifier, sizeof (str_modifier),
|
||||
"bar_condition_%s", bar->name);
|
||||
snprintf (str_window, sizeof (str_window), "%p", window);
|
||||
snprintf (str_window, sizeof (str_window), "0x%lx", (unsigned long)window);
|
||||
str_displayed = hook_modifier_exec (NULL,
|
||||
str_modifier,
|
||||
str_window,
|
||||
|
||||
+2
-2
@@ -677,8 +677,8 @@ gui_chat_printf_datetime_tags_internal (struct t_gui_buffer *buffer,
|
||||
if (modifier_data && string)
|
||||
{
|
||||
snprintf (modifier_data, length_data,
|
||||
"%p;%s",
|
||||
buffer,
|
||||
"0x%lx;%s",
|
||||
(unsigned long)buffer,
|
||||
(tags) ? tags : "");
|
||||
if (display_time)
|
||||
{
|
||||
|
||||
@@ -192,7 +192,7 @@ gui_history_add (struct t_gui_buffer *buffer, const char *string)
|
||||
{
|
||||
char *string2, str_buffer[128];
|
||||
|
||||
snprintf (str_buffer, sizeof (str_buffer), "%p", buffer);
|
||||
snprintf (str_buffer, sizeof (str_buffer), "0x%lx", (unsigned long)buffer);
|
||||
string2 = hook_modifier_exec (NULL, "history_add", str_buffer, string);
|
||||
|
||||
/*
|
||||
|
||||
+2
-1
@@ -158,7 +158,8 @@ gui_input_text_changed_modifier_and_signal (struct t_gui_buffer *buffer,
|
||||
gui_buffer_undo_add (buffer);
|
||||
|
||||
/* send modifier, and change input if needed */
|
||||
snprintf (str_buffer, sizeof (str_buffer), "%p", buffer);
|
||||
snprintf (str_buffer, sizeof (str_buffer),
|
||||
"0x%lx", (unsigned long)buffer);
|
||||
new_input = hook_modifier_exec (NULL,
|
||||
"input_text_content",
|
||||
str_buffer,
|
||||
|
||||
@@ -69,8 +69,8 @@ gui_nicklist_send_signal (const char *signal, struct t_gui_buffer *buffer,
|
||||
if (str_args)
|
||||
{
|
||||
snprintf (str_args, length,
|
||||
"%p,%s",
|
||||
buffer,
|
||||
"0x%lx,%s",
|
||||
(unsigned long)buffer,
|
||||
(arguments) ? arguments : "");
|
||||
(void) hook_signal_send (signal,
|
||||
WEECHAT_HOOK_SIGNAL_STRING, str_args);
|
||||
|
||||
@@ -155,7 +155,7 @@ end:
|
||||
}
|
||||
|
||||
/* add pointer and plugin name */
|
||||
snprintf (str_value, sizeof (str_value), "%p", ptr_buffer);
|
||||
snprintf (str_value, sizeof (str_value), "0x%lx", (unsigned long)ptr_buffer);
|
||||
weechat_hashtable_set (info, "pointer", str_value);
|
||||
weechat_hashtable_set (info, "plugin",
|
||||
weechat_buffer_get_string (ptr_buffer, "plugin"));
|
||||
|
||||
@@ -82,7 +82,8 @@ fset_mouse_focus_cb (const void *pointer, void *data, struct t_hashtable *info)
|
||||
if (!ptr_fset_option)
|
||||
return info;
|
||||
|
||||
snprintf (str_value, sizeof (str_value), "%p", ptr_fset_option);
|
||||
snprintf (str_value, sizeof (str_value),
|
||||
"0x%lx", (unsigned long)ptr_fset_option);
|
||||
weechat_hashtable_set (info, "fset_option", str_value);
|
||||
snprintf (str_value, sizeof (str_value), "%ld", option_index);
|
||||
weechat_hashtable_set (info, "fset_option_index", str_value);
|
||||
|
||||
@@ -661,7 +661,8 @@ irc_bar_item_focus_buffer_nicklist (const void *pointer, void *data,
|
||||
ptr_nick = irc_nick_search (ptr_server, ptr_channel, nick);
|
||||
if (ptr_nick)
|
||||
{
|
||||
snprintf (str_value, sizeof (str_value), "%p", ptr_nick);
|
||||
snprintf (str_value, sizeof (str_value),
|
||||
"0x%lx", (unsigned long)ptr_nick);
|
||||
weechat_hashtable_set (info, "irc_nick", str_value);
|
||||
|
||||
if (ptr_nick->host)
|
||||
|
||||
@@ -57,7 +57,7 @@ irc_info_create_string_with_pointer (char **string, void *pointer)
|
||||
*string = malloc (64);
|
||||
if (*string)
|
||||
{
|
||||
snprintf (*string, 64, "%p", pointer);
|
||||
snprintf (*string, 64, "0x%lx", (unsigned long)pointer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -143,8 +143,8 @@ irc_typing_channel_set_nick (struct t_irc_channel *channel, const char *nick,
|
||||
char signal_data[1024];
|
||||
|
||||
snprintf (signal_data, sizeof (signal_data),
|
||||
"%p;%s;%s",
|
||||
channel->buffer,
|
||||
"0x%lx;%s;%s",
|
||||
(unsigned long)channel->buffer,
|
||||
(state == IRC_CHANNEL_TYPING_STATE_ACTIVE) ? "typing" :
|
||||
((state == IRC_CHANNEL_TYPING_STATE_PAUSED) ? "paused" : "off"),
|
||||
nick);
|
||||
|
||||
@@ -32,7 +32,7 @@ if(PERL_FOUND)
|
||||
add_definitions(${PERL_CFLAGS})
|
||||
include_directories(${PERL_INCLUDE_PATH})
|
||||
# ugly hack to force linking against Dynaloader.a
|
||||
string(REGEX MATCH "/[^ $]*/DynaLoader.a" PERL_DYNALOADER ${PERL_LFLAGS})
|
||||
string(REGEX MATCH "/[^ $]*/DynaLoader.a" PERL_DYNALOADER "${PERL_LFLAGS}")
|
||||
if(PERL_DYNALOADER)
|
||||
string(REPLACE "${PERL_DYNALOADER}" "" PERL_LFLAGS "${PERL_LFLAGS}")
|
||||
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${PERL_LFLAGS}")
|
||||
|
||||
@@ -512,7 +512,7 @@ plugin_api_info_buffer_cb (const void *pointer, void *data,
|
||||
if (!ptr_buffer)
|
||||
return NULL;
|
||||
|
||||
snprintf (value, sizeof (value), "%p", ptr_buffer);
|
||||
snprintf (value, sizeof (value), "0x%lx", (unsigned long)ptr_buffer);
|
||||
return strdup (value);
|
||||
}
|
||||
|
||||
|
||||
@@ -379,7 +379,7 @@ plugin_script_ptr2str (void *pointer)
|
||||
return str_pointer[index_pointer];
|
||||
|
||||
snprintf (str_pointer[index_pointer], sizeof (str_pointer[index_pointer]),
|
||||
"%p", pointer);
|
||||
"0x%lx", (unsigned long)pointer);
|
||||
|
||||
return str_pointer[index_pointer];
|
||||
}
|
||||
|
||||
@@ -215,7 +215,8 @@ relay_irc_sendf (struct t_relay_client *client, const char *format, ...)
|
||||
hashtable_in = NULL;
|
||||
hashtable_out = NULL;
|
||||
|
||||
snprintf (modifier_data, sizeof (modifier_data), "%p", client);
|
||||
snprintf (modifier_data, sizeof (modifier_data),
|
||||
"0x%lx", (unsigned long)client);
|
||||
new_msg1 = weechat_hook_modifier_exec ("relay_client_irc_out1",
|
||||
modifier_data, vbuffer);
|
||||
|
||||
@@ -1641,7 +1642,8 @@ relay_irc_recv (struct t_relay_client *client, const char *data)
|
||||
data);
|
||||
}
|
||||
|
||||
snprintf (modifier_data, sizeof (modifier_data), "%p", client);
|
||||
snprintf (modifier_data, sizeof (modifier_data),
|
||||
"0x%lx", (unsigned long)client);
|
||||
new_data = weechat_hook_modifier_exec ("relay_client_irc_in",
|
||||
modifier_data, data);
|
||||
|
||||
|
||||
@@ -872,7 +872,8 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
|
||||
msg = relay_weechat_msg_new (str_signal);
|
||||
if (msg)
|
||||
{
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata), "buffer:%p", ptr_buffer);
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata),
|
||||
"buffer:0x%lx", (unsigned long)ptr_buffer);
|
||||
relay_weechat_msg_add_hdata (msg, cmd_hdata,
|
||||
"id,number,full_name,short_name,"
|
||||
"nicklist,title,local_variables,"
|
||||
@@ -896,7 +897,8 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
|
||||
msg = relay_weechat_msg_new (str_signal);
|
||||
if (msg)
|
||||
{
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata), "buffer:%p", ptr_buffer);
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata),
|
||||
"buffer:0x%lx", (unsigned long)ptr_buffer);
|
||||
relay_weechat_msg_add_hdata (msg, cmd_hdata,
|
||||
"id,number,full_name,type");
|
||||
relay_weechat_msg_send (ptr_client, msg);
|
||||
@@ -918,7 +920,8 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
|
||||
msg = relay_weechat_msg_new (str_signal);
|
||||
if (msg)
|
||||
{
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata), "buffer:%p", ptr_buffer);
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata),
|
||||
"buffer:0x%lx", (unsigned long)ptr_buffer);
|
||||
relay_weechat_msg_add_hdata (msg, cmd_hdata,
|
||||
"id,number,full_name,"
|
||||
"prev_buffer,next_buffer");
|
||||
@@ -942,7 +945,8 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
|
||||
msg = relay_weechat_msg_new (str_signal);
|
||||
if (msg)
|
||||
{
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata), "buffer:%p", ptr_buffer);
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata),
|
||||
"buffer:0x%lx", (unsigned long)ptr_buffer);
|
||||
relay_weechat_msg_add_hdata (msg, cmd_hdata,
|
||||
"id,number,full_name,"
|
||||
"prev_buffer,next_buffer");
|
||||
@@ -966,7 +970,8 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
|
||||
msg = relay_weechat_msg_new (str_signal);
|
||||
if (msg)
|
||||
{
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata), "buffer:%p", ptr_buffer);
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata),
|
||||
"buffer:0x%lx", (unsigned long)ptr_buffer);
|
||||
relay_weechat_msg_add_hdata (msg, cmd_hdata,
|
||||
"id,number,full_name,"
|
||||
"prev_buffer,next_buffer");
|
||||
@@ -1010,7 +1015,8 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
|
||||
msg = relay_weechat_msg_new (str_signal);
|
||||
if (msg)
|
||||
{
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata), "buffer:%p", ptr_buffer);
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata),
|
||||
"buffer:0x%lx", (unsigned long)ptr_buffer);
|
||||
relay_weechat_msg_add_hdata (msg, cmd_hdata,
|
||||
"id,number,full_name,short_name,"
|
||||
"local_variables");
|
||||
@@ -1033,7 +1039,8 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
|
||||
msg = relay_weechat_msg_new (str_signal);
|
||||
if (msg)
|
||||
{
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata), "buffer:%p", ptr_buffer);
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata),
|
||||
"buffer:0x%lx", (unsigned long)ptr_buffer);
|
||||
relay_weechat_msg_add_hdata (msg, cmd_hdata,
|
||||
"id,number,full_name,title");
|
||||
relay_weechat_msg_send (ptr_client, msg);
|
||||
@@ -1055,7 +1062,8 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
|
||||
msg = relay_weechat_msg_new (str_signal);
|
||||
if (msg)
|
||||
{
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata), "buffer:%p", ptr_buffer);
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata),
|
||||
"buffer:0x%lx", (unsigned long)ptr_buffer);
|
||||
relay_weechat_msg_add_hdata (msg, cmd_hdata,
|
||||
"id,number,full_name,local_variables");
|
||||
relay_weechat_msg_send (ptr_client, msg);
|
||||
@@ -1076,7 +1084,8 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
|
||||
msg = relay_weechat_msg_new (str_signal);
|
||||
if (msg)
|
||||
{
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata), "buffer:%p", ptr_buffer);
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata),
|
||||
"buffer:0x%lx", (unsigned long)ptr_buffer);
|
||||
relay_weechat_msg_add_hdata (msg, cmd_hdata,
|
||||
"id,number,full_name");
|
||||
relay_weechat_msg_send (ptr_client, msg);
|
||||
@@ -1107,8 +1116,8 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
|
||||
if (msg)
|
||||
{
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata),
|
||||
"line_data:%p",
|
||||
ptr_line_data);
|
||||
"line_data:0x%lx",
|
||||
(unsigned long)ptr_line_data);
|
||||
relay_weechat_msg_add_hdata (
|
||||
msg, cmd_hdata,
|
||||
"buffer,date,date_usec,date_printed,date_usec_printed,"
|
||||
@@ -1133,7 +1142,8 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
|
||||
msg = relay_weechat_msg_new (str_signal);
|
||||
if (msg)
|
||||
{
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata), "buffer:%p", ptr_buffer);
|
||||
snprintf (cmd_hdata, sizeof (cmd_hdata),
|
||||
"buffer:0x%lx", (unsigned long)ptr_buffer);
|
||||
relay_weechat_msg_add_hdata (msg, cmd_hdata,
|
||||
"id,number,full_name");
|
||||
relay_weechat_msg_send (ptr_client, msg);
|
||||
|
||||
@@ -733,7 +733,10 @@ trigger_callback_signal_cb (const void *pointer, void *data,
|
||||
{
|
||||
str_data[0] = '\0';
|
||||
if (signal_data)
|
||||
snprintf (str_data, sizeof (str_data), "%p", signal_data);
|
||||
{
|
||||
snprintf (str_data, sizeof (str_data),
|
||||
"0x%lx", (unsigned long)signal_data);
|
||||
}
|
||||
ptr_signal_data = str_data;
|
||||
}
|
||||
weechat_hashtable_set (ctx.extra_vars, "tg_signal_data", ptr_signal_data);
|
||||
|
||||
@@ -1016,6 +1016,9 @@ TEST(CoreEval, EvalExpression)
|
||||
WEE_CHECK_EVAL("", "${my_null_pointer}");
|
||||
snprintf (str_value, sizeof (str_value), "%p", gui_buffers);
|
||||
WEE_CHECK_EVAL(str_value, "${my_buffer_pointer}");
|
||||
WEE_CHECK_EVAL(str_value, "${buffer}");
|
||||
WEE_CHECK_EVAL("0x0", "${buffer.prev_buffer}");
|
||||
WEE_CHECK_EVAL("0x0", "${buffer.next_buffer}");
|
||||
WEE_CHECK_EVAL("0x1234abcd", "${my_other_pointer}");
|
||||
WEE_CHECK_EVAL("", "${buffer[unknown_pointer].full_name}");
|
||||
WEE_CHECK_EVAL("", "${buffer[my_null_pointer].full_name}");
|
||||
|
||||
@@ -47,7 +47,8 @@ extern void relay_http_parse_path (const char *url,
|
||||
char ***paths, int *num_paths,
|
||||
struct t_hashtable *params);
|
||||
extern int relay_http_parse_header (struct t_relay_http_request *request,
|
||||
const char *header);
|
||||
const char *header,
|
||||
int ws_deflate_allowed);
|
||||
extern void relay_http_add_to_body (struct t_relay_http_request *request,
|
||||
char **partial_message);
|
||||
extern int relay_http_get_auth_status (struct t_relay_client *client);
|
||||
@@ -478,7 +479,7 @@ TEST(RelayHttp, ParseHeader)
|
||||
request = relay_http_request_alloc ();
|
||||
CHECK(request);
|
||||
relay_http_parse_method_path (request, "GET /api/version");
|
||||
relay_http_parse_header (request, NULL);
|
||||
relay_http_parse_header (request, NULL, 1);
|
||||
LONGS_EQUAL(RELAY_HTTP_END, request->status);
|
||||
STRCMP_EQUAL("GET /api/version\n"
|
||||
"\n",
|
||||
@@ -489,7 +490,7 @@ TEST(RelayHttp, ParseHeader)
|
||||
request = relay_http_request_alloc ();
|
||||
CHECK(request);
|
||||
relay_http_parse_method_path (request, "GET /api/version");
|
||||
relay_http_parse_header (request, "");
|
||||
relay_http_parse_header (request, "", 1);
|
||||
LONGS_EQUAL(RELAY_HTTP_END, request->status);
|
||||
STRCMP_EQUAL("GET /api/version\n"
|
||||
"\n",
|
||||
@@ -500,7 +501,7 @@ TEST(RelayHttp, ParseHeader)
|
||||
request = relay_http_request_alloc ();
|
||||
CHECK(request);
|
||||
relay_http_parse_method_path (request, "GET /api/version");
|
||||
relay_http_parse_header (request, "Test");
|
||||
relay_http_parse_header (request, "Test", 1);
|
||||
LONGS_EQUAL(RELAY_HTTP_HEADERS, request->status);
|
||||
STRCMP_EQUAL("GET /api/version\n"
|
||||
"Test\n",
|
||||
@@ -511,7 +512,7 @@ TEST(RelayHttp, ParseHeader)
|
||||
request = relay_http_request_alloc ();
|
||||
CHECK(request);
|
||||
relay_http_parse_method_path (request, "GET /api/version");
|
||||
relay_http_parse_header (request, "X-Test: value");
|
||||
relay_http_parse_header (request, "X-Test: value", 1);
|
||||
LONGS_EQUAL(RELAY_HTTP_HEADERS, request->status);
|
||||
STRCMP_EQUAL("GET /api/version\n"
|
||||
"X-Test: value\n",
|
||||
@@ -523,7 +524,7 @@ TEST(RelayHttp, ParseHeader)
|
||||
request = relay_http_request_alloc ();
|
||||
CHECK(request);
|
||||
relay_http_parse_method_path (request, "GET /api/version");
|
||||
relay_http_parse_header (request, "Accept-Encoding: gzip, zstd, br");
|
||||
relay_http_parse_header (request, "Accept-Encoding: gzip, zstd, br", 1);
|
||||
LONGS_EQUAL(RELAY_HTTP_HEADERS, request->status);
|
||||
STRCMP_EQUAL("GET /api/version\n"
|
||||
"Accept-Encoding: gzip, zstd, br\n",
|
||||
@@ -540,7 +541,7 @@ TEST(RelayHttp, ParseHeader)
|
||||
request = relay_http_request_alloc ();
|
||||
CHECK(request);
|
||||
relay_http_parse_method_path (request, "GET /api/version");
|
||||
relay_http_parse_header (request, "Content-Length: 123");
|
||||
relay_http_parse_header (request, "Content-Length: 123", 1);
|
||||
LONGS_EQUAL(RELAY_HTTP_HEADERS, request->status);
|
||||
STRCMP_EQUAL("GET /api/version\n"
|
||||
"Content-Length: 123\n",
|
||||
@@ -555,7 +556,8 @@ TEST(RelayHttp, ParseHeader)
|
||||
relay_http_parse_method_path (request, "GET /api HTTP/1.1");
|
||||
relay_http_parse_header (
|
||||
request,
|
||||
"Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits");
|
||||
"Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits",
|
||||
1);
|
||||
LONGS_EQUAL(RELAY_HTTP_HEADERS, request->status);
|
||||
STRCMP_EQUAL(
|
||||
"GET /api HTTP/1.1\n"
|
||||
@@ -589,8 +591,8 @@ TEST(RelayHttp, AddToBody)
|
||||
LONGS_EQUAL(RELAY_HTTP_METHOD, request->status);
|
||||
relay_http_parse_method_path (request, "GET /api/version");
|
||||
LONGS_EQUAL(RELAY_HTTP_HEADERS, request->status);
|
||||
relay_http_parse_header (request, "Content-Length: 10");
|
||||
relay_http_parse_header (request, "");
|
||||
relay_http_parse_header (request, "Content-Length: 10", 1);
|
||||
relay_http_parse_header (request, "", 1);
|
||||
LONGS_EQUAL(RELAY_HTTP_BODY, request->status);
|
||||
LONGS_EQUAL(10, request->content_length);
|
||||
LONGS_EQUAL(0, request->body_size);
|
||||
@@ -616,8 +618,8 @@ TEST(RelayHttp, AddToBody)
|
||||
LONGS_EQUAL(RELAY_HTTP_METHOD, request->status);
|
||||
relay_http_parse_method_path (request, "GET /api/version");
|
||||
LONGS_EQUAL(RELAY_HTTP_HEADERS, request->status);
|
||||
relay_http_parse_header (request, "Content-Length: 5");
|
||||
relay_http_parse_header (request, "");
|
||||
relay_http_parse_header (request, "Content-Length: 5", 1);
|
||||
relay_http_parse_header (request, "", 1);
|
||||
LONGS_EQUAL(RELAY_HTTP_BODY, request->status);
|
||||
LONGS_EQUAL(5, request->content_length);
|
||||
LONGS_EQUAL(0, request->body_size);
|
||||
|
||||
@@ -165,6 +165,7 @@ TEST(RelayWebsocket, ClientHandshakeValid)
|
||||
LONGS_EQUAL(-2, relay_websocket_client_handshake_valid (request));
|
||||
hashtable_set (request->headers, "origin", "example.com");
|
||||
LONGS_EQUAL(0, relay_websocket_client_handshake_valid (request));
|
||||
config_file_option_reset (relay_config_network_websocket_allowed_origins, 1);
|
||||
|
||||
relay_websocket_deflate_reinit (request->ws_deflate);
|
||||
relay_websocket_parse_extensions ("permessage-deflate", request->ws_deflate, 1);
|
||||
|
||||
+2
-2
@@ -39,8 +39,8 @@
|
||||
# devel-number the devel version as hex number ("0x04010000" for "4.1.0-dev")
|
||||
#
|
||||
|
||||
weechat_stable="4.3.2"
|
||||
weechat_devel="4.3.2"
|
||||
weechat_stable="4.3.3"
|
||||
weechat_devel="4.3.3"
|
||||
|
||||
stable_major=$(echo "${weechat_stable}" | cut -d"." -f1)
|
||||
stable_minor=$(echo "${weechat_stable}" | cut -d"." -f2)
|
||||
|
||||
Reference in New Issue
Block a user