Skip to content

Commit 22e61af

Browse files
committed
Updated to 2025 copyrights and small clean up
1 parent 062dfad commit 22e61af

File tree

12 files changed

+30
-15
lines changed

12 files changed

+30
-15
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2014-2017 Stichting Mapcode Foundation (http://www.mapcode.com)
1+
# Copyright (C) 2014-2025 Stichting Mapcode Foundation (http://www.mapcode.com)
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Original C library created by Pieter Geelen. Work on Java version
22
of the Mapcode library by Rijn Buve (original port by Matthew Lowden).
33

4-
Copyright (C) 2014-2017 Stichting Mapcode Foundation (http://www.mapcode.com)
4+
Copyright (C) 2014-2025 Stichting Mapcode Foundation (http://www.mapcode.com)

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/d2e3d7a469484bfd8b801ce94d3f1737)](https://www.codacy.com/app/rijnb/mapcode-cpp?utm_source=github.com&utm_medium=referral&utm_content=mapcode-foundation/mapcode-cpp&utm_campaign=Badge_Grade)
44
[![License](http://img.shields.io/badge/license-APACHE2-blue.svg)]()
55

6-
**Copyright (C) 2014-2017 Stichting Mapcode Foundation (http://www.mapcode.com)**
6+
**Copyright (C) 2014-2025 Stichting Mapcode Foundation (http://www.mapcode.com)**
77

88

99
**Online documentation: http://mapcode-foundation.github.io/mapcode-cpp/**
@@ -64,8 +64,8 @@ decode Mapcodes.
6464

6565
This produces the following help text:
6666

67-
MAPCODE (version 2.5.5)
68-
Copyright (C) 2014-2017 Stichting Mapcode Foundation
67+
MAPCODE (version 2.5.6)
68+
Copyright (C) 2014-2025 Stichting Mapcode Foundation
6969

7070
Usage:
7171
mapcode [-d| --decode] <default-territory> <mapcode> [<mapcode> ...]
@@ -243,6 +243,10 @@ let fullName = String.init(cString: buffer)
243243

244244
## Release Notes
245245

246+
### 2.5.6
247+
248+
* Updated to latest compilers.
249+
246250
### 2.5.4 - 2.5.5
247251

248252
* Added `encodeLatLonToSelectedMapcode` as a convenience for languages that use the

mapcodelib/mapcoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ extern "C" {
5757
#define MAPCODE_SUPPORT_LANGUAGE_UK
5858
#endif
5959

60-
#define MAPCODE_C_VERSION "2.5.5"
60+
#define MAPCODE_C_VERSION "2.5.6"
6161
#define UWORD unsigned short int // 2-byte unsigned integer.
6262

6363
#define MAX_NR_OF_MAPCODE_RESULTS 22 // Max. number of results ever returned by encoder (e.g. for 26.904899, 95.138515).

test/no_warnings.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-Wall -Wextra -Wno-pointer-to-int-cast -Wno-deprecated-declarations -Wno-unused-but-set-variable

test/run_compare.sh

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
# limitations under the License.
1616
#
1717

18-
OPTS="-Wall -Wextra -Wno-pointer-to-int-cast"
19-
20-
NEW=../mapcode-2.5.5
18+
OPTS="$(cat ./no_warnings.env)"
19+
NEW=../mapcode-2.5.6
2120
OLD=../mapcode-2.5.2
2221
NEWFILE=_new.txt
2322
OLDFILE=_old.txt
@@ -26,10 +25,20 @@ OPTS1="--grid 1000000 8"
2625
OPTS2="--random 1000000 8 1234"
2726
OPTS3="--random 1000000 8 11223344"
2827

28+
comparison_error() {
29+
echo "If you want to run the comparison test script, please create symbolic links"
30+
echo "to two version of the mapcode utility:"
31+
echo " $OLD"
32+
echo " $NEW"
33+
echo "These must be placed in the root directory of this project."
34+
exit
35+
}
36+
2937
TEST=$(which $OLD)
3038
if [ "$TEST" = "" ]
3139
then
3240
echo "No $OLD found on this machine - skipping script..."
41+
comparison_error
3342
exit 1
3443
fi
3544

@@ -50,6 +59,7 @@ TEST=$(which $NEW)
5059
if [ "$TEST" = "" ]
5160
then
5261
echo "No $NEW found on this machine - skipping script..."
62+
comparison_error
5363
exit 1
5464
fi
5565

test/run_gcov.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# limitations under the License.
1616
#
1717

18-
OPTS="-Wall -Wextra -Wno-pointer-to-int-cast -fprofile-arcs -ftest-coverage"
18+
OPTS="$(cat ./no_warnings.env) -fprofile-arcs -ftest-coverage"
1919
LIB="../mapcodelib/mapcoder.o"
2020

2121
TEST=$(which gcov)

test/run_gprof.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# limitations under the License.
1616
#
1717

18-
OPTS="-Wall -Wextra -Wno-pointer-to-int-cast"
18+
OPTS="$(cat ./no_warnings.env)"
1919
LIB="../mapcodelib/mapcoder.o"
2020

2121
TEST=$(which gprof)

test/run_normal.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# limitations under the License.
1616
#
1717

18-
OPTS="-Wall -Wextra -Wno-pointer-to-int-cast"
18+
OPTS="$(cat ./no_warnings.env)"
1919

2020
echo "!! -------------------------------------------------------------"
2121
echo "Run normal..."

test/run_sanitizer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# limitations under the License.
1616
#
1717

18-
OPTS="-Wall -Wextra -Wno-pointer-to-int-cast"
18+
OPTS="$(cat ./no_warnings.env)"
1919
LIB="../mapcodelib/mapcoder.o"
2020

2121
export ASAN_OPTIONS=debug=true:strict_string_checks=1:detect_stack_use_after_return=true:detect_invalid_pointer_pairs=99999:detect_container_overflow=true:detect_odr_violation=2:check_initialization_order=true:strict_init_order=true

0 commit comments

Comments
 (0)