]> ocean-lang.org Git - ocean/commit
parsergen: don't use static buffer for result value.
authorNeilBrown <neil@brown.name>
Fri, 26 Feb 2021 06:33:43 +0000 (17:33 +1100)
committerNeilBrown <neil@brown.name>
Wed, 10 Mar 2021 01:00:31 +0000 (12:00 +1100)
commit0b4b292a5e6744bcf7f35e012466c969c115c1b5
treefeeff58f2632674d2a317f7a33d0a33db104a0f2
parentcaac8a86d23d6d058a4234e265c2f50e7e7c9b84
parsergen: don't use static buffer for result value.

Add the size of the result value to the per-state information, so it can
be allocated before calling do_reduce(), thus removing the need for a
overly large static buffer.

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