Reorganize code in ecp.c
2 files changed