Merge upstream (Profanity) changes #28
44
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
44
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
---
|
||||||
|
name: Bug report
|
||||||
|
about: Create a report
|
||||||
|
title: ''
|
||||||
|
labels: bug
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<!--- Provide a general summary of the issue in the Title above -->
|
||||||
|
|
||||||
|
<!--- More than 50 issues open? Please don't file any new feature requests -->
|
||||||
|
<!--- Help us reduce the work first :-) -->
|
||||||
|
|
||||||
|
## Expected Behavior
|
||||||
|
<!--- If you're describing a bug, tell us what should happen -->
|
||||||
|
<!--- If you're suggesting a change/improvement, tell us how it should work -->
|
||||||
|
|
||||||
|
## Current Behavior
|
||||||
|
<!--- If describing a bug, tell us what happens instead of the expected behavior -->
|
||||||
|
<!--- If suggesting a change/improvement, explain the difference from current behavior -->
|
||||||
|
|
||||||
|
## Possible Solution
|
||||||
|
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
|
||||||
|
<!--- or ideas how to implement the addition or change -->
|
||||||
|
|
||||||
|
## Steps to Reproduce (for bugs)
|
||||||
|
<!--- Describe, in detail, what needs to happen to reproduce this bug -->
|
||||||
|
<!--- Give us a screenshot (if it's helpful for this particular bug) -->
|
||||||
|
1.
|
||||||
|
2.
|
||||||
|
3.
|
||||||
|
4.
|
||||||
|
|
||||||
|
## Context
|
||||||
|
<!--- How has this issue affected you? What are you trying to accomplish? -->
|
||||||
|
|
||||||
|
## Environment
|
||||||
|
* Give us the version and build information output generated by `profanity -v`
|
||||||
|
* If you could not yet build profanity, mention the revision you try to build from
|
||||||
|
* Operating System/Distribution
|
||||||
|
* glib version
|
||||||
|
* libstrophe version
|
||||||
|
* Some bugs might be due to specific implementation in the server. `/serversoftware example.domain` can be helpful
|
||||||
@@ -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 \
|
||||||
@@ -170,6 +171,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 \
|
||||||
@@ -284,6 +286,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
|
||||||
|
|
||||||
@@ -347,9 +350,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
|
||||||
|
|||||||
@@ -1675,7 +1675,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);
|
||||||
@@ -1687,38 +1687,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);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
free(inpcp);
|
free(inpcp);
|
||||||
inpcp = tmp;
|
if (!tmp) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
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);
|
||||||
@@ -1737,40 +1735,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);
|
acstring = g_strdup_printf("~/%s", tmp + output_off);
|
||||||
free(foofile);
|
g_free(tmp);
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
acstring = g_strdup_printf("~/%s", tmp + output_off);
|
|
||||||
if (!acstring) {
|
|
||||||
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) {
|
}
|
||||||
free(directory);
|
if (!acstring) {
|
||||||
free(foofile);
|
g_array_free(files, TRUE);
|
||||||
return NULL;
|
free(foofile);
|
||||||
}
|
free(directory);
|
||||||
|
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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -433,7 +433,7 @@ static const struct cmd_t command_defs[] = {
|
|||||||
{ "<contact>", "The contact you wish to view information about." },
|
{ "<contact>", "The contact you wish to view information about." },
|
||||||
{ "<nick>", "When in a chat room, the occupant you wish to view information about." })
|
{ "<nick>", "When in a chat room, the occupant you wish to view information about." })
|
||||||
CMD_EXAMPLES(
|
CMD_EXAMPLES(
|
||||||
"/info thor@aasgard.server.org",
|
"/info thor@asgard.server.org",
|
||||||
"/info heimdall")
|
"/info heimdall")
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -8577,19 +8577,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);
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
#include <curl/easy.h>
|
#include <curl/easy.h>
|
||||||
@@ -199,6 +200,10 @@ load_custom_keyfile(prof_keyfile_t* keyfile, gchar* filename)
|
|||||||
|
|
||||||
if (g_file_test(keyfile->filename, G_FILE_TEST_EXISTS)) {
|
if (g_file_test(keyfile->filename, G_FILE_TEST_EXISTS)) {
|
||||||
g_chmod(keyfile->filename, S_IRUSR | S_IWUSR);
|
g_chmod(keyfile->filename, S_IRUSR | S_IWUSR);
|
||||||
|
} else {
|
||||||
|
int fno = g_creat(keyfile->filename, S_IRUSR | S_IWUSR);
|
||||||
|
if (fno != -1)
|
||||||
|
g_close(fno, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return _load_keyfile(keyfile);
|
return _load_keyfile(keyfile);
|
||||||
|
|||||||
@@ -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,7 +1,4 @@
|
|||||||
#include <stdarg.h>
|
#include "prof_cmocka.h"
|
||||||
#include <stddef.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>
|
||||||
|
|||||||
@@ -21,8 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#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,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 "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,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/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,9 +1,6 @@
|
|||||||
#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>
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
@@ -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,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/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,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 "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,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,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,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