Though the C standards allow it, it's apparently possible to get MSVC
upset by saying "struct { int field; } (declarator);" instead of
"struct {int field; } declarator;", so let's just not do that.
Bugfix for
3044492
(commit msg by nickm)
* an event_base's event_loop, rather than running immediately. */
struct deferred_cb {
/** Links to the adjacent active (pending) deferred_cb objects. */
- TAILQ_ENTRY (deferred_cb) (cb_next);
+ TAILQ_ENTRY (deferred_cb) cb_next;
/** True iff this deferred_cb is pending in an event_base. */
unsigned queued : 1;
/** The function to execute when the callback runs. */
};
struct event_config_entry {
- TAILQ_ENTRY(event_config_entry) (next);
+ TAILQ_ENTRY(event_config_entry) next;
const char *avoid_method;
};
#define EVRPC_URI_PREFIX "/.rpc."
struct evrpc_hook {
- TAILQ_ENTRY(evrpc_hook) (next);
+ TAILQ_ENTRY(evrpc_hook) next;
/* returns EVRPC_TERMINATE; if the rpc should be aborted.
* a hook is is allowed to rewrite the evbuffer
};
struct evrpc_hook_ctx {
- TAILQ_ENTRY(evrpc_hook_ctx) (next);
+ TAILQ_ENTRY(evrpc_hook_ctx) next;
void *ctx;
void (*cb)(void *, enum EVRPC_HOOK_RESULT);
};
struct evrpc_meta {
- TAILQ_ENTRY(evrpc_meta) (next);
+ TAILQ_ENTRY(evrpc_meta) next;
char *key;
void *data;
struct evhttp_connection {
/* we use tailq only if they were created for an http server */
- TAILQ_ENTRY(evhttp_connection) (next);
+ TAILQ_ENTRY(evhttp_connection) next;
evutil_socket_t fd;
struct bufferevent *bufev;
/* each bound socket is stored in one of these */
struct evhttp_bound_socket {
- TAILQ_ENTRY(evhttp_bound_socket) (next);
+ TAILQ_ENTRY(evhttp_bound_socket) next;
struct evconnlistener *listener;
};
struct event_base;
struct event {
- TAILQ_ENTRY (event) (ev_active_next);
- TAILQ_ENTRY (event) (ev_next);
+ TAILQ_ENTRY(event) ev_active_next;
+ TAILQ_ENTRY(event) ev_next;
/* for managing timeouts */
union {
- TAILQ_ENTRY (event) (ev_next_with_common_timeout);
+ TAILQ_ENTRY(event) ev_next_with_common_timeout;
int min_heap_idx;
} ev_timeout_pos;
evutil_socket_t ev_fd;
union {
/* used for io events */
struct {
- TAILQ_ENTRY (event) (ev_io_next);
+ TAILQ_ENTRY(event) ev_io_next;
struct timeval ev_timeout;
} ev_io;
/* used by signal events */
struct {
- TAILQ_ENTRY (event) (ev_signal_next);
+ TAILQ_ENTRY(event) ev_signal_next;
short ev_ncalls;
/* Allows deletes in callback */
short *ev_pncalls;