| OLD | NEW | 
|---|
| 1 // Copyright 2015 PDFium Authors. All rights reserved. | 1 // Copyright 2015 PDFium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 // This "C" (not "C++") file ensures that the public headers compile | 5 // This "C" (not "C++") file ensures that the public headers compile | 
| 6 // and link for "C" (and not just "C++"). | 6 // and link for "C" (and not just "C++"). | 
| 7 | 7 | 
| 8 #include <stdio.h> | 8 #include <stdio.h> | 
| 9 | 9 | 
| 10 #include "fpdfsdk/fpdfview_c_api_test.h" | 10 #include "fpdfsdk/fpdfview_c_api_test.h" | 
| 11 | 11 | 
| 12 #include "public/fpdf_dataavail.h" | 12 #include "public/fpdf_dataavail.h" | 
| 13 #include "public/fpdf_doc.h" | 13 #include "public/fpdf_doc.h" | 
| 14 #include "public/fpdf_edit.h" | 14 #include "public/fpdf_edit.h" | 
| 15 #include "public/fpdf_ext.h" | 15 #include "public/fpdf_ext.h" | 
| 16 #include "public/fpdf_flatten.h" | 16 #include "public/fpdf_flatten.h" | 
| 17 #include "public/fpdf_formfill.h" | 17 #include "public/fpdf_formfill.h" | 
| 18 #include "public/fpdf_fwlevent.h" | 18 #include "public/fpdf_fwlevent.h" | 
| 19 #include "public/fpdf_ppo.h" | 19 #include "public/fpdf_ppo.h" | 
| 20 #include "public/fpdf_progressive.h" | 20 #include "public/fpdf_progressive.h" | 
| 21 #include "public/fpdf_save.h" | 21 #include "public/fpdf_save.h" | 
| 22 #include "public/fpdf_searchex.h" | 22 #include "public/fpdf_searchex.h" | 
|  | 23 #include "public/fpdf_structtree.h" | 
| 23 #include "public/fpdf_sysfontinfo.h" | 24 #include "public/fpdf_sysfontinfo.h" | 
| 24 #include "public/fpdf_text.h" | 25 #include "public/fpdf_text.h" | 
| 25 #include "public/fpdf_transformpage.h" | 26 #include "public/fpdf_transformpage.h" | 
| 26 #include "public/fpdfview.h" | 27 #include "public/fpdfview.h" | 
| 27 | 28 | 
| 28 // Scheme for avoiding LTO out of existence, warnings, etc. | 29 // Scheme for avoiding LTO out of existence, warnings, etc. | 
| 29 typedef void (*fnptr)(void);  // Legal generic function type for casts. | 30 typedef void (*fnptr)(void);  // Legal generic function type for casts. | 
| 30 fnptr g_c_api_test_fnptr = NULL;  // Extern, so can't know it doesn't change. | 31 fnptr g_c_api_test_fnptr = NULL;  // Extern, so can't know it doesn't change. | 
| 31 #define CHK(x) if ((fnptr)(x) == g_c_api_test_fnptr) return 0 | 32 #define CHK(x) if ((fnptr)(x) == g_c_api_test_fnptr) return 0 | 
| 32 | 33 | 
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 147     CHK(FPDF_RenderPage_Continue); | 148     CHK(FPDF_RenderPage_Continue); | 
| 148     CHK(FPDF_RenderPage_Close); | 149     CHK(FPDF_RenderPage_Close); | 
| 149 | 150 | 
| 150     // fpdf_save.h | 151     // fpdf_save.h | 
| 151     CHK(FPDF_SaveAsCopy); | 152     CHK(FPDF_SaveAsCopy); | 
| 152     CHK(FPDF_SaveWithVersion); | 153     CHK(FPDF_SaveWithVersion); | 
| 153 | 154 | 
| 154     // fpdf_searchex.h | 155     // fpdf_searchex.h | 
| 155     CHK(FPDFText_GetCharIndexFromTextIndex); | 156     CHK(FPDFText_GetCharIndexFromTextIndex); | 
| 156 | 157 | 
|  | 158     // fpdf_structtree.h | 
|  | 159     CHK(FPDF_StructTree_GetForPage); | 
|  | 160     CHK(FPDF_StructTree_Close); | 
|  | 161     CHK(FPDF_StructTree_CountChildren); | 
|  | 162     CHK(FPDF_StructTree_GetChildAtIndex); | 
|  | 163     CHK(FPDF_StructElement_GetAltText); | 
|  | 164     CHK(FPDF_StructElement_CountChildren); | 
|  | 165     CHK(FPDF_StructElement_GetChildAtIndex); | 
|  | 166 | 
| 157     // fpdf_sysfontinfo.h | 167     // fpdf_sysfontinfo.h | 
| 158     CHK(FPDF_GetDefaultTTFMap); | 168     CHK(FPDF_GetDefaultTTFMap); | 
| 159     CHK(FPDF_AddInstalledFont); | 169     CHK(FPDF_AddInstalledFont); | 
| 160     CHK(FPDF_SetSystemFontInfo); | 170     CHK(FPDF_SetSystemFontInfo); | 
| 161     CHK(FPDF_GetDefaultSystemFontInfo); | 171     CHK(FPDF_GetDefaultSystemFontInfo); | 
| 162     CHK(FPDF_FreeDefaultSystemFontInfo); | 172     CHK(FPDF_FreeDefaultSystemFontInfo); | 
| 163 | 173 | 
| 164     // fpdf_text.h | 174     // fpdf_text.h | 
| 165     CHK(FPDFText_LoadPage); | 175     CHK(FPDFText_LoadPage); | 
| 166     CHK(FPDFText_ClosePage); | 176     CHK(FPDFText_ClosePage); | 
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 238 #ifdef PDF_ENABLE_XFA | 248 #ifdef PDF_ENABLE_XFA | 
| 239     CHK(FPDF_BStr_Init); | 249     CHK(FPDF_BStr_Init); | 
| 240     CHK(FPDF_BStr_Set); | 250     CHK(FPDF_BStr_Set); | 
| 241     CHK(FPDF_BStr_Clear); | 251     CHK(FPDF_BStr_Clear); | 
| 242 #endif | 252 #endif | 
| 243 | 253 | 
| 244     return 1; | 254     return 1; | 
| 245 } | 255 } | 
| 246 | 256 | 
| 247 #undef CHK | 257 #undef CHK | 
| OLD | NEW | 
|---|