From 7a6112d3b085d5989503ffe3840ab4530e993cc3 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 7 Jul 2008 14:16:46 +0000 Subject: Punt STAILQ and just use TAILQ so we're a bit more portable. --- src/includes/rc-misc.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/includes') diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h index d6bc8d9a..4bdeb01f 100644 --- a/src/includes/rc-misc.h +++ b/src/includes/rc-misc.h @@ -62,16 +62,6 @@ #endif /* Some libc implemntations don't have these */ -#ifndef STAILQ_CONCAT -#define STAILQ_CONCAT(head1, head2) do { \ - if (!STAILQ_EMPTY((head2))) { \ - *(head1)->stqh_last = (head2)->stqh_first; \ - (head1)->stqh_last = (head2)->stqh_last; \ - STAILQ_INIT((head2)); \ - } \ -} while (0) -#endif - #ifndef TAILQ_CONCAT #define TAILQ_CONCAT(head1, head2, field) do { \ if (!TAILQ_EMPTY(head2)) { \ @@ -83,13 +73,6 @@ } while (0) #endif -#ifndef STAILQ_FOREACH_SAFE -#define STAILQ_FOREACH_SAFE(var, head, field, tvar) \ - for ((var) = STAILQ_FIRST((head)); \ - (var) && ((tvar) = STAILQ_NEXT((var), field), 1); \ - (var) = (tvar)) -#endif - #ifndef TAILQ_FOREACH_SAFE #define TAILQ_FOREACH_SAFE(var, head, field, tvar) \ for ((var) = TAILQ_FIRST((head)); \ -- cgit v1.2.3