From 759247991b5f1df71335294e6bfe3e3fe7aec7b4 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 14 Jul 2015 17:06:23 -0700 Subject: 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 . --- core/src/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 core/src/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h (limited to 'core/src/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h') diff --git a/core/src/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h b/core/src/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h new file mode 100644 index 0000000000..c74ed71b06 --- /dev/null +++ b/core/src/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h @@ -0,0 +1,27 @@ +// Copyright 2015 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef CORE_SRC_FPDFAPI_FPDF_CMAPS_GB1_CMAPS_GB1_H_ +#define CORE_SRC_FPDFAPI_FPDF_CMAPS_GB1_CMAPS_GB1_H_ + +#include "../../../../include/fxcrt/fx_system.h" // For FX_WORD. + +extern const FX_WORD g_FXCMAP_GB_EUC_H_0[]; +extern const FX_WORD g_FXCMAP_GB_EUC_V_0[]; +extern const FX_WORD g_FXCMAP_GBpc_EUC_H_0[]; +extern const FX_WORD g_FXCMAP_GBpc_EUC_V_0[]; +extern const FX_WORD g_FXCMAP_GBK_EUC_H_2[]; +extern const FX_WORD g_FXCMAP_GBK_EUC_V_2[]; +extern const FX_WORD g_FXCMAP_GBKp_EUC_H_2[]; +extern const FX_WORD g_FXCMAP_GBKp_EUC_V_2[]; +extern const FX_WORD g_FXCMAP_GBK2K_H_5[]; +extern const FX_WORD g_FXCMAP_GBK2K_H_5_DWord[]; +extern const FX_WORD g_FXCMAP_GBK2K_V_5[]; +extern const FX_WORD g_FXCMAP_UniGB_UCS2_H_4[]; +extern const FX_WORD g_FXCMAP_UniGB_UCS2_V_4[]; +extern const FX_WORD g_FXCMAP_GB1CID2Unicode_5[]; + +#endif // CORE_SRC_FPDFAPI_FPDF_CMAPS_GB1_CMAPS_GB1_H_ -- cgit v1.2.3