| OLD | NEW |
| 1 /* $Id: compat-queue.h 1825 2007-04-22 03:32:46Z peter $ | 1 /* |
| 2 * <sys/queue.h> implementation for systems that don't have it. | 2 * <sys/queue.h> implementation for systems that don't have it. |
| 3 * | 3 * |
| 4 * Copyright (c) 1991, 1993 | 4 * Copyright (c) 1991, 1993 |
| 5 * The Regents of the University of California. All rights reserved. | 5 * The Regents of the University of California. All rights reserved. |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| 11 * notice, this list of conditions and the following disclaimer. | 11 * notice, this list of conditions and the following disclaimer. |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 if ((TAILQ_NEXT((elm), field)) != NULL) \ | 447 if ((TAILQ_NEXT((elm), field)) != NULL) \ |
| 448 TAILQ_NEXT((elm), field)->field.tqe_prev = \ | 448 TAILQ_NEXT((elm), field)->field.tqe_prev = \ |
| 449 (elm)->field.tqe_prev; \ | 449 (elm)->field.tqe_prev; \ |
| 450 else { \ | 450 else { \ |
| 451 (head)->tqh_last = (elm)->field.tqe_prev; \ | 451 (head)->tqh_last = (elm)->field.tqe_prev; \ |
| 452 } \ | 452 } \ |
| 453 *(elm)->field.tqe_prev = TAILQ_NEXT((elm), field); \ | 453 *(elm)->field.tqe_prev = TAILQ_NEXT((elm), field); \ |
| 454 } while (0) | 454 } while (0) |
| 455 | 455 |
| 456 #endif /* !SYS_QUEUE_H */ | 456 #endif /* !SYS_QUEUE_H */ |
| OLD | NEW |