Test: Simplify

This commit is contained in:
Shahram Najm 2018-07-30 16:11:00 +01:00
parent b3b9baf006
commit 5b794f3c35
1 changed files with 4 additions and 4 deletions

View File

@ -49,14 +49,14 @@ static int encode_file(char *template_file, char *output_file)
}
}
{
/* JSON dump with all attributes */
FILE *devnull = fopen("/dev/null", "w");
grib_dumper* dumper = NULL;
const char* dumper_name = "bufr_simple";
unsigned long dump_flags = 512;
//codes_dump_content(source_handle,devnull, "json", 1024, NULL);
dumper=grib_dump_content_with_dumper(source_handle, dumper, devnull, dumper_name, dump_flags,0);
unsigned long dump_flags = CODES_DUMP_FLAG_ALL_DATA;
//codes_dump_content(source_handle,devnull, "json", 1024, NULL); /* JSON dump with all attributes */
dumper=grib_dump_content_with_dumper(source_handle, dumper, devnull, dumper_name, dump_flags, NULL);
assert(dumper);
fclose(devnull);
}
codes_handle_delete(source_handle);