Lines Matching refs:lep
219 * Splice the sequence ep1..epN into the ring before element lep
220 * (..lep.. becomes ..ep1..epN..lep..)
223 * @param lep Element in the ring to splice before
228 #define APR_RING_SPLICE_BEFORE(lep, ep1, epN, link) do { \
229 APR_RING_NEXT((epN), link) = (lep); \
230 APR_RING_PREV((ep1), link) = APR_RING_PREV((lep), link); \
231 APR_RING_NEXT(APR_RING_PREV((lep), link), link) = (ep1); \
232 APR_RING_PREV((lep), link) = (epN); \
236 * Splice the sequence ep1..epN into the ring after element lep
237 * (..lep.. becomes ..lep..ep1..epN..)
240 * @param lep Element in the ring to splice after
245 #define APR_RING_SPLICE_AFTER(lep, ep1, epN, link) do { \
246 APR_RING_PREV((ep1), link) = (lep); \
247 APR_RING_NEXT((epN), link) = APR_RING_NEXT((lep), link); \
248 APR_RING_PREV(APR_RING_NEXT((lep), link), link) = (epN); \
249 APR_RING_NEXT((lep), link) = (ep1); \
253 * Insert the element nep into the ring before element lep
254 * (..lep.. becomes ..nep..lep..)
257 * @param lep Element in the ring to insert before
261 #define APR_RING_INSERT_BEFORE(lep, nep, link) \
262 APR_RING_SPLICE_BEFORE((lep), (nep), (nep), link)
265 * Insert the element nep into the ring after element lep
266 * (..lep.. becomes ..lep..nep..)
269 * @param lep Element in the ring to insert after
273 #define APR_RING_INSERT_AFTER(lep, nep, link) \
274 APR_RING_SPLICE_AFTER((lep), (nep), (nep), link)