split idump.c into several files