Ignore:
Timestamp:
2015-02-20T22:50:54Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
0b9daac, 3d45471, 7733b8c
Parents:
af359b4
git-author:
Indent <please@…> (19-02-15 05:47:20)
git-committer:
dequis <dx@…> (20-02-15 22:50:54)
Message:

Reindent everything to K&R style with tabs

Used uncrustify, with the configuration file in ./doc/uncrustify.cfg

Commit author set to "Indent <please@…>" so that it's easier to
skip while doing git blame.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.h

    raf359b4 r5ebff60  
    2929
    3030#ifdef DEBUG_TWITTER
    31 #define debug( text... ) imcb_log( ic, text );
     31#define debug(text ...) imcb_log(ic, text);
    3232#else
    33 #define debug( text... )
     33#define debug(text ...)
    3434#endif
    3535
    36 typedef enum
    37 {
     36typedef enum {
    3837        TWITTER_HAVE_FRIENDS   = 0x00001,
    3938        TWITTER_MODE_ONE       = 0x00002,
     
    4544} twitter_flags_t;
    4645
    47 typedef enum
    48 {
     46typedef enum {
    4947        TWITTER_FILTER_TYPE_FOLLOW = 0,
    5048        TWITTER_FILTER_TYPE_TRACK
     
    5351struct twitter_log_data;
    5452
    55 struct twitter_data
    56 {
     53struct twitter_data {
    5754        char* user;
    5855        struct oauth_info *oauth_info;
     
    6562        GSList *follow_ids;
    6663        GSList *filters;
    67        
     64
    6865        guint64 last_status_id; /* For undo */
    6966        gint main_loop_id;
     
    7471        gint http_fails;
    7572        twitter_flags_t flags;
    76        
     73
    7774        /* set base_url */
    7875        gboolean url_ssl;
     
    8279
    8380        char *prefix; /* Used to generate contact + channel name. */
    84        
     81
    8582        /* set show_ids */
    8683        struct twitter_log_data *log;
     
    8986
    9087#define TWITTER_FILTER_UPDATE_WAIT 3000
    91 struct twitter_filter
    92 {
     88struct twitter_filter {
    9389        twitter_filter_type_t type;
    9490        char *text;
     
    9793};
    9894
    99 struct twitter_user_data
    100 {
     95struct twitter_user_data {
    10196        guint64 last_id;
    10297        time_t last_time;
     
    10499
    105100#define TWITTER_LOG_LENGTH 256
    106 struct twitter_log_data
    107 {
     101struct twitter_log_data {
    108102        guint64 id;
    109103        struct bee_user *bu; /* DANGER: can be a dead pointer. Check it first. */
     
    111105
    112106/**
    113  * This has the same function as the msn_connections GSList. We use this to 
     107 * This has the same function as the msn_connections GSList. We use this to
    114108 * make sure the connection is still alive in callbacks before we do anything
    115109 * else.
     
    117111extern GSList *twitter_connections;
    118112
    119 void twitter_login_finish( struct im_connection *ic );
     113void twitter_login_finish(struct im_connection *ic);
    120114
    121115struct http_request;
    122 char *twitter_parse_error( struct http_request *req );
     116char *twitter_parse_error(struct http_request *req);
    123117
    124 void twitter_log(struct im_connection *ic, char *format, ... );
     118void twitter_log(struct im_connection *ic, char *format, ...);
    125119struct groupchat *twitter_groupchat_init(struct im_connection *ic);
    126120
Note: See TracChangeset for help on using the changeset viewer.