@@ -983,12 +983,12 @@ static int testReEncode(void) {
983983
984984 printf ("%d records\n" , nrRecords );
985985 for (ccode = _TERRITORY_MIN + 1 ; ccode < _TERRITORY_MAX ; ccode ++ ) {
986- int min_boundary = data_start [INDEX_OF_TERRITORY (ccode )];
987- int max_boundary = data_start [INDEX_OF_TERRITORY (ccode ) + 1 ];
986+ int min_boundary = DATA_START [INDEX_OF_TERRITORY (ccode )];
987+ int max_boundary = DATA_START [INDEX_OF_TERRITORY (ccode ) + 1 ];
988988 showTestProgress (max_boundary , nrRecords , nrTests );
989989 // use internal knowledge of mapcoder to test all the territory boundaries
990990 for (m = min_boundary ; m < max_boundary ; m ++ ) {
991- const TerritoryBoundary * b = territoryBoundary (m );
991+ const TerritoryBoundary * b = TERRITORY_BOUNDARY (m );
992992
993993 // Create context for thread.
994994 contexts [nrThread ].nrTests = 0 ;
@@ -2026,7 +2026,7 @@ static int testAlphabetPerTerritory(void) {
20262026 if (alphabetsForTerritory -> alphabet [j ] < 0 ||
20272027 alphabetsForTerritory -> alphabet [j ] >= _ALPHABET_MAX ) {
20282028 foundError ();
2029- printf ("*** ERROR *** Bad alphabetsForTerritory [%d].alphabet[%d]: %d\n" , i , j ,
2029+ printf ("*** ERROR *** Bad ALPHABETS_FOR_TERRITORY [%d].alphabet[%d]: %d\n" , i , j ,
20302030 alphabetsForTerritory -> alphabet [j ]);
20312031 }
20322032 }
@@ -2037,8 +2037,13 @@ static int testAlphabetPerTerritory(void) {
20372037
20382038int main (const int argc , const char * * argv ) {
20392039 int nrTests = 0 ;
2040+
2041+ // Ref unused var.
2042+ if (ISO3166_ALPHA [0 ] == 0 ) {
2043+ }
2044+
20402045 printf ("Mapcode C Library Unit Tests\n" );
2041- printf ("Library version %s (data version %s)\n" , MAPCODE_C_VERSION , mapcode_dataversion );
2046+ printf ("Library version %s (data version %s)\n" , MAPCODE_C_VERSION , MAPCODE_DATA_VERSION );
20422047#ifdef NO_POSIX_THREADS
20432048 printf ("Compiler options: NO_POSIX_THREADS\n" );
20442049#else
0 commit comments