Update set.c

replace two long set_cnew calls to macro