Skip to content

Commit 498bbb7

Browse files
committed
function wmo_read_any_from_file_offset renamed to wmo_read_any_from_file_with_offset + absolute offset
1 parent 0e64d02 commit 498bbb7

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/eccodes/eccodes_prototypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ off_t stdio_tell(void* data);
410410
int stdio_seek(void* data, off_t len);
411411
int stdio_seek_from_start(void* data, off_t len);
412412
size_t stdio_read(void* data, void* buf, size_t len, int* err);
413-
int wmo_read_any_from_file_offset(FILE* f, void* buffer, size_t* len, off_t* offset);
413+
int wmo_read_any_from_file_with_offset(FILE* f, void* buffer, size_t* len, off_t* offset);
414414
int wmo_read_any_from_file(FILE* f, void* buffer, size_t* len);
415415
int wmo_read_grib_from_file(FILE* f, void* buffer, size_t* len);
416416
int wmo_read_bufr_from_file(FILE* f, void* buffer, size_t* len);

src/eccodes/grib_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ void grib_get_reduced_row(long pl, double lon_first, double lon_last, long* npoi
13461346
void grib_get_reduced_row_p(long pl, double lon_first, double lon_last, long* npoints, double* olon_first, double* olon_last);
13471347

13481348
/* read products */
1349-
int wmo_read_any_from_file_offset(FILE* f, void* buffer, size_t* len, off_t* offset);
1349+
int wmo_read_any_from_file_with_offset(FILE* f, void* buffer, size_t* len, off_t* offset);
13501350
int wmo_read_any_from_file(FILE* f, void* buffer, size_t* len);
13511351
int wmo_read_grib_from_file(FILE* f, void* buffer, size_t* len);
13521352
int wmo_read_bufr_from_file(FILE* f, void* buffer, size_t* len);

src/eccodes/grib_io.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ static int ecc_wmo_read_any_from_file(FILE* f, void* buffer, size_t* len, off_t*
12021202
return err;
12031203
}
12041204

1205-
int wmo_read_any_from_file_offset(FILE* f, void* buffer, size_t* len, off_t* offset)
1205+
int wmo_read_any_from_file_with_offset(FILE* f, void* buffer, size_t* len, off_t* offset)
12061206
{
12071207
return ecc_wmo_read_any_from_file(f, buffer, len, offset, /*no_alloc=*/0, 1, 1, 1, 1);
12081208
}

tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ list(APPEND test_c_bins
1313
wmo_read_bufr_from_file
1414
wmo_read_gts_from_file
1515
wmo_read_any_from_file
16-
wmo_read_any_from_file_offset
16+
wmo_read_any_from_file_with_offset
1717
wmo_read_any_from_stream
1818
grib_bpv_limit
1919
grib_double_cmp
@@ -220,7 +220,7 @@ if( HAVE_BUILD_TOOLS )
220220
wmo_read_bufr_from_file
221221
wmo_read_gts_from_file
222222
wmo_read_any_from_file
223-
wmo_read_any_from_file_offset
223+
wmo_read_any_from_file_with_offset
224224
wmo_read_any_from_stream
225225
bufr_templates
226226
bufr_rdbSubTypes

tests/wmo_read_any_from_file_offset.cc renamed to tests/wmo_read_any_from_file_with_offset.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ int test_next(FILE* in, size_t* len, off_t offset_expected, off_t* offset) // ,
1919
{
2020
*len = SIZE;
2121

22-
int err = wmo_read_any_from_file_offset(in, buffer, len, offset);
22+
int err = wmo_read_any_from_file_with_offset(in, buffer, len, offset);
2323
if (err == GRIB_END_OF_FILE && *len == 0)
2424
printf("end of file\n");
2525

tests/wmo_read_any_from_file_offset.sh renamed to tests/wmo_read_any_from_file_with_offset.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010

1111
. ./include.ctest.sh
1212

13-
label="wmo_read_any_from_file_offset_test"
13+
label="wmo_read_any_from_file_with_offset_test"
1414
tempText=temp.$label.txt
1515

1616
if [ $ECCODES_ON_WINDOWS -eq 1 ]; then
1717
echo "$0: This test is currently disabled on Windows"
1818
exit 0
1919
fi
2020

21-
${test_dir}/wmo_read_any_from_file_offset $data_dir/pad.grib
21+
${test_dir}/wmo_read_any_from_file_with_offset $data_dir/pad.grib
2222

2323
# Clean up
2424
rm -f $tempText

0 commit comments

Comments
 (0)