Move extern cmap declarations from .cpp files into new .h files.
authorTom Sepez <tsepez@chromium.org>
Wed, 15 Jul 2015 00:06:23 +0000 (17:06 -0700)
committerTom Sepez <tsepez@chromium.org>
Wed, 15 Jul 2015 00:06:23 +0000 (17:06 -0700)
commit759247991b5f1df71335294e6bfe3e3fe7aec7b4
tree3de1b72b34c3eae83f4b9fa58e978a643ff0bf6a
parentdacc22cdfea727a04bce086d9bfec9a4d1a29bd4
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 .
68 files changed:
core/src/fpdfapi/fpdf_cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp
core/src/fpdfapi/fpdf_cmaps/CNS1/B5pc-H_0.cpp
core/src/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp
core/src/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-H_0.cpp
core/src/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-V_0.cpp
core/src/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-H_0.cpp
core/src/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-V_0.cpp
core/src/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-H_0.cpp
core/src/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-V_0.cpp
core/src/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-H_5.cpp
core/src/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-V_5.cpp
core/src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-H_3.cpp
core/src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-V_3.cpp
core/src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UTF16-H_0.cpp
core/src/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.cpp
core/src/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.h [new file with mode: 0644]
core/src/fpdfapi/fpdf_cmaps/GB1/Adobe-GB1-UCS2_5.cpp
core/src/fpdfapi/fpdf_cmaps/GB1/GB-EUC-H_0.cpp
core/src/fpdfapi/fpdf_cmaps/GB1/GB-EUC-V_0.cpp
core/src/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-H_2.cpp
core/src/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-V_2.cpp
core/src/fpdfapi/fpdf_cmaps/GB1/GBK2K-H_5.cpp
core/src/fpdfapi/fpdf_cmaps/GB1/GBK2K-V_5.cpp
core/src/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-H_2.cpp
core/src/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-V_2.cpp
core/src/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-H_0.cpp
core/src/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-V_0.cpp
core/src/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-H_4.cpp
core/src/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-V_4.cpp
core/src/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.cpp
core/src/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h [new file with mode: 0644]
core/src/fpdfapi/fpdf_cmaps/Japan1/83pv-RKSJ-H_1.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-H_2.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-V_2.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-H_2.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-V_2.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/90pv-RKSJ-H_1.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-H_1.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-V_1.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/EUC-H_1.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/EUC-V_1.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-H_2.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-V_2.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/H_1.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-H_4.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-V_4.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UTF16-H_5.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UTF16-V_5.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/V_1.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.cpp
core/src/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h [new file with mode: 0644]
core/src/fpdfapi/fpdf_cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp
core/src/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-H_0.cpp
core/src/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-V_0.cpp
core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-H_1.cpp
core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-V_1.cpp
core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-H_1.cpp
core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-V_1.cpp
core/src/fpdfapi/fpdf_cmaps/Korea1/KSCpc-EUC-H_0.cpp
core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-H_1.cpp
core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-V_1.cpp
core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UTF16-H_0.cpp
core/src/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp
core/src/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.h [new file with mode: 0644]
core/src/fpdfapi/fpdf_cmaps/cmap_int.h