syscall table patch

linas at austin.ibm.com linas at austin.ibm.com
Sat Nov 8 06:14:00 EST 2003


On Fri, Nov 07, 2003 at 01:06:18PM -0600, Hollis Blanchard wrote:
> On Friday, Nov 7, 2003, at 12:48 US/Central, linas at austin.ibm.com wrote:
> >
> > First reason:
> >    Because I wanted to define a macro to initialize the 32-bit and
> > 64-bit
> >    tables at the same time, and couldn't figure out how to do this at
> >    compile time.
> [snip]
> >    and so one can't initialize 32 and 64 bit tables with one macro.
>
> I don't see why that's important. They are different tables, after
> all...

Hmm, well, I thought it might be handy to be able to read the two
entries, side-by-side.

> This may be a C99 thing, but:
>
> #include <stdio.h>
> void main(void) {
>      int array[] = { [12] = 1, };
>      printf("%i\n", array[0]);
>      printf("%i\n", array[12]);
> }

Ohh, good one, I didn't know that one.

--linas

** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list