# define OSSL_LIST_DBG(x) x;
# endif
-# define LIST_FOREACH_FROM(p, name, init) \
+# define OSSL_LIST_FOREACH_FROM(p, name, init) \
for ((p) = (init); \
(p) != NULL; \
(p) = ossl_list_##name##_next(p))
-# define LIST_FOREACH(p, name, l) \
- LIST_FOREACH_FROM(p, name, ossl_list_##name##_head(l))
+# define OSSL_LIST_FOREACH(p, name, l) \
+ OSSL_LIST_FOREACH_FROM(p, name, ossl_list_##name##_head(l))
-# define LIST_FOREACH_REV_FROM(p, name, init) \
+# define OSSL_LIST_FOREACH_REV_FROM(p, name, init) \
for ((p) = (init); \
(p) != NULL; \
(p) = ossl_list_##name##_prev(p))
-# define LIST_FOREACH_REV(p, name, l) \
- LIST_FOREACH_FROM(p, name, ossl_list_##name##_tail(l))
+# define OSSL_LIST_FOREACH_REV(p, name, l) \
+ OSSL_LIST_FOREACH_FROM(p, name, ossl_list_##name##_tail(l))
-# define LIST_FOREACH_DELSAFE_FROM(p, pn, name, init) \
+# define OSSL_LIST_FOREACH_DELSAFE_FROM(p, pn, name, init) \
for ((p) = (init); \
(p) != NULL && (((pn) = ossl_list_##name##_next(p)), 1); \
(p) = (pn))
-#define LIST_FOREACH_DELSAFE(p, pn, name, l) \
- LIST_FOREACH_DELSAFE_FROM(p, pn, name, ossl_list_##name##_head(l))
+#define OSSL_LIST_FOREACH_DELSAFE(p, pn, name, l) \
+ OSSL_LIST_FOREACH_DELSAFE_FROM(p, pn, name, ossl_list_##name##_head(l))
-# define LIST_FOREACH_REV_DELSAFE_FROM(p, pn, name, init) \
+# define OSSL_LIST_FOREACH_REV_DELSAFE_FROM(p, pn, name, init) \
for ((p) = (init); \
(p) != NULL && (((pn) = ossl_list_##name##_prev(p)), 1); \
(p) = (pn))
-# define LIST_FOREACH_REV_DELSAFE(p, pn, name, l) \
- LIST_FOREACH_REV_DELSAFE_FROM(p, pn, name, ossl_list_##name##_tail(l))
+# define OSSL_LIST_FOREACH_REV_DELSAFE(p, pn, name, l) \
+ OSSL_LIST_FOREACH_REV_DELSAFE_FROM(p, pn, name, ossl_list_##name##_tail(l))
/* Define a list structure */
# define OSSL_LIST(name) OSSL_LIST_ ## name
if (!port_update_poll_desc(port, net_wbio, /*for_write=*/1))
return 0;
- LIST_FOREACH(ch, ch, &port->channel_list)
+ OSSL_LIST_FOREACH(ch, ch, &port->channel_list)
ossl_qtx_set_bio(ch->qtx, net_wbio);
port->net_wbio = net_wbio;
port_rx_pre(port);
/* Iterate through all channels and service them. */
- LIST_FOREACH(ch, ch, &port->channel_list) {
+ OSSL_LIST_FOREACH(ch, ch, &port->channel_list) {
QUIC_TICK_RESULT subr = {0};
ossl_quic_channel_subtick(ch, &subr, flags);
if (triggering_ch != NULL)
ossl_quic_channel_raise_net_error(triggering_ch);
- LIST_FOREACH(ch, ch, &port->channel_list)
+ OSSL_LIST_FOREACH(ch, ch, &port->channel_list)
if (ch != triggering_ch)
ossl_quic_channel_raise_net_error(ch);
}