linux-mips
[Top] [All Lists]

Re: Is there no way to shared code with Linux and other OSes?

To: "Kevin D. Kissell" <kevink@paralogos.com>
Subject: Re: Is there no way to shared code with Linux and other OSes?
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: Sat, 22 Nov 2008 11:13:31 +0100 (CET)
Cc: Chad Reese <kreese@caviumnetworks.com>, linux-mips@linux-mips.org
In-reply-to: <4927D6E0.4020009@paralogos.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <4927C34F.4000201@caviumnetworks.com> <4927D6E0.4020009@paralogos.com>
Sender: linux-mips-bounce@linux-mips.org
On Sat, 22 Nov 2008, Kevin D. Kissell wrote:
> [This should be good for some useless weekend flaming.]

Yeah! ;-)

> Chad Reese wrote:
> to move away from such arbitrary dogmatism.  The argument given for banning
> typedefs altogether is that nested typedefs are confusing to programmers.  I

I thought the main reason was that you can't have forward declarations of
typedefs, while you can have for structs.

Hence

    typedef struct {
        ...
        b_t *p;
    } a_t;

    typedef struct {
        ...
        a_t *p;
    } b_t;

won't fly.

Gr{oetje,eeting}s,

                                                Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                                            -- Linus Torvalds

<Prev in Thread] Current Thread [Next in Thread>