1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Tidied #include's

This commit is contained in:
James Booth 2013-02-02 20:55:58 +00:00
parent 8cc4b55945
commit fc5bfb7d33
31 changed files with 69 additions and 66 deletions

View File

@ -26,6 +26,7 @@
#include <glib.h>
#include "accounts.h"
#include "autocomplete.h"
#include "common.h"
#include "files.h"

View File

@ -26,6 +26,7 @@
#include <glib.h>
#include "chat_session.h"
#include "log.h"
#include "preferences.h"

View File

@ -20,25 +20,26 @@
*
*/
#include <errno.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <errno.h>
#include <glib.h>
#include "accounts.h"
#include "chat_session.h"
#include "command.h"
#include "accounts.h"
#include "autocomplete.h"
#include "chat_session.h"
#include "common.h"
#include "contact.h"
#include "contact_list.h"
#include "jid.h"
#include "log.h"
#include "preferences.h"
#include "autocomplete.h"
#include "profanity.h"
#include "muc.h"
#include "preferences.h"
#include "profanity.h"
#include "theme.h"
#include "tinyurl.h"
#include "ui/ui.h"

View File

@ -25,9 +25,9 @@
#include <string.h>
#include <sys/stat.h>
#include <glib.h>
#include <curl/curl.h>
#include <curl/easy.h>
#include <glib.h>
#include "common.h"

View File

@ -24,6 +24,7 @@
#define COMMON_H
#include <stdio.h>
#include <glib.h>
#if !GLIB_CHECK_VERSION(2,28,0)

View File

@ -25,9 +25,10 @@
#include <glib.h>
#include "common.h"
#include "contact.h"
#include "common.h"
struct p_contact_t {
char *jid;
char *name;

View File

@ -24,8 +24,8 @@
#include <glib.h>
#include "contact.h"
#include "autocomplete.h"
#include "contact.h"
static Autocomplete ac;
static GHashTable *contacts;

View File

@ -25,9 +25,10 @@
#include <glib.h>
#include "common.h"
#include "jid.h"
#include "common.h"
Jid *
jid_create(const gchar * const str)
{

View File

@ -24,14 +24,15 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "glib.h"
#include "log.h"
#include "common.h"
#include "files.h"
#include "log.h"
#include "preferences.h"
#define PROF "prof"

View File

@ -20,10 +20,10 @@
*
*/
#include <config.h>
#include <glib.h>
#include "config.h"
#include "profanity.h"
static gboolean disable_tls = FALSE;

View File

@ -25,9 +25,9 @@
#include <glib.h>
#include "autocomplete.h"
#include "contact.h"
#include "jid.h"
#include "autocomplete.h"
typedef struct _muc_room_t {
char *room; // e.g. test@conference.server

View File

@ -20,22 +20,23 @@
*
*/
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#ifdef HAVE_NCURSESW_NCURSES_H
#include <ncursesw/ncurses.h>
#elif HAVE_NCURSES_H
#include <ncurses.h>
#endif
#include "config.h"
#include "preferences.h"
#include "autocomplete.h"
#include "files.h"
#include "log.h"
#include "preferences.h"
#include "autocomplete.h"
static gchar *prefs_loc;
static GKeyFile *prefs;

View File

@ -26,7 +26,6 @@
#include "config.h"
#include <glib.h>
#ifdef HAVE_NCURSESW_NCURSES_H
#include <ncursesw/ncurses.h>
#elif HAVE_NCURSES_H

View File

@ -23,12 +23,14 @@
#include "config.h"
#include <locale.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <glib.h>
#include "profanity.h"
#include "accounts.h"
#include "chat_session.h"
#include "command.h"
@ -37,9 +39,8 @@
#include "contact_list.h"
#include "files.h"
#include "log.h"
#include "preferences.h"
#include "profanity.h"
#include "muc.h"
#include "preferences.h"
#include "theme.h"
#include "ui/ui.h"
#include "xmpp/xmpp.h"

View File

@ -26,16 +26,16 @@
#include <string.h>
#include <glib.h>
#ifdef HAVE_NCURSESW_NCURSES_H
#include <ncursesw/ncurses.h>
#elif HAVE_NCURSES_H
#include <ncurses.h>
#endif
#include "theme.h"
#include "files.h"
#include "log.h"
#include "theme.h"
static GString *theme_loc;
static GKeyFile *theme;

View File

@ -26,7 +26,6 @@
#include "config.h"
#include <glib.h>
#ifdef HAVE_NCURSESW_NCURSES_H
#include <ncursesw/ncurses.h>
#elif HAVE_NCURSES_H

View File

@ -23,9 +23,9 @@
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <curl/curl.h>
#include <curl/easy.h>
#include <glib.h>
struct curl_data_t
{

View File

@ -33,14 +33,14 @@
#include <ncurses.h>
#endif
#include "common.h"
#include "command.h"
#include "common.h"
#include "contact_list.h"
#include "log.h"
#include "preferences.h"
#include "profanity.h"
#include "theme.h"
#include "ui.h"
#include "ui/ui.h"
#define _inp_win_refresh() prefresh(inp_win, 0, pad_start, rows-1, 0, rows-1, cols-1)

View File

@ -32,7 +32,7 @@
#endif
#include "theme.h"
#include "ui.h"
#include "ui/ui.h"
static WINDOW *status_bar;
static char *message = NULL;

View File

@ -25,7 +25,7 @@
#include "common.h"
#include "theme.h"
#include "ui.h"
#include "ui/ui.h"
static WINDOW *title_bar;
static char *current_title = NULL;

View File

@ -28,7 +28,6 @@
#include <wchar.h>
#include <glib.h>
#ifdef HAVE_NCURSESW_NCURSES_H
#include <ncursesw/ncurses.h>
#elif HAVE_NCURSES_H

View File

@ -26,7 +26,6 @@
#include <string.h>
#include <glib.h>
#ifdef HAVE_NCURSESW_NCURSES_H
#include <ncursesw/ncurses.h>
#elif HAVE_NCURSES_H
@ -34,7 +33,7 @@
#endif
#include "theme.h"
#include "window.h"
#include "ui/window.h"
#define CONS_WIN_TITLE "_cons"

View File

@ -23,7 +23,7 @@
#ifndef WINDOW_H
#define WINDOW_H
#include "ui.h"
#include "ui/ui.h"
typedef struct prof_win_t {
char *from;

View File

@ -24,20 +24,16 @@
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_LIBXSS
#include <X11/extensions/scrnsaver.h>
#endif
#include <glib.h>
#ifdef HAVE_LIBNOTIFY
#include <libnotify/notify.h>
#endif
#ifdef PLATFORM_CYGWIN
#include <windows.h>
#endif
#ifdef HAVE_NCURSESW_NCURSES_H
#include <ncursesw/ncurses.h>
#elif HAVE_NCURSES_H
@ -51,11 +47,11 @@
#include "contact_list.h"
#include "jid.h"
#include "log.h"
#include "preferences.h"
#include "muc.h"
#include "preferences.h"
#include "theme.h"
#include "ui.h"
#include "window.h"
#include "ui/ui.h"
#include "ui/window.h"
#define CONS_WIN_TITLE "_cons"
#define NUM_WINS 10

View File

@ -20,6 +20,8 @@
*
*/
#include "config.h"
#include <stdlib.h>
#include <string.h>
@ -27,10 +29,9 @@
#include <openssl/evp.h>
#include <strophe.h>
#include "config.h"
#include "common.h"
#include "xmpp.h"
#include "stanza.h"
#include "xmpp/xmpp.h"
#include "xmpp/stanza.h"
static GHashTable *capabilities;

View File

@ -25,7 +25,7 @@
#include <strophe.h>
#include "xmpp.h"
#include "xmpp/xmpp.h"
void caps_add(const char * const caps_str, const char * const client);
gboolean caps_contains(const char * const caps_str);

View File

@ -20,9 +20,9 @@
*
*/
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <strophe.h>
@ -31,14 +31,14 @@
#include "contact_list.h"
#include "jid.h"
#include "log.h"
#include "muc.h"
#include "preferences.h"
#include "profanity.h"
#include "muc.h"
#include "xmpp.h"
#include "stanza.h"
#include "message.h"
#include "iq.h"
#include "presence.h"
#include "xmpp/iq.h"
#include "xmpp/message.h"
#include "xmpp/presence.h"
#include "xmpp/stanza.h"
#include "xmpp/xmpp.h"
static struct _jabber_conn_t {
xmpp_log_t *log;

View File

@ -20,19 +20,20 @@
*
*/
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <strophe.h>
#include "common.h"
#include "config.h"
#include "contact_list.h"
#include "log.h"
#include "xmpp.h"
#include "stanza.h"
#include "iq.h"
#include "capabilities.h"
#include "xmpp/capabilities.h"
#include "xmpp/iq.h"
#include "xmpp/stanza.h"
#include "xmpp/xmpp.h"
#define HANDLE(ns, type, func) xmpp_handler_add(conn, func, ns, STANZA_NAME_IQ, type, ctx)

View File

@ -30,9 +30,9 @@
#include "muc.h"
#include "preferences.h"
#include "profanity.h"
#include "xmpp.h"
#include "stanza.h"
#include "message.h"
#include "xmpp/message.h"
#include "xmpp/stanza.h"
#include "xmpp/xmpp.h"
#define HANDLE(ns, type, func) xmpp_handler_add(conn, func, ns, STANZA_NAME_MESSAGE, type, ctx)

View File

@ -30,9 +30,9 @@
#include "muc.h"
#include "preferences.h"
#include "profanity.h"
#include "xmpp.h"
#include "stanza.h"
#include "capabilities.h"
#include "xmpp/capabilities.h"
#include "xmpp/stanza.h"
#include "xmpp/xmpp.h"
static GHashTable *sub_requests;

View File

@ -27,7 +27,7 @@
#include <strophe.h>
#include "common.h"
#include "stanza.h"
#include "xmpp/stanza.h"
static int _field_compare(FormField *f1, FormField *f2);