1 #include <stdio.h> 2 #include <stdlib.h> 3 #include "lib/mlrutil.h" 4 #include "mapping/mappers.h" 5 6 // ---------------------------------------------------------------- mapper_chain_free(sllv_t * pmapper_chain,context_t * pctx)7void mapper_chain_free(sllv_t* pmapper_chain, context_t* pctx) { 8 for (sllve_t* pe = pmapper_chain->phead; pe != NULL; pe = pe->pnext) { 9 mapper_t* pmapper = pe->pvvalue; 10 pmapper->pfree_func(pmapper, pctx); 11 } 12 sllv_free(pmapper_chain); 13 } 14