Make wmaker 0.11% smaller by avoiding code duplication
commit2f87d01a411d7aeccdb26ec7c80a124c1f20b112
authorCarlos R. Mafra <crmafra@gmail.com>
Fri, 28 Aug 2009 14:44:54 +0000 (28 16:44 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 28 Aug 2009 18:18:18 +0000 (28 20:18 +0200)
tree3a5097be8527e65423832e8b212b68b27d95a975
parent22730876e42f2e82f2f05d53a0c8c687628a2467
Make wmaker 0.11% smaller by avoiding code duplication

This patch cleans up an obvious code duplication case in the
different "placement" algorithms.

Avoid this needless repetition by using a helper function,
which in turn lets those functions a bit easier to read and
also makes wmaker 0.11% smaller :-)

[mafra@Pilar:wmaker.git]$ size src/.libs/wmaker.*
   text    data     bss     dec     hex filename
 619824   19160    8544  647528   9e168 src/.libs/wmaker.new
 620552   19160    8544  648256   9e440 src/.libs/wmaker.old
src/placement.c