diff options
Diffstat (limited to 'fpdfsdk/src')
-rw-r--r-- | fpdfsdk/src/fpdf_dataavail.cpp | 2 | ||||
-rw-r--r-- | fpdfsdk/src/fpdftext.cpp | 3 | ||||
-rw-r--r-- | fpdfsdk/src/fpdfview.cpp | 2 | ||||
-rw-r--r-- | fpdfsdk/src/fsdk_mgr.cpp | 7 | ||||
-rw-r--r-- | fpdfsdk/src/javascript/global.cpp | 17 |
5 files changed, 8 insertions, 23 deletions
diff --git a/fpdfsdk/src/fpdf_dataavail.cpp b/fpdfsdk/src/fpdf_dataavail.cpp index cc0833bc98..dddf9afb08 100644 --- a/fpdfsdk/src/fpdf_dataavail.cpp +++ b/fpdfsdk/src/fpdf_dataavail.cpp @@ -95,8 +95,6 @@ DLLEXPORT int STDCALL FPDFAvail_IsDocAvail(FPDF_AVAIL avail, return ((CFPDF_DataAvail*)avail)->m_pDataAvail->IsDocAvail(&hints_wrap); } -extern void CheckUnSupportError(CPDF_Document* pDoc, FX_DWORD err_code); - DLLEXPORT FPDF_DOCUMENT STDCALL FPDFAvail_GetDocument(FPDF_AVAIL avail, FPDF_BYTESTRING password) { if (avail == NULL) diff --git a/fpdfsdk/src/fpdftext.cpp b/fpdfsdk/src/fpdftext.cpp index 4030b7172b..43edd525e8 100644 --- a/fpdfsdk/src/fpdftext.cpp +++ b/fpdfsdk/src/fpdftext.cpp @@ -12,9 +12,6 @@ #include <tchar.h> #endif -// jabdelmalek: commented out to build on Linux. Not used. -// extern HANDLE g_hModule; - DLLEXPORT FPDF_TEXTPAGE STDCALL FPDFText_LoadPage(FPDF_PAGE page) { if (!page) return NULL; diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp index a1d5689c79..bed00d3172 100644 --- a/fpdfsdk/src/fpdfview.cpp +++ b/fpdfsdk/src/fpdfview.cpp @@ -182,8 +182,6 @@ DLLEXPORT FPDF_DOCUMENT STDCALL FPDF_LoadDocument(FPDF_STRING file_path, return pParser->GetDocument(); } -extern void CheckUnSupportError(CPDF_Document* pDoc, FX_DWORD err_code); - class CMemFile final : public IFX_FileRead { public: CMemFile(uint8_t* pBuf, FX_FILESIZE size) : m_pBuf(pBuf), m_size(size) {} diff --git a/fpdfsdk/src/fsdk_mgr.cpp b/fpdfsdk/src/fsdk_mgr.cpp index 67dea80d0d..fa270cc289 100644 --- a/fpdfsdk/src/fsdk_mgr.cpp +++ b/fpdfsdk/src/fsdk_mgr.cpp @@ -916,16 +916,9 @@ FX_BOOL CPDFSDK_PageView::OnKeyDown(int nKeyCode, int nFlag) { } FX_BOOL CPDFSDK_PageView::OnKeyUp(int nKeyCode, int nFlag) { - // if(CPDFSDK_Annot* pAnnot = GetFocusAnnot()) - // { - // CFFL_IFormFiller* pIFormFiller = g_pFormFillApp->GetIFormFiller(); - // return pIFormFiller->OnKeyUp(pAnnot, nKeyCode, nFlag); - // } return FALSE; } -extern void CheckUnSupportAnnot(CPDF_Document* pDoc, CPDF_Annot* pPDFAnnot); - void CPDFSDK_PageView::LoadFXAnnots() { CPDFDoc_Environment* pEnv = m_pSDKDoc->GetEnv(); diff --git a/fpdfsdk/src/javascript/global.cpp b/fpdfsdk/src/javascript/global.cpp index cbb04241ae..94148762e2 100644 --- a/fpdfsdk/src/javascript/global.cpp +++ b/fpdfsdk/src/javascript/global.cpp @@ -38,19 +38,18 @@ struct CHash<ACC, N, Ns...> { static const unsigned value = CHash<CHash<ACC, N>::value, Ns...>::value; }; -extern const unsigned int JSCONST_nStringHash = +const unsigned int JSCONST_nStringHash = CHash<'s', 't', 'r', 'i', 'n', 'g'>::value; -extern const unsigned int JSCONST_nNumberHash = +const unsigned int JSCONST_nNumberHash = CHash<'n', 'u', 'm', 'b', 'e', 'r'>::value; -extern const unsigned int JSCONST_nBoolHash = +const unsigned int JSCONST_nBoolHash = CHash<'b', 'o', 'o', 'l', 'e', 'a', 'n'>::value; -extern const unsigned int JSCONST_nDateHash = CHash<'d', 'a', 't', 'e'>::value; -extern const unsigned int JSCONST_nObjectHash = +const unsigned int JSCONST_nDateHash = CHash<'d', 'a', 't', 'e'>::value; +const unsigned int JSCONST_nObjectHash = CHash<'o', 'b', 'j', 'e', 'c', 't'>::value; -extern const unsigned int JSCONST_nFXobjHash = - CHash<'f', 'x', 'o', 'b', 'j'>::value; -extern const unsigned int JSCONST_nNullHash = CHash<'n', 'u', 'l', 'l'>::value; -extern const unsigned int JSCONST_nUndefHash = +const unsigned int JSCONST_nFXobjHash = CHash<'f', 'x', 'o', 'b', 'j'>::value; +const unsigned int JSCONST_nNullHash = CHash<'n', 'u', 'l', 'l'>::value; +const unsigned int JSCONST_nUndefHash = CHash<'u', 'n', 'd', 'e', 'f', 'i', 'n', 'e', 'd'>::value; #ifdef _DEBUG |