On Fri, May 9, 2014 at 7:59 PM, Rick Lyman <lyman.r...@gmail.com> wrote:
> below are a few of the errors generated [compiling miniPicoLisp with 
> emscripten]:
>
> flow.c:41:62: warning: '&&' within '||' [-Wlogical-op-parentheses]
>    if (isNum(x = EVAL(x)) || isNil(x) || x == T || isCell(x) &&
> isNum(car(x)))
>                                                 ~~
> ~~~~~~~~~~^~~~~~~~~~~~~~~~
> flow.c:41:62: note: place parentheses around the '&&' expression to silence
> this
>
>       warning
>    if (isNum(x = EVAL(x)) || isNil(x) || x == T || isCell(x) &&
> isNum(car(x)))
>
> ~~~~~~~~~~^~~~~~~~~~~~~~~~
> flow.c:60:37: error: fields must have a constant size: 'variable length
> array in
>
>       structure' extension will never be supported
>          struct {any sym; any val;} bnd[length(x)];
>                                     ^
> flow.c:77:18: warning: using the result of an assignment as a condition
> without
>       parentheses [-Wparentheses]
>       } while (p = p->link);
>                ~~^~~~~~~~~

I investigated a bit, with my very limited C knowledge.
Parens are (very) easy to fix, but the Ā«fields must have a constant sizeĀ»
leaves me clueless, even after dozens of minutes googling.


chri

-- 

http://profgra.org/lycee/ (site pro)
http://delicious.com/profgraorg (liens, favoris)
https://twitter.com/profgraorg
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to