Commit: 6342c8206f7e21ecfb2450a3349ddeb5b0ac93f9
Parent: 62eb5aa3d6f9ae5bdeb04a7d11297ef60b54c5ff
Author: Randy Palamar
Date: Mon, 28 Nov 2022 21:49:50 -0700
fix list_entry_1st formatting error
Diffstat:
12 files changed, 77 insertions(+), 42 deletions(-)
diff --git a/auth.c b/auth.c
@@ -5,7 +5,8 @@
static struct list_head auth = { &auth, &auth };
struct http_auth {
- list_entry_1st unsigned char *host;
+ list_entry_1st;
+ unsigned char *host;
int port;
unsigned char *realm;
unsigned char *user;
diff --git a/cookies.c b/cookies.c
@@ -18,7 +18,8 @@ struct list_head all_cookies = { &all_cookies, &all_cookies };
struct list_head c_domains = { &c_domains, &c_domains };
struct c_server {
- list_entry_1st int accpt;
+ list_entry_1st;
+ int accpt;
unsigned char server[1];
};
diff --git a/dns.c b/dns.c
@@ -7,7 +7,8 @@
#include "links.h"
struct dnsentry {
- list_entry_1st uttime absolute_time;
+ list_entry_1st;
+ uttime absolute_time;
struct lookup_result addr;
char name[1];
};
diff --git a/html_tbl.c b/html_tbl.c
@@ -1760,7 +1760,8 @@ ret2:
}
struct table_cache_entry {
- list_entry_1st struct table_cache_entry *hash_next;
+ list_entry_1st;
+ struct table_cache_entry *hash_next;
unsigned char *start;
unsigned char *end;
int align;
diff --git a/https.c b/https.c
@@ -27,7 +27,8 @@
static SSL_CTX *contexts = NULL;
struct session_cache_entry {
- list_entry_1st uttime absolute_time;
+ list_entry_1st;
+ uttime absolute_time;
SSL_CTX *ctx;
SSL_SESSION *session;
int port;
diff --git a/links.h b/links.h
@@ -227,7 +227,7 @@ list_size(struct list_head *l)
return n;
}
-#define list_entry_1st struct list_head list_entry;
+#define list_entry_1st struct list_head list_entry
#define init_list_1st(x) { (x), (x) },
#define WHITECHAR(x) \
@@ -499,7 +499,8 @@ void init_dns(void);
/* cache.c */
struct cache_entry {
- list_entry_1st unsigned char *head;
+ list_entry_1st;
+ unsigned char *head;
int http_code;
unsigned char *redirect;
off_t length;
@@ -522,7 +523,8 @@ struct cache_entry {
};
struct fragment {
- list_entry_1st off_t offset;
+ list_entry_1st;
+ off_t offset;
off_t length;
off_t real_length;
unsigned char data[1];
@@ -582,7 +584,8 @@ struct remaining_info {
struct conn_info;
struct connection {
- list_entry_1st tcount count;
+ list_entry_1st;
+ tcount count;
unsigned char *url;
unsigned char *prev_url; /* allocated string with referrer or NULL */
int running;
@@ -624,7 +627,8 @@ extern tcount netcfg_stamp;
extern struct list_head queue;
struct k_conn {
- list_entry_1st void (*protocol)(struct connection *);
+ list_entry_1st;
+ void (*protocol)(struct connection *);
unsigned char *host;
int port;
int conn;
@@ -699,7 +703,8 @@ enum ses_sig {
};
struct status {
- list_entry_1st struct connection *c;
+ list_entry_1st;
+ struct connection *c;
struct cache_entry *ce;
int state;
int prev_error;
@@ -835,7 +840,8 @@ void kill_buffer_data(struct read_buffer *, int);
/* cookies.c */
struct cookie {
- list_entry_1st unsigned char *name, *value;
+ list_entry_1st;
+ unsigned char *name, *value;
unsigned char *server;
unsigned char *path, *domain;
time_t expires; /* zero means undefined */
@@ -843,7 +849,8 @@ struct cookie {
};
struct c_domain {
- list_entry_1st unsigned char domain[1];
+ list_entry_1st;
+ unsigned char domain[1];
};
extern struct list_head all_cookies;
@@ -1041,8 +1048,8 @@ enum evh {
};
struct window {
- list_entry_1st void (*handler)(struct window *, struct links_event *,
- int fwd);
+ list_entry_1st;
+ void (*handler)(struct window *, struct links_event *, int fwd);
void *data;
int xp, yp;
struct terminal *term;
@@ -1060,7 +1067,8 @@ struct window {
struct term_spec;
struct terminal {
- list_entry_1st tcount count;
+ list_entry_1st;
+ tcount count;
int x;
int y;
@@ -1098,7 +1106,8 @@ struct terminal {
};
struct term_spec {
- list_entry_1st unsigned char term[MAX_TERM_LEN];
+ list_entry_1st;
+ unsigned char term[MAX_TERM_LEN];
int mode;
int m11_hack;
int restrict_852;
@@ -1212,7 +1221,8 @@ int attach_terminal(void *, int);
#define O_OK -3
struct object_request {
- list_entry_1st int refcount;
+ list_entry_1st;
+ int refcount;
tcount count;
tcount term;
struct status stat;
@@ -1316,7 +1326,8 @@ enum fc {
struct menu_item;
struct form_control {
- list_entry_1st int form_num; /* cislo formulare */
+ list_entry_1st;
+ int form_num; /* cislo formulare */
int ctrl_num; /* identifikace polozky v ramci formulare */
int g_ctrl_num; /* identifikace polozky mezi vsemi polozkami (poradi v
poli form_info) */
@@ -1397,7 +1408,8 @@ struct link_bg {
};
struct tag {
- list_entry_1st int x;
+ list_entry_1st;
+ int x;
int y;
unsigned char name[1];
};
@@ -1500,7 +1512,8 @@ ds2do(struct document_setup *ds, struct document_options *doo, int col)
}
struct node {
- list_entry_1st int x, y;
+ list_entry_1st;
+ int x, y;
int xw, yw;
};
@@ -1547,7 +1560,8 @@ struct additional_files {
};
struct additional_file {
- list_entry_1st struct object_request *rq;
+ list_entry_1st;
+ struct object_request *rq;
tcount use_tag;
tcount use_tag2;
int need_reparse;
@@ -1556,7 +1570,8 @@ struct additional_file {
};
struct f_data {
- list_entry_1st struct session *ses;
+ list_entry_1st;
+ struct session *ses;
struct f_data_c *fd;
struct object_request *rq;
tcount use_tag;
@@ -1620,7 +1635,8 @@ struct view_state {
struct location;
struct f_data_c {
- list_entry_1st struct f_data_c *parent;
+ list_entry_1st;
+ struct f_data_c *parent;
struct session *ses;
struct location *loc;
struct view_state *vs;
@@ -1662,7 +1678,8 @@ struct f_data_c {
};
struct location {
- list_entry_1st struct location *parent;
+ list_entry_1st;
+ struct location *parent;
unsigned char *name; /* frame name */
unsigned char *url;
unsigned char *prev_url; /* allocated string with referrer */
@@ -1680,7 +1697,8 @@ struct kbdprefix {
};
struct download {
- list_entry_1st unsigned char *url;
+ list_entry_1st;
+ unsigned char *url;
struct status stat;
unsigned char decompress;
unsigned char *cwd;
@@ -1702,7 +1720,8 @@ struct download {
extern struct list_head downloads;
struct session {
- list_entry_1st struct list_head history; /* struct location */
+ list_entry_1st;
+ struct list_head history; /* struct location */
struct list_head forward_history;
struct terminal *term;
struct window *win;
@@ -1878,7 +1897,8 @@ struct mainmenu {
};
struct history_item {
- list_entry_1st unsigned char str[1];
+ list_entry_1st;
+ unsigned char str[1];
};
struct history {
@@ -2301,7 +2321,8 @@ struct par_attrib {
};
struct html_element {
- list_entry_1st struct text_attrib attr;
+ list_entry_1st;
+ struct text_attrib attr;
struct par_attrib parattr;
#define INVISIBLE 1
#define INVISIBLE_SCRIPT 2
@@ -2524,7 +2545,8 @@ void load_url_history(void);
void save_url_history(void);
struct driver_param {
- list_entry_1st int kbd_codepage;
+ list_entry_1st;
+ int kbd_codepage;
int palette_mode;
unsigned char *param;
unsigned char shell_term[MAX_STR_LEN];
@@ -2655,7 +2677,8 @@ extern struct document_setup dds;
enum title { TITLE_EDIT, TITLE_ADD };
struct list {
- list_entry_1st unsigned char type;
+ list_entry_1st;
+ unsigned char type;
/*
* bit 0: 0=item, 1=directory
* bit 1: directory is open (1)/closed (0); for item unused
@@ -2767,7 +2790,8 @@ struct extension {
};
struct protocol_program {
- list_entry_1st unsigned char *prog;
+ list_entry_1st;
+ unsigned char *prog;
int system;
};
diff --git a/listedit.c b/listedit.c
@@ -57,8 +57,8 @@
* - zavri adresar
* mezera toggle adresar
* ins, *, 8, i toggle oznacit
- * ?, /, N, n hledani nahoru, dolu, znova,
- * znova na druhou stranu
+ * ?, /, N, n hledani nahoru, dolu,
+ * znova, znova na druhou stranu
*/
/*
diff --git a/memory.c b/memory.c
@@ -6,7 +6,8 @@
#include "links.h"
struct cache_upcall {
- list_entry_1st int (*upcall)(int);
+ list_entry_1st;
+ int (*upcall)(int);
unsigned char flags;
unsigned char name[1];
};
diff --git a/sched.c b/sched.c
@@ -17,7 +17,8 @@ tcount netcfg_stamp = 0;
struct list_head queue = { &queue, &queue };
struct h_conn {
- list_entry_1st unsigned char *host;
+ list_entry_1st;
+ unsigned char *host;
int conn;
};
@@ -1145,7 +1146,8 @@ is_entry_used(struct cache_entry *e)
}
struct blacklist_entry {
- list_entry_1st int flags;
+ list_entry_1st;
+ int flags;
unsigned char host[1];
};
diff --git a/select.c b/select.c
@@ -38,7 +38,8 @@ static fd_set x_write;
static int w_max;
struct timer {
- list_entry_1st uttime interval;
+ list_entry_1st;
+ uttime interval;
void (*func)(void *);
void *data;
};
@@ -174,7 +175,8 @@ select_info(int type)
}
struct bottom_half {
- list_entry_1st void (*fn)(void *);
+ list_entry_1st;
+ void (*fn)(void *);
void *data;
};
diff --git a/session.c b/session.c
@@ -109,9 +109,9 @@ static const struct s_msg_dsc msg_dsc[] = {
};
struct strerror_val {
- list_entry_1st
+ list_entry_1st;
#ifdef REORDER_LIST_ENTRIES
- unsigned char pad;
+ unsigned char pad;
#endif
unsigned char msg[1];
};
diff --git a/view.c b/view.c
@@ -1686,7 +1686,8 @@ has_form_submit(struct f_data *f, struct form_control *form)
}
struct submitted_value {
- list_entry_1st int type;
+ list_entry_1st;
+ int type;
unsigned char *name;
unsigned char *value;
void *file_content;