From owner-freebsd-current Sun Oct 20 07:46:55 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA23585 for current-outgoing; Sun, 20 Oct 1996 07:46:55 -0700 (PDT) Received: from critter.tfs.com (disn4.cybercity.dk [194.16.57.4]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id HAA23572 for ; Sun, 20 Oct 1996 07:46:48 -0700 (PDT) Received: from critter.tfs.com (localhost.tfs.com [127.0.0.1]) by critter.tfs.com (8.7.5/8.7.3) with ESMTP id QAA24022 for ; Sun, 20 Oct 1996 16:46:59 +0200 (MET DST) To: current@freebsd.org Subject: Reply-to: phk@freebsd.org Date: Sun, 20 Oct 1996 16:46:59 +0200 Message-ID: <24020.845822819@critter.tfs.com> From: Poul-Henning Kamp Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As much as I like this file there's one detail that I hate: /* * Singly-linked List definitions. */ #define SLIST_HEAD(name, type) \ struct name { \ - struct type *slh_first; /* first element */ \ + type *slh_first; /* first element */ \ } If I have something like this: typedef struct geom_req_s geom_req; struct geom_req_s { ... }; How can I add a any of the types from to this data-type in a clean fashion ? All other use the typedef, but for the queues I have to use the struct name. Is it too late to fix this oversight in ? -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. Future will arrive by its own means, progress not so.