Structure and thermodynamics of colloid-polymer mixtures: A macromolecular approach