1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-13 14:44:46 +02:00

Compare commits

..

5 Commits

Author SHA1 Message Date
Sébastien Helleu c47916ac8e Version 2.2 2018-07-14 12:35:10 +02:00
Sébastien Helleu e0cecefb0f tests: fix compiler warnings on calls to snprintf 2018-07-13 22:35:39 +02:00
Sébastien Helleu 2682fb450d lua: fix macros used to return values 2018-07-13 21:25:51 +02:00
Sébastien Helleu bf48efffec relay: fix compiler warnings on calls to snprintf 2018-07-13 21:25:07 +02:00
Sébastien Helleu a205886d7a core: fix compiler warnings on calls to snprintf 2018-07-13 21:24:40 +02:00
9 changed files with 52 additions and 31 deletions
+2 -1
View File
@@ -16,7 +16,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
[[v2.2]]
== Version 2.2 (under dev)
== Version 2.2 (2018-07-14)
New features::
@@ -56,6 +56,7 @@ Bug fixes::
* irc: send whole IRC message including IRCv3 tags in the signals irc_in, irc_in2, irc_raw_in and irc_raw_in2 (issue #787)
* irc: fix memory leak when receiving a message with IRCv3 tags
* guile: fix memory leak in 7 functions returning allocated strings
* lua: fix macros used to return values
* php: fix return code of functions config_write_option and config_write_line
* php: fix memory leak in 72 functions returning allocated strings
* python: fix crash when loading a script with Python >= 3.7 (issue #1219)
+1 -1
View File
@@ -18,7 +18,7 @@ https://weechat.org/files/changelog/ChangeLog-devel.html[ChangeLog]
[[v2.2]]
== Version 2.2 (under dev)
== Version 2.2 (2018-07-14)
[[v2.2_default_hotlist_conditions]]
=== Default conditions for hotlist
+1 -1
View File
@@ -281,7 +281,7 @@ gui_main_signal_sigwinch ()
void
gui_main_handle_quit_signals ()
{
char str_signal[64], str_weechat_signal[64];
char str_signal[32], str_weechat_signal[64];
int rc;
switch (weechat_quit_signal)
+1 -1
View File
@@ -240,7 +240,7 @@ const char *
gui_color_get_custom (const char *color_name)
{
int fg, bg, fg_term, bg_term, term_color;
static char color[32][32];
static char color[32][96];
static int index_color = 0;
char color_fg[32], color_bg[32];
char *pos_delim, *str_fg, *pos_bg, *error, *color_attr;
+40 -22
View File
@@ -70,38 +70,56 @@
#define API_STATIC_STRING(__string) \
plugin_script_get_static_string(&lua_data, __string);
#define API_RETURN_OK \
lua_pushinteger (L, 1); \
return 1
{ \
lua_pushinteger (L, 1); \
return 1; \
}
#define API_RETURN_ERROR \
lua_pushinteger (L, 0); \
return 1
{ \
lua_pushinteger (L, 0); \
return 1; \
}
#define API_RETURN_EMPTY \
lua_pushstring (L, ""); \
return 0
{ \
lua_pushstring (L, ""); \
return 0; \
}
#define API_RETURN_STRING(__string) \
lua_pushstring (L, \
(__string) ? __string : ""); \
return 1
{ \
lua_pushstring (L, \
(__string) ? __string : ""); \
return 1; \
}
#define API_RETURN_STRING_FREE(__string) \
lua_pushstring (L, \
(__string) ? __string : ""); \
if (__string) \
free (__string); \
return 1
{ \
lua_pushstring (L, \
(__string) ? __string : ""); \
if (__string) \
free (__string); \
return 1; \
}
#if LUA_VERSION_NUM >= 503
#define API_RETURN_INT(__int) \
lua_pushinteger (L, __int); \
return 1
{ \
lua_pushinteger (L, __int); \
return 1; \
}
#define API_RETURN_LONG(__long) \
lua_pushinteger (L, __long); \
return 1
{ \
lua_pushinteger (L, __long); \
return 1; \
}
#else
#define API_RETURN_INT(__int) \
lua_pushnumber (L, __int); \
return 1
{ \
lua_pushnumber (L, __int); \
return 1; \
}
#define API_RETURN_LONG(__long) \
lua_pushnumber (L, __long); \
return 1
{ \
lua_pushnumber (L, __long); \
return 1; \
}
#endif /* LUA_VERSION_NUM >= 503 */
+1 -1
View File
@@ -599,7 +599,7 @@ relay_irc_get_line_info (struct t_relay_client *client,
char **tags, char **message)
{
int i, num_tags, command, action, all_tags, length;
char str_tag[256], *pos, *message_no_color, str_time[256];
char str_tag[512], *pos, *message_no_color, str_time[256];
const char *ptr_tag, *ptr_message, *ptr_nick, *ptr_nick1, *ptr_nick2;
const char *ptr_host, *localvar_nick, *time_format;
time_t msg_date;
+1 -1
View File
@@ -120,7 +120,7 @@ TEST_GROUP(Scripts)
TEST(Scripts, API)
{
char path_testapigen[PATH_MAX], path_testapi[PATH_MAX];
char *path_testapi_output_dir, str_command[4096];
char *path_testapi_output_dir, str_command[(PATH_MAX * 2) + 128];
char *test_scripts_dir;
struct timeval time_start, time_end;
long long diff;
+2 -2
View File
@@ -32,9 +32,9 @@
# devel-patch the patch version of devel (e.g. 2 for version 1.4.2)
#
WEECHAT_STABLE=2.1
WEECHAT_STABLE=2.2
WEECHAT_DEVEL=2.2
WEECHAT_DEVEL_FULL=2.2-rc2
WEECHAT_DEVEL_FULL=2.2
if [ $# -lt 1 ]; then
echo >&2 "Syntax: $0 stable|devel|devel-full|devel-major|devel-minor|devel-patch"
+3 -1
View File
@@ -23,7 +23,7 @@
#
%define name weechat
%define version 2.1
%define version 2.2
%define release 1
Name: %{name}
@@ -77,6 +77,8 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/share/icons/hicolor/32x32/apps/weechat.png
%changelog
* Sat Jul 14 2018 Sébastien Helleu <flashcode@flashtux.org> 2.2-1
- Released version 2.2
* Sun Mar 18 2018 Sébastien Helleu <flashcode@flashtux.org> 2.1-1
- Released version 2.1
* Wed Dec 20 2017 Sébastien Helleu <flashcode@flashtux.org> 2.0.1-1