Merge pull request #2053 from profanity-im/some-improvements
Some improvements
This commit is contained in:
@@ -124,6 +124,7 @@ unittest_sources = \
|
|||||||
src/event/server_events.c src/event/server_events.h \
|
src/event/server_events.c src/event/server_events.h \
|
||||||
src/event/client_events.c src/event/client_events.h \
|
src/event/client_events.c src/event/client_events.h \
|
||||||
src/ui/tray.h src/ui/tray.c \
|
src/ui/tray.h src/ui/tray.c \
|
||||||
|
tests/prof_cmocka.h \
|
||||||
tests/unittests/xmpp/stub_vcard.c \
|
tests/unittests/xmpp/stub_vcard.c \
|
||||||
tests/unittests/xmpp/stub_avatar.c \
|
tests/unittests/xmpp/stub_avatar.c \
|
||||||
tests/unittests/xmpp/stub_ox.c \
|
tests/unittests/xmpp/stub_ox.c \
|
||||||
@@ -169,6 +170,7 @@ unittest_sources = \
|
|||||||
tests/unittests/unittests.c
|
tests/unittests/unittests.c
|
||||||
|
|
||||||
functionaltest_sources = \
|
functionaltest_sources = \
|
||||||
|
tests/prof_cmocka.h \
|
||||||
tests/functionaltests/proftest.c tests/functionaltests/proftest.h \
|
tests/functionaltests/proftest.c tests/functionaltests/proftest.h \
|
||||||
tests/functionaltests/test_connect.c tests/functionaltests/test_connect.h \
|
tests/functionaltests/test_connect.c tests/functionaltests/test_connect.h \
|
||||||
tests/functionaltests/test_ping.c tests/functionaltests/test_ping.h \
|
tests/functionaltests/test_ping.c tests/functionaltests/test_ping.h \
|
||||||
@@ -283,6 +285,7 @@ endif
|
|||||||
|
|
||||||
TESTS = tests/unittests/unittests
|
TESTS = tests/unittests/unittests
|
||||||
check_PROGRAMS = tests/unittests/unittests
|
check_PROGRAMS = tests/unittests/unittests
|
||||||
|
tests_unittests_unittests_CPPFLAGS = -Itests/
|
||||||
tests_unittests_unittests_SOURCES = $(unittest_sources)
|
tests_unittests_unittests_SOURCES = $(unittest_sources)
|
||||||
tests_unittests_unittests_LDADD = -lcmocka
|
tests_unittests_unittests_LDADD = -lcmocka
|
||||||
|
|
||||||
@@ -346,9 +349,13 @@ endif
|
|||||||
.PHONY: my-prof.supp
|
.PHONY: my-prof.supp
|
||||||
my-prof.supp:
|
my-prof.supp:
|
||||||
@sed '/^# AUTO-GENERATED START/q' prof.supp > $@
|
@sed '/^# AUTO-GENERATED START/q' prof.supp > $@
|
||||||
|
@printf "\n\n# glib\n" >> $@
|
||||||
@cat /usr/share/glib-2.0/valgrind/glib.supp >> $@
|
@cat /usr/share/glib-2.0/valgrind/glib.supp >> $@
|
||||||
|
@printf "\n\n# Python\n" >> $@
|
||||||
@wget -O- https://raw.githubusercontent.com/python/cpython/refs/tags/v`python3 --version | cut -d' ' -f2`/Misc/valgrind-python.supp >> $@
|
@wget -O- https://raw.githubusercontent.com/python/cpython/refs/tags/v`python3 --version | cut -d' ' -f2`/Misc/valgrind-python.supp >> $@
|
||||||
|
@printf "\n\n# gtk\n" >> $@
|
||||||
@test -z "@GTK_VERSION@" || wget -O- https://raw.githubusercontent.com/GNOME/gtk/refs/tags/@GTK_VERSION@/gtk.supp >> $@
|
@test -z "@GTK_VERSION@" || wget -O- https://raw.githubusercontent.com/GNOME/gtk/refs/tags/@GTK_VERSION@/gtk.supp >> $@
|
||||||
|
@printf "\n\n# more gtk\n" >> $@
|
||||||
@test -z "@GTK_VERSION@" || cat /usr/share/gtk-3.0/valgrind/gtk.supp >> $@
|
@test -z "@GTK_VERSION@" || cat /usr/share/gtk-3.0/valgrind/gtk.supp >> $@
|
||||||
|
|
||||||
check-unit: tests/unittests/unittests
|
check-unit: tests/unittests/unittests
|
||||||
|
|||||||
@@ -1662,7 +1662,7 @@ char*
|
|||||||
cmd_ac_complete_filepath(const char* const input, char* const startstr, gboolean previous)
|
cmd_ac_complete_filepath(const char* const input, char* const startstr, gboolean previous)
|
||||||
{
|
{
|
||||||
unsigned int output_off = 0;
|
unsigned int output_off = 0;
|
||||||
char* tmp;
|
char* tmp = NULL;
|
||||||
|
|
||||||
// strip command
|
// strip command
|
||||||
char* inpcp = (char*)input + strlen(startstr);
|
char* inpcp = (char*)input + strlen(startstr);
|
||||||
@@ -1674,38 +1674,36 @@ cmd_ac_complete_filepath(const char* const input, char* const startstr, gboolean
|
|||||||
|
|
||||||
// strip quotes
|
// strip quotes
|
||||||
if (*inpcp == '"') {
|
if (*inpcp == '"') {
|
||||||
tmp = strchr(inpcp + 1, '"');
|
tmp = strrchr(inpcp + 1, '"');
|
||||||
if (tmp) {
|
if (tmp) {
|
||||||
*tmp = '\0';
|
*tmp = '\0';
|
||||||
}
|
}
|
||||||
tmp = strdup(inpcp + 1);
|
tmp = strdup(inpcp + 1);
|
||||||
free(inpcp);
|
free(inpcp);
|
||||||
inpcp = tmp;
|
inpcp = tmp;
|
||||||
|
tmp = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// expand ~ to $HOME
|
// expand ~ to $HOME
|
||||||
if (inpcp[0] == '~' && inpcp[1] == '/') {
|
if (inpcp[0] == '~' && inpcp[1] == '/') {
|
||||||
tmp = g_strdup_printf("%s/%sfoo", getenv("HOME"), inpcp + 2);
|
char* home = getenv("HOME");
|
||||||
if (!tmp) {
|
if (!home) {
|
||||||
free(inpcp);
|
free(inpcp);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
output_off = strlen(getenv("HOME")) + 1;
|
tmp = g_strdup_printf("%s/%sfoo", home, inpcp + 2);
|
||||||
|
output_off = strlen(home) + 1;
|
||||||
} else {
|
} else {
|
||||||
tmp = g_strdup_printf("%sfoo", inpcp);
|
tmp = g_strdup_printf("%sfoo", inpcp);
|
||||||
if (!tmp) {
|
}
|
||||||
free(inpcp);
|
free(inpcp);
|
||||||
|
if (!tmp) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
free(inpcp);
|
|
||||||
inpcp = tmp;
|
|
||||||
|
|
||||||
char* inpcp2 = strdup(inpcp);
|
char* foofile = strdup(basename(tmp));
|
||||||
char* foofile = strdup(basename(inpcp2));
|
char* directory = strdup(dirname(tmp));
|
||||||
char* directory = strdup(dirname(inpcp));
|
g_free(tmp);
|
||||||
free(inpcp);
|
|
||||||
free(inpcp2);
|
|
||||||
|
|
||||||
GArray* files = g_array_new(TRUE, FALSE, sizeof(char*));
|
GArray* files = g_array_new(TRUE, FALSE, sizeof(char*));
|
||||||
g_array_set_clear_func(files, (GDestroyNotify)_filepath_item_free);
|
g_array_set_clear_func(files, (GDestroyNotify)_filepath_item_free);
|
||||||
@@ -1724,40 +1722,26 @@ cmd_ac_complete_filepath(const char* const input, char* const startstr, gboolean
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
char* acstring;
|
char* acstring = NULL;
|
||||||
if (output_off) {
|
if (output_off) {
|
||||||
tmp = g_strdup_printf("%s/%s", directory, dir->d_name);
|
tmp = g_strdup_printf("%s/%s", directory, dir->d_name);
|
||||||
if (!tmp) {
|
if (tmp) {
|
||||||
free(directory);
|
|
||||||
free(foofile);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
acstring = g_strdup_printf("~/%s", tmp + output_off);
|
acstring = g_strdup_printf("~/%s", tmp + output_off);
|
||||||
if (!acstring) {
|
g_free(tmp);
|
||||||
free(directory);
|
|
||||||
free(foofile);
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
free(tmp);
|
|
||||||
} else if (strcmp(directory, "/") == 0) {
|
} else if (strcmp(directory, "/") == 0) {
|
||||||
acstring = g_strdup_printf("/%s", dir->d_name);
|
acstring = g_strdup_printf("/%s", dir->d_name);
|
||||||
if (!acstring) {
|
|
||||||
free(directory);
|
|
||||||
free(foofile);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
acstring = g_strdup_printf("%s/%s", directory, dir->d_name);
|
acstring = g_strdup_printf("%s/%s", directory, dir->d_name);
|
||||||
|
}
|
||||||
if (!acstring) {
|
if (!acstring) {
|
||||||
free(directory);
|
g_array_free(files, TRUE);
|
||||||
free(foofile);
|
free(foofile);
|
||||||
|
free(directory);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
char* acstring_cpy = strdup(acstring);
|
g_array_append_val(files, acstring);
|
||||||
g_array_append_val(files, acstring_cpy);
|
|
||||||
free(acstring);
|
|
||||||
}
|
}
|
||||||
closedir(d);
|
closedir(d);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8565,19 +8565,20 @@ cmd_omemo_trust_mode(ProfWin* window, const char* const command, gchar** args)
|
|||||||
{
|
{
|
||||||
#ifdef HAVE_OMEMO
|
#ifdef HAVE_OMEMO
|
||||||
|
|
||||||
|
auto_gchar gchar* trust_mode = prefs_get_string(PREF_OMEMO_TRUST_MODE);
|
||||||
if (!args[1]) {
|
if (!args[1]) {
|
||||||
cons_show("Current trust mode is %s", prefs_get_string(PREF_OMEMO_TRUST_MODE));
|
cons_show("Current trust mode is %s", trust_mode);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_strcmp0(args[1], "manual") == 0) {
|
if (g_strcmp0(args[1], "manual") == 0) {
|
||||||
cons_show("Current trust mode is %s - setting to %s", prefs_get_string(PREF_OMEMO_TRUST_MODE), args[1]);
|
cons_show("Current trust mode is %s - setting to %s", trust_mode, args[1]);
|
||||||
cons_show("You need to trust all OMEMO fingerprints manually");
|
cons_show("You need to trust all OMEMO fingerprints manually");
|
||||||
} else if (g_strcmp0(args[1], "firstusage") == 0) {
|
} else if (g_strcmp0(args[1], "firstusage") == 0) {
|
||||||
cons_show("Current trust mode is %s - setting to %s", prefs_get_string(PREF_OMEMO_TRUST_MODE), args[1]);
|
cons_show("Current trust mode is %s - setting to %s", trust_mode, args[1]);
|
||||||
cons_show("The first seen OMEMO fingerprints will be trusted automatically - new keys must be trusted manually");
|
cons_show("The first seen OMEMO fingerprints will be trusted automatically - new keys must be trusted manually");
|
||||||
} else if (g_strcmp0(args[1], "blind") == 0) {
|
} else if (g_strcmp0(args[1], "blind") == 0) {
|
||||||
cons_show("Current trust mode is %s - setting to %s", prefs_get_string(PREF_OMEMO_TRUST_MODE), args[1]);
|
cons_show("Current trust mode is %s - setting to %s", trust_mode, args[1]);
|
||||||
cons_show("ALL OMEMO fingerprints will be trusted automatically");
|
cons_show("ALL OMEMO fingerprints will be trusted automatically");
|
||||||
} else {
|
} else {
|
||||||
cons_bad_cmd_usage(command);
|
cons_bad_cmd_usage(command);
|
||||||
|
|||||||
@@ -86,10 +86,16 @@ python_get_version_number(void)
|
|||||||
return version_number;
|
return version_number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
_unref_module(PyObject* module)
|
||||||
|
{
|
||||||
|
Py_XDECREF(module);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
python_env_init(void)
|
python_env_init(void)
|
||||||
{
|
{
|
||||||
loaded_modules = g_hash_table_new_full(g_str_hash, g_str_equal, free, (GDestroyNotify)Py_XDECREF);
|
loaded_modules = g_hash_table_new_full(g_str_hash, g_str_equal, free, (GDestroyNotify)_unref_module);
|
||||||
|
|
||||||
python_init_prof();
|
python_init_prof();
|
||||||
|
|
||||||
|
|||||||
@@ -170,6 +170,29 @@ create_input_window(void)
|
|||||||
_inp_win_update_virtual();
|
_inp_win_update_virtual();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static gboolean
|
||||||
|
_inp_slashguard_check(void)
|
||||||
|
{
|
||||||
|
if (get_password)
|
||||||
|
return false;
|
||||||
|
/* ignore empty and quoted messages */
|
||||||
|
if (inp_line == NULL || inp_line[0] == '\0' || inp_line[0] == '>')
|
||||||
|
return false;
|
||||||
|
if (!prefs_get_boolean(PREF_SLASH_GUARD))
|
||||||
|
return false;
|
||||||
|
size_t n = 1;
|
||||||
|
while (inp_line[n] != '\0' && n < 4) {
|
||||||
|
if (inp_line[n] == '/') {
|
||||||
|
cons_show("Your text contains a slash in the first 4 characters");
|
||||||
|
free(inp_line);
|
||||||
|
inp_line = NULL;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
n++;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
char*
|
char*
|
||||||
inp_readline(void)
|
inp_readline(void)
|
||||||
{
|
{
|
||||||
@@ -203,17 +226,7 @@ inp_readline(void)
|
|||||||
chat_state_idle();
|
chat_state_idle();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inp_line) {
|
if (inp_line && !_inp_slashguard_check()) {
|
||||||
if (!get_password && prefs_get_boolean(PREF_SLASH_GUARD)) {
|
|
||||||
// ignore quoted messages
|
|
||||||
if (strlen(inp_line) > 1 && inp_line[0] != '>') {
|
|
||||||
char* res = (char*)memchr(inp_line + 1, '/', 3);
|
|
||||||
if (res) {
|
|
||||||
cons_show("Your text contains a slash in the first 4 characters");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
char* ret = inp_line;
|
char* ret = inp_line;
|
||||||
inp_line = NULL;
|
inp_line = NULL;
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
#include <stdarg.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <stddef.h>
|
#include "prof_cmocka.h"
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|||||||
@@ -2,11 +2,8 @@
|
|||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <cmocka.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|||||||
5
tests/prof_cmocka.h
Normal file
5
tests/prof_cmocka.h
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#include <stdarg.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <setjmp.h>
|
||||||
|
#include <cmocka.h>
|
||||||
@@ -21,8 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <setjmp.h>
|
#include "prof_cmocka.h"
|
||||||
#include <cmocka.h>
|
|
||||||
|
|
||||||
#include <xmpp/xmpp.h>
|
#include <xmpp/xmpp.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "config/account.h"
|
#include "config/account.h"
|
||||||
|
|||||||
@@ -21,8 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <setjmp.h>
|
#include "prof_cmocka.h"
|
||||||
#include <cmocka.h>
|
|
||||||
|
|
||||||
#include "database.h"
|
#include "database.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
#include <setjmp.h>
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <cmocka.h>
|
#include "prof_cmocka.h"
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
@@ -20,10 +20,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <setjmp.h>
|
#include "prof_cmocka.h"
|
||||||
#include <cmocka.h>
|
|
||||||
|
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,7 @@
|
|||||||
#include <libotr/message.h>
|
#include <libotr/message.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
|
|
||||||
#include "config/account.h"
|
#include "config/account.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "xmpp/contact.h"
|
#include "xmpp/contact.h"
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|||||||
@@ -1,10 +1,6 @@
|
|||||||
#include <stdarg.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stddef.h>
|
#include "prof_cmocka.h"
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
#include "xmpp/chat_session.h"
|
#include "xmpp/chat_session.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
#include "xmpp/resource.h"
|
#include "xmpp/resource.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
void
|
void
|
||||||
replace_one_substr(void** state)
|
replace_one_substr(void** state)
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <stdarg.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stddef.h>
|
#include "prof_cmocka.h"
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "xmpp/contact.h"
|
#include "xmpp/contact.h"
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
#include <stdarg.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stddef.h>
|
#include "prof_cmocka.h"
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "xmpp/form.h"
|
#include "xmpp/form.h"
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "xmpp/jid.h"
|
#include "xmpp/jid.h"
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "xmpp/muc.h"
|
#include "xmpp/muc.h"
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "tools/parser.h"
|
#include "tools/parser.h"
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "plugins/disco.h"
|
#include "plugins/disco.h"
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <stdarg.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stddef.h>
|
#include "prof_cmocka.h"
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
#include "xmpp/contact.h"
|
#include "xmpp/contact.h"
|
||||||
#include "xmpp/roster_list.h"
|
#include "xmpp/roster_list.h"
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|||||||
@@ -3,8 +3,7 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
|
|
||||||
#include <setjmp.h>
|
#include "prof_cmocka.h"
|
||||||
#include <cmocka.h>
|
|
||||||
|
|
||||||
#include "ui/window.h"
|
#include "ui/window.h"
|
||||||
#include "ui/ui.h"
|
#include "ui/ui.h"
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
#include <stdarg.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <stddef.h>
|
#include "prof_cmocka.h"
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
|
|
||||||
#include "xmpp/xmpp.h"
|
#include "xmpp/xmpp.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user