"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "c/mapping/mapper_nothing.c" between
mlr-5.9.0.tar.gz and mlr-5.9.1.tar.gz

About: Miller is like sed, awk, cut, join, and sort for name-indexed data such as CSV and tabular JSON.

mapper_nothing.c  (mlr-5.9.0):mapper_nothing.c  (mlr-5.9.1)
skipping to change at line 35 skipping to change at line 35
if ((argc - *pargi) < 1) { if ((argc - *pargi) < 1) {
mapper_nothing_usage(stderr, argv[0], argv[*pargi]); mapper_nothing_usage(stderr, argv[0], argv[*pargi]);
return NULL; return NULL;
} }
*pargi += 1; *pargi += 1;
mapper_t* pmapper = mapper_nothing_alloc(); mapper_t* pmapper = mapper_nothing_alloc();
return pmapper; return pmapper;
} }
static void mapper_nothing_usage(FILE* o, char* argv0, char* verb) { static void mapper_nothing_usage(FILE* o, char* argv0, char* verb) {
fprintf(o, "Usage: %s %s [options]\n", argv0, verb); fprintf(o, "Usage: %s %s\n", argv0, verb);
fprintf(o, "Drops all input records. Useful for testing, or after tee/pri nt/etc. have\n"); fprintf(o, "Drops all input records. Useful for testing, or after tee/pri nt/etc. have\n");
fprintf(o, "produced other output.\n"); fprintf(o, "produced other output.\n");
} }
// ---------------------------------------------------------------- // ----------------------------------------------------------------
static mapper_t* mapper_nothing_alloc(ap_state_t* pargp, int do_counters, char* counter_field_name) { static mapper_t* mapper_nothing_alloc(ap_state_t* pargp, int do_counters, char* counter_field_name) {
mapper_t* pmapper = mlr_malloc_or_die(sizeof(mapper_t)); mapper_t* pmapper = mlr_malloc_or_die(sizeof(mapper_t));
pmapper->pvstate = NULL; pmapper->pvstate = NULL;
pmapper->pprocess_func = mapper_nothing_process; pmapper->pprocess_func = mapper_nothing_process;
pmapper->pfree_func = mapper_nothing_free; pmapper->pfree_func = mapper_nothing_free;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)