diff --git a/src/eccodes_prototypes.h b/src/eccodes_prototypes.h index 80d383526..a75d82d1a 100644 --- a/src/eccodes_prototypes.h +++ b/src/eccodes_prototypes.h @@ -402,8 +402,8 @@ void codes_dump_bufr_flat(grib_accessors_list* al, grib_handle* h, FILE* f, cons size_t grib_context_read(const grib_context* c, void* ptr, size_t size, void* stream); off_t grib_context_tell(const grib_context* c, void* stream); int grib_context_seek(const grib_context* c, off_t offset, int whence, void* stream); -int grib_context_eof(const grib_context* c, void* stream); -size_t grib_context_write(const grib_context* c, const void* ptr, size_t size, void* stream); +// int grib_context_eof(const grib_context* c, void* stream); +// size_t grib_context_write(const grib_context* c, const void* ptr, size_t size, void* stream); void grib_context_set_print_proc(grib_context* c, grib_print_proc p); void grib_context_set_debug(grib_context* c, int mode); void grib_context_set_logging_proc(grib_context* c, grib_log_proc p); diff --git a/src/grib_context.cc b/src/grib_context.cc index 442faa1e8..98ffe39e2 100644 --- a/src/grib_context.cc +++ b/src/grib_context.cc @@ -185,19 +185,19 @@ int grib_context_seek(const grib_context* c, off_t offset, int whence, void* str return c->seek(c, offset, whence, stream); } -int grib_context_eof(const grib_context* c, void* stream) -{ - if (!c) - c = grib_context_get_default(); - return c->eof(c, stream); -} +// int grib_context_eof(const grib_context* c, void* stream) +// { +// if (!c) +// c = grib_context_get_default(); +// return c->eof(c, stream); +// } -size_t grib_context_write(const grib_context* c, const void* ptr, size_t size, void* stream) -{ - if (!c) - c = grib_context_get_default(); - return c->write(c, ptr, size, stream); -} +// size_t grib_context_write(const grib_context* c, const void* ptr, size_t size, void* stream) +// { +// if (!c) +// c = grib_context_get_default(); +// return c->write(c, ptr, size, stream); +// } static void default_log(const grib_context* c, int level, const char* mess) { @@ -237,7 +237,7 @@ static void default_print(const grib_context* c, void* descriptor, const char* m void grib_context_set_print_proc(grib_context* c, grib_print_proc p) { c = c ? c : grib_context_get_default(); - /* Set logging back to the default if p is NULL */ + /* Set printing back to the default if p is NULL */ c->print = (p ? p : &default_print); }