diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-08-19 13:25:44 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-08-19 13:25:44 -0700 |
commit | c3f4894a6862c74b9ab32b4ec38c531de6ecd83c (patch) | |
tree | f5ad333e8d418d5a978a595f51e94b3ad8f365da /core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp | |
parent | 71c15a5e6652952a94ba3a3ef7ac0392e3a06962 (diff) | |
download | pdfium-c3f4894a6862c74b9ab32b4ec38c531de6ecd83c.tar.xz |
Extern in .cpp file is a code smell, part 2.
Fixes the remaining issues, except for JBIG2/Skia ...
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1298393003 .
Diffstat (limited to 'core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp')
-rw-r--r-- | core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp b/core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp index a0b65af9c5..308dac9782 100644 --- a/core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp +++ b/core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp @@ -5,12 +5,10 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "../../../include/fpdfapi/fpdf_page.h" +#include "../../../include/fpdfapi/fpdf_parser.h" #include "../../../include/fpdfapi/fpdf_resource.h" #include "../../../include/fxge/fx_freetype.h" -// TODO(tsepez): These belong in headers, too. -extern const FX_WORD PDFDocEncoding[256]; - static const struct _UnicodeAlt { FX_WORD m_Unicode; const FX_CHAR* m_Alter; @@ -1774,14 +1772,6 @@ const FX_WORD* PDF_UnicodesForPredefinedCharSet(int encoding) { FX_DWORD PDF_PredefinedCharCodeFromUnicode(int encoding, FX_WCHAR unicode) { return PDF_FindCode(PDF_UnicodesForPredefinedCharSet(encoding), unicode); } -#ifdef __cplusplus -extern "C" { -#endif -extern int FXFT_unicode_from_adobe_name(const char* name); -extern void FXFT_adobe_name_from_unicode(char* glyph_name, FX_WCHAR unicode); -#ifdef __cplusplus -} -#endif FX_WCHAR PDF_UnicodeFromAdobeName(const FX_CHAR* name) { return (FX_WCHAR)(FXFT_unicode_from_adobe_name(name) & 0x7FFFFFFF); } |