Clean up macromesh.c