diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-07-14 17:06:23 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-07-14 17:06:23 -0700 |
commit | 759247991b5f1df71335294e6bfe3e3fe7aec7b4 (patch) | |
tree | 3de1b72b34c3eae83f4b9fa58e978a643ff0bf6a /core/src/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp | |
parent | dacc22cdfea727a04bce086d9bfec9a4d1a29bd4 (diff) | |
download | pdfium-759247991b5f1df71335294e6bfe3e3fe7aec7b4.tar.xz |
Move extern cmap declarations from .cpp files into new .h files.
That way, the compiler can check them against the definitions rather
than just relying on the linker to line things up.
Make the types of the declarations and definitions match exactly,
instead of being synonym typedefs of each other.
Fix some IWYU and use FX_ArraySize where possible.
BUG=https://code.google.com/p/pdfium/issues/detail?id=178
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1221503005 .
Diffstat (limited to 'core/src/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp')
-rw-r--r-- | core/src/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp b/core/src/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp index 79df22e40b..4d6843725b 100644 --- a/core/src/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp +++ b/core/src/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp @@ -4,7 +4,9 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com -extern const unsigned short g_FXCMAP_B5pc_V_0[12 * 3] = { +#include "cmaps_cns1.h" + +const FX_WORD g_FXCMAP_B5pc_V_0[12 * 3] = { 0xA14B, 0xA14B, 0x354E, 0xA15A, 0xA15A, 0x35AF, 0xA15C, 0xA15C, 0x35B1, 0xA15D, 0xA15E, 0x0082, 0xA161, 0xA162, 0x0086, 0xA165, 0xA166, 0x008A, 0xA169, 0xA16A, 0x008E, 0xA16D, 0xA16E, 0x0092, 0xA171, 0xA172, 0x0096, |