[CpmlPrimitive] Make cpml_primitive_from_segment() void