lkml.org 
[lkml]   [2000]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] 2.3.99-pre3-3: dev alloc name
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/

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