mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-19 01:15:21 +00:00
13 lines
404 B
C
13 lines
404 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "lib/mlrutil.h"
|
|
#include "mapping/mappers.h"
|
|
|
|
// ----------------------------------------------------------------
|
|
void mapper_chain_free(sllv_t* pmapper_chain, context_t* pctx) {
|
|
for (sllve_t* pe = pmapper_chain->phead; pe != NULL; pe = pe->pnext) {
|
|
mapper_t* pmapper = pe->pvvalue;
|
|
pmapper->pfree_func(pmapper, pctx);
|
|
}
|
|
sllv_free(pmapper_chain);
|
|
}
|