svn commit: trunk/busybox/coreutils
Denis Vlasenko
vda.linux at googlemail.com
Thu Apr 19 23:05:32 UTC 2007
On Friday 20 April 2007 00:04, Bernhard Fischer wrote:
> >+ "cols", /* 3 */
> >+ "columns", /* 4 */
> >+ "size", /* 5 */
> >+ "ispeed"+1, /* 6 */
> > "ispeed",
>
> Can you please explain the +1 here?
> It is not immediately obvious to me.
> thanks,
"ispeed"+1 == "speed"
It's a poor man's const string reuse, gcc/ld is not smart enough
to notice that "ispeed" and "speed" can be implemented as
one object in rodata. Thus we help gcc to see it.
--
vda
More information about the busybox
mailing list