[lkml]   [2004]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Being more anal about iospace accesses..
Linus Torvalds writes:
> On Wed, 15 Sep 2004, JЖrn Engel wrote:
> >
> > C now supports pointer arithmetic with void*?
> C doesn't. gcc does. It's a documented extension, and it acts like if it
> was done on a byte.
> See gcc's user guide "Extension to the C Language Family".
> It's a singularly good feature.

Unfortunately it breaks even better identity

foo *p;

p + nr == (foo *)((char *)p + nr * sizeof *p)

unless one thinks that is --together with gcc-- that nothing occupies
exactly one byte.

> Linus


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 14:06    [W:0.101 / U:2.092 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site