From a242bcdd3af3e16f03ad274a91e45c0ed4c87fea Mon Sep 17 00:00:00 2001 From: Sacha Date: Wed, 21 Aug 2013 12:11:06 +1000 Subject: [PATCH] Remove 'HIGH_MEM' define. --- tools/atlastool.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tools/atlastool.cpp b/tools/atlastool.cpp index be52872d7e..cab032bd33 100644 --- a/tools/atlastool.cpp +++ b/tools/atlastool.cpp @@ -41,8 +41,6 @@ #include "util/text/utf8.h" -#define HIGH_MEM 1 - #define CHECK(x) if (!(x)) { printf("%i: CHECK failed on this line\n", __LINE__); exit(1); } using namespace std; @@ -686,7 +684,6 @@ void LearnFile(const char *filename, const char *desc, std::set &chars, uin void GetLocales(const char *locales, std::vector &ranges) { -#if HIGH_MEM std::set kanji; std::set hangul1, hangul2, hangul3; for (int i = 0; i < sizeof(kanjiFilter)/sizeof(kanjiFilter[0]); i+=2) @@ -702,7 +699,6 @@ void GetLocales(const char *locales, std::vector &ranges) LearnFile("korean.txt", "Korean", hangul1, 0x1100, 0x11FF); LearnFile("korean.txt", "Korean", hangul2, 0x3130, 0x318F); LearnFile("korean.txt", "Korean", hangul3, 0xAC00, 0xD7A3); -#endif // The end point of a range is now inclusive! @@ -719,7 +715,6 @@ void GetLocales(const char *locales, std::vector &ranges) case 'E': // Latin-1 Extended A (needed for Hungarian etc) ranges.push_back(range(0x100, 0x17F)); break; -#if HIGH_MEM case 'e': // Latin-1 Extended B (for some African and latinized asian languages?) ranges.push_back(range(0x180, 0x250)); break; @@ -732,7 +727,6 @@ void GetLocales(const char *locales, std::vector &ranges) ranges.push_back(range(0x3041, 0x3097)); ranges.push_back(range(0x3099, 0x309F)); break; -#endif case 's': // ShiftJIS symbols ranges.push_back(range(0x2010, 0x2312)); // General Punctuation, Letterlike Symbols, Arrows, // Mathematical Operators, Miscellaneous Technical @@ -742,7 +736,6 @@ void GetLocales(const char *locales, std::vector &ranges) ranges.push_back(range(0x2116, 0x2116)); // "No." symbol ranges.push_back(range(0x33CD, 0x33CD)); // "K.K." symbol break; -#if HIGH_MEM case 'H': // Hebrew ranges.push_back(range(0x0590, 0x05FF)); break; @@ -763,7 +756,6 @@ void GetLocales(const char *locales, std::vector &ranges) case 'K': // Korean (hangul) ranges.push_back(range(0xAC00, 0xD7A3, hangul3)); break; -#endif } }