From cf471819b95e05b859c01d4c26eba2df62e3f7f5 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Thu, 15 Sep 2016 16:33:19 +0100 Subject: [PATCH] Rename grib_dumper_class_c_code to grib_dumper_class_grib_encode_C --- src/CMakeLists.txt | 2 +- src/Makefile.am | 2 +- src/grib_api_prototypes.h | 2 -- src/grib_dumper_class.h | 2 +- ..._dumper_class_c_code.c => grib_dumper_class_grib_encode_C.c} | 0 src/grib_dumper_factory.h | 2 +- tools/grib_dump.c | 2 +- windows/msvc/grib_api_lib/grib_api_lib.vcproj | 2 +- 8 files changed, 6 insertions(+), 8 deletions(-) rename src/{grib_dumper_class_c_code.c => grib_dumper_class_grib_encode_C.c} (100%) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cb1085ed6..c3bb834f1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -284,7 +284,7 @@ list( APPEND grib_api_srcs grib_dumper_class_bufr_decode_python.c grib_dumper_class_json.c grib_dumper_class_xml.c - grib_dumper_class_c_code.c + grib_dumper_class_grib_encode_C.c grib_dumper_class_wmo.c grib_dumper_class.c grib_context.c diff --git a/src/Makefile.am b/src/Makefile.am index 165ed823f..eb649b168 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -299,7 +299,7 @@ libeccodes_la_prototypes= \ grib_dumper_class_bufr_decode_python.c \ grib_dumper_class_json.c \ grib_dumper_class_xml.c \ - grib_dumper_class_c_code.c \ + grib_dumper_class_grib_encode_C.c \ grib_dumper_class_wmo.c \ grib_dumper_class.c \ grib_context.c \ diff --git a/src/grib_api_prototypes.h b/src/grib_api_prototypes.h index d7c68201d..615dfa197 100644 --- a/src/grib_api_prototypes.h +++ b/src/grib_api_prototypes.h @@ -906,8 +906,6 @@ void grib_dump_footer(grib_dumper *d, grib_handle *h); /* grib_dumper_class_xml.c */ -/* grib_dumper_class_c_code.c */ - /* grib_dumper_class_wmo.c */ /* grib_dumper_class.c */ diff --git a/src/grib_dumper_class.h b/src/grib_dumper_class.h index a8c3c222c..b4094feb9 100644 --- a/src/grib_dumper_class.h +++ b/src/grib_dumper_class.h @@ -7,7 +7,7 @@ extern grib_dumper_class* grib_dumper_class_bufr_encode_C; extern grib_dumper_class* grib_dumper_class_bufr_encode_filter; extern grib_dumper_class* grib_dumper_class_bufr_encode_fortran; extern grib_dumper_class* grib_dumper_class_bufr_encode_python; -extern grib_dumper_class* grib_dumper_class_c_code; +extern grib_dumper_class* grib_dumper_class_grib_encode_C; extern grib_dumper_class* grib_dumper_class_compare; extern grib_dumper_class* grib_dumper_class_debug; extern grib_dumper_class* grib_dumper_class_default; diff --git a/src/grib_dumper_class_c_code.c b/src/grib_dumper_class_grib_encode_C.c similarity index 100% rename from src/grib_dumper_class_c_code.c rename to src/grib_dumper_class_grib_encode_C.c diff --git a/src/grib_dumper_factory.h b/src/grib_dumper_factory.h index c8c8818c3..1e6b8cd21 100644 --- a/src/grib_dumper_factory.h +++ b/src/grib_dumper_factory.h @@ -7,7 +7,7 @@ { "bufr_encode_filter", &grib_dumper_class_bufr_encode_filter, }, { "bufr_encode_fortran", &grib_dumper_class_bufr_encode_fortran, }, { "bufr_encode_python", &grib_dumper_class_bufr_encode_python, }, -{ "c_code", &grib_dumper_class_c_code, }, +{ "grib_encode_C", &grib_dumper_class_grib_encode_C, }, { "debug", &grib_dumper_class_debug, }, { "default", &grib_dumper_class_default, }, { "json", &grib_dumper_class_json, }, diff --git a/tools/grib_dump.c b/tools/grib_dump.c index 6c44c7fac..7a61a4376 100644 --- a/tools/grib_dump.c +++ b/tools/grib_dump.c @@ -76,7 +76,7 @@ int grib_tool_init(grib_runtime_options* options) /* See ECC-234 if (grib_options_on("C")) { - options->dump_mode = "c_code"; + options->dump_mode = "grib_encode_C"; if (grib_options_on("d")) options->dump_flags = 0; else diff --git a/windows/msvc/grib_api_lib/grib_api_lib.vcproj b/windows/msvc/grib_api_lib/grib_api_lib.vcproj index e76088304..166d54487 100644 --- a/windows/msvc/grib_api_lib/grib_api_lib.vcproj +++ b/windows/msvc/grib_api_lib/grib_api_lib.vcproj @@ -1385,7 +1385,7 @@ >