transformations: Relax the rules for transformation finalizing.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 29 Jan 2013 06:54:18 +0000 (22:54 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 31 Jan 2013 04:59:55 +0000 (20:59 -0800)
commitfab049462379652a4e00af9ef73c83bdfc87c77f
tree3654de279d74a9928a44c6a3c76be015c221c74c
parent8fd5e212f39c4dbe6874a2b7cda7498940d87d4f
transformations: Relax the rules for transformation finalizing.

The trns_chain data structure has a barely useful concept called
"finalization".  In practice this is used to make sure that control
structures (e.g. DO IF) that are opened get closed (e.g. END IF).  There
are currently some restrictions on finalizing: namely, transformations
can't be added after a chain is finalized.  Since finalizers are barely
used, we can relax this restriction, which this commit does.  This will be
used in an upcoming commit where the ability to add a transformation to a
finalized change becomes useful for a corner case.
src/data/transformations.c