lkml.org 
[lkml]   [2002]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 2.4.20pre10aa1

    On 2002.10.12 J.A. Magallon wrote:
    >
    >On 2002.10.12 Andrea Arcangeli wrote:
    >[...]
    >
    >There is something I do not understand:
    >
    >struct tst {
    > struct x_t *x;
    >}
    >

    Oops,

    void f(struct t_t *a)
    {
    }

    needs it, but this works:

    typedef struct t_t t_t;

    void f(struct t_t *a)
    {
    }

    struct test {
    struct t_t *a;
    t_t *b;
    };

    gcc is happy.
    So all what is needed is to change

    struct t_t;

    to

    typdef struct t_t t_t;


    --
    J.A. Magallon <jamagallon@able.es> \ Software is like sex:
    werewolf.able.es \ It's better when it's free
    Mandrake Linux release 9.1 (Cooker) for i586
    Linux 2.4.20-pre10-jam1 (gcc 3.2 (Mandrake Linux 9.0 3.2-2mdk))
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:29    [W:8.720 / U:0.112 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site