generator: Use Continuation Passing Style (CPS) in output_to function.
authorRichard Jones <rjones@redhat.com>
Thu, 31 Dec 2009 11:51:48 +0000 (11:51 +0000)
committerRichard Jones <rjones@redhat.com>
Thu, 31 Dec 2009 11:51:48 +0000 (11:51 +0000)
commitb177f05ed6e65a9fe1fddc6ca602edcb912ac363
tree1a082e8814b4524dee4e703faf4874c6eb6bca9b
parentde08dbc83037df26f48bdfda038531f457c192d9
generator: Use Continuation Passing Style (CPS) in output_to function.

This makes the code simpler, shorter and less error-prone.
src/generator.ml