Re: [9fans] /sys/src/libdraw/arith.c:163

2008-11-21 Thread Russ Cox
On Fri, Nov 21, 2008 at 1:41 AM, <[EMAIL PROTECTED]> wrote: > The code is: > >extern ulong >drawld2chan[] = { >GREY1, >GREY2, >GREY4, >CMAP8, >}; > > and GCC (yes, that one!) complains about it: > >gcc

Re: [9fans] /sys/src/libdraw/arith.c:163

2008-11-21 Thread lucio
> Documented here: > > /sys/doc/comp.ms:1256,1266 Thank you, I've been looking for this type of thing for a long time (since typestr made its first appearance in kencc), but I could have sworn there had been no updates to the compiler documentation. Trust me to overlook the obvious. ++L

Re: [9fans] /sys/src/libdraw/arith.c:163

2008-11-21 Thread Richard Miller
> Hm. So kencc knows about it, but it seems an undocumented feature. Documented here: /sys/doc/comp.ms:1256,1266 > How do I express it to suit GCC given that I don't know what it does? Just replace SET(x) with x = 0;

Re: [9fans] /sys/src/libdraw/arith.c:163

2008-11-21 Thread lucio
>> I can't seem to find a definition for SET() anywhere, although I may >> not be looking in the right places. > > /sys/src/cmd/cc/lex.c:1163 Hm. So kencc knows about it, but it seems an undocumented feature. How do I express it to suit GCC given that I don't know what it does? And can I express

Re: [9fans] /sys/src/libdraw/arith.c:163

2008-11-21 Thread Richard Miller
> I can't seem to find a definition for SET() anywhere, although I may > not be looking in the right places. /sys/src/cmd/cc/lex.c:1163

Re: [9fans] /sys/src/libdraw/arith.c:163

2008-11-21 Thread lucio
> and GCC (yes, that one!) complains about it: Here's another: /sys/src/libdraw/window.c:25 s = malloc(sizeof(Screen)); if(s == 0) return 0; SET(id); for(try=0; try<25; try++){ I can't seem to find a definition for SET() a