Move non-constant folding parts of fold_constants into a separate functions.
authorGerard Goossen <gerard@ggoossen.net>
Sat, 20 Aug 2011 19:18:44 +0000 (21:18 +0200)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 5 Sep 2011 15:33:27 +0000 (08:33 -0700)
commit985b9e549fd484800c8e9aae896e5e9c5b04d148
tree9ea78797ebf5cabdc20fbff581d75a31bc9f469f
parent764bcc0be4f8423b1df4829c3d411bc21b316e99
Move non-constant folding parts of fold_constants into a separate functions.

The non-constant folding parts of fold_constants are moved into
separate functions. op_integerize handles converting ops to integer
(and special case of OP_NEGATE), op_std_init handling some standard
functionality (forced scalar context and allocating the TARGET).
Both functions are called where fold_constants is called (but we might
want to make that a bit some selective and use op_std_init in other
places).
embed.fnc
embed.h
op.c
proto.h