Another set of 5 patches to cleanup this code. Still more to go but enough for t...
Andrea (Drea) Tamar Pinski @pinskia@hachyderm.io
Another set of 5 patches to cleanup this code. Still more to go but enough for tonight.
This time it is all of the C/C++ code rather than the match part of the patch.
I did add one feature doing this cleanup; but it is just a check to make sure we initialize a struct fully before adding it to a vector.
I noticed one thing while working on this code; in some places it uses match to check for the add/multiply or what ever but in other places it does it manually. I am going to change it over to use match all the way; should simplify the code slightly more. and maybe even make easier to understand.
Oh on another note I found a place where genmatch would generated unreachable code and found a way to fix that. It is only semi related to this cleanup in that this code uses match and the feature that causes this unreachable code. That improvement alone gives a 2.5% less generated code. Yes for genmatch change that is huge; ~10k lines even.