]> ocean-lang.org Git - ocean/commit
parsergen: don't use 'frame' to pass args to shift() or receive from pop()
authorNeilBrown <neil@brown.name>
Fri, 3 Oct 2014 03:24:36 +0000 (13:24 +1000)
committerNeilBrown <neil@brown.name>
Fri, 3 Oct 2014 03:24:36 +0000 (13:24 +1000)
commit4eb97e40e3bda161765b78716a52516be329de7c
tree18d2677d0cf5e4bc50bf576306dbdb6e5706b586
parentb3ff3da5b9a5b75a00f608233ddc917f138c052c
parsergen: don't use 'frame' to pass args to shift() or receive from pop()

'struct frame' holds a number of fields that shift()
ignores and pop() doesn't fill in.
So it is a bit confusing to see a frame passed in
and mostly ignored.

So just pass in the fields that are actually needed.
This fixes a bug where 'since_newline' was set wrongly when a newline
is shifted.

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