File tree Expand file tree Collapse file tree 12 files changed +30
-15
lines changed Expand file tree Collapse file tree 12 files changed +30
-15
lines changed Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 11Original C library created by Pieter Geelen. Work on Java version
22of 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)
Original file line number Diff line number Diff line change 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
6565This 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
Original file line number Diff line number Diff 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).
Original file line number Diff line number Diff line change 1+ -Wall -Wextra -Wno-pointer-to-int-cast -Wno-deprecated-declarations -Wno-unused-but-set-variable
Original file line number Diff line number Diff line change 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
2120OLD=../mapcode-2.5.2
2221NEWFILE=_new.txt
2322OLDFILE=_old.txt
@@ -26,10 +25,20 @@ OPTS1="--grid 1000000 8"
2625OPTS2=" --random 1000000 8 1234"
2726OPTS3=" --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+
2937TEST=$( which $OLD )
3038if [ " $TEST " = " " ]
3139then
3240 echo " No $OLD found on this machine - skipping script..."
41+ comparison_error
3342 exit 1
3443fi
3544
@@ -50,6 +59,7 @@ TEST=$(which $NEW)
5059if [ " $TEST " = " " ]
5160then
5261 echo " No $NEW found on this machine - skipping script..."
62+ comparison_error
5363 exit 1
5464fi
5565
Original file line number Diff line number Diff line change 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"
1919LIB=" ../mapcodelib/mapcoder.o"
2020
2121TEST=$( which gcov)
Original file line number Diff line number Diff line change 1515# limitations under the License.
1616#
1717
18- OPTS=" -Wall -Wextra -Wno-pointer-to-int-cast "
18+ OPTS=" $( cat ./no_warnings.env ) "
1919LIB=" ../mapcodelib/mapcoder.o"
2020
2121TEST=$( which gprof)
Original file line number Diff line number Diff line change 1515# limitations under the License.
1616#
1717
18- OPTS=" -Wall -Wextra -Wno-pointer-to-int-cast "
18+ OPTS=" $( cat ./no_warnings.env ) "
1919
2020echo " !! -------------------------------------------------------------"
2121echo " Run normal..."
Original file line number Diff line number Diff line change 1515# limitations under the License.
1616#
1717
18- OPTS=" -Wall -Wextra -Wno-pointer-to-int-cast "
18+ OPTS=" $( cat ./no_warnings.env ) "
1919LIB=" ../mapcodelib/mapcoder.o"
2020
2121export 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
You can’t perform that action at this time.
0 commit comments