Re: [patch] 2.3.99-pre3-3: dev alloc name

From: Andrew Morton (andrewm@uow.edu.au)
Date: Tue Mar 21 2000 - 21:58:41 EST


Eric Brunet wrote:
>
> Maybe:
>
> struct thing
> {
> char *s;
> int i;
> };
>
> static char thing__t1[]= "foo";
> static char thing__t2[]= "foo";
>
> struct thing t1 = { thing__t1, 4 };
> struct thing t2 = { thing__t2, 4 };

Yes! That does everything right. The strings are uniquely generated
and placed in .data

-akpm-

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:35 EST