Lines Matching refs:element
1287 #define DLL_insert(head,tail,element) do { \ argument
1288 EXTRA_CHECK (NULL == (element)->next); \
1289 EXTRA_CHECK (NULL == (element)->prev); \
1290 (element)->next = (head); \
1291 (element)->prev = NULL; \
1293 (tail) = element; \
1295 (head)->prev = element; \
1296 (head) = (element); } while (0)
1308 #define DLL_remove(head,tail,element) do { \ argument
1309 EXTRA_CHECK ( (NULL != (element)->next) || ((element) == (tail))); \
1310 EXTRA_CHECK ( (NULL != (element)->prev) || ((element) == (head))); \
1311 if ((element)->prev == NULL) \
1312 (head) = (element)->next; \
1314 (element)->prev->next = (element)->next; \
1315 if ((element)->next == NULL) \
1316 (tail) = (element)->prev; \
1318 (element)->next->prev = (element)->prev; \
1319 (element)->next = NULL; \
1320 (element)->prev = NULL; } while (0)
1332 #define XDLL_insert(head,tail,element) do { \ argument
1333 EXTRA_CHECK (NULL == (element)->nextX); \
1334 EXTRA_CHECK (NULL == (element)->prevX); \
1335 (element)->nextX = (head); \
1336 (element)->prevX = NULL; \
1338 (tail) = element; \
1340 (head)->prevX = element; \
1341 (head) = (element); } while (0)
1353 #define XDLL_remove(head,tail,element) do { \ argument
1354 EXTRA_CHECK ( (NULL != (element)->nextX) || ((element) == (tail))); \
1355 EXTRA_CHECK ( (NULL != (element)->prevX) || ((element) == (head))); \
1356 if (NULL == (element)->prevX) \
1357 (head) = (element)->nextX; \
1359 (element)->prevX->nextX = (element)->nextX; \
1360 if (NULL == (element)->nextX) \
1361 (tail) = (element)->prevX; \
1363 (element)->nextX->prevX = (element)->prevX; \
1364 (element)->nextX = NULL; \
1365 (element)->prevX = NULL; } while (0)
1376 #define EDLL_insert(head,tail,element) do { \ argument
1377 (element)->nextE = (head); \
1378 (element)->prevE = NULL; \
1380 (tail) = element; \
1382 (head)->prevE = element; \
1383 (head) = (element); } while (0)
1395 #define EDLL_remove(head,tail,element) do { \ argument
1396 if ((element)->prevE == NULL) \
1397 (head) = (element)->nextE; \
1399 (element)->prevE->nextE = (element)->nextE; \
1400 if ((element)->nextE == NULL) \
1401 (tail) = (element)->prevE; \
1403 (element)->nextE->prevE = (element)->prevE; \
1404 (element)->nextE = NULL; \
1405 (element)->prevE = NULL; } while (0)