[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev lynx2.8.2dev.17
From: |
pg |
Subject: |
Re: lynx-dev lynx2.8.2dev.17 |
Date: |
Sat, 20 Feb 1999 09:23:27 -0700 (MST) |
In a recent note, address@hidden said:
> Date: Wed, 17 Feb 1999 09:44:32 -0500 (EST)
>
> 1999-02-16 (2.8.2dev.17)
> * modify LYReadCFG.c to avoid duplicating data for cookies - BJP
Alas, this now fails to compile on OS/390 with:
ERROR CBC3025 ./../../lynx2-8-2/src/LYReadCFG.c:1043
Operand must be a modifiable lvalue.
The offending code appears to be:
#define FREE(x) if (x) {free(x); x = NULL;}
[ ... ]
FREE((char *)q->str_value);
I get a similar failure with merely:
char *p;
p = NULL;
(char *)p = NULL;
the first assignment succeeds; the second fails. I suspect I'll
need to discuss this with IBM tech support, since Lynx has
been validated on so many other platforms. I'll have my
ANSI C spec handy Monday. But can any language lawyer reading
this point me to the section concerning casting of L-values?
Thanks,
gil