]> ocean-lang.org Git - ocean/commit
oceani: Expression etc should be 'exec', not 'binode'.
authorNeilBrown <neil@brown.name>
Mon, 19 Feb 2018 05:46:04 +0000 (16:46 +1100)
committerNeilBrown <neil@brown.name>
Mon, 19 Feb 2018 05:48:50 +0000 (16:48 +1100)
commitb0828672cd5eb5c88778ffce7a2135a9d3889229
tree74f4a9b44c4a75b7479076f262cf60153431369b
parent25d7f048bbeb8611842b67eb011e7af87b6b4dc0
oceani: Expression etc should be 'exec', not 'binode'.

As a 'var' and a 'val' are possible expressions,
'binode' isn't correct.  This is obvious when you
consider that I needed to case $1 for a var or var
before assigning it to $0 for Factor -> Value etc.

So change all these to expect the more generic 'struct exec *'.

Without this change, error handling can try to free a var as though it
was a binode, and get into trouble.

Signed-off-by: NeilBrown <neil@brown.name>
csrc/oceani.mdc