code common to all spdcx C projects