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 "fpdfview_c_api_test.h" | 10 #include "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_sysfontinfo.h" | 23 #include "public/fpdf_sysfontinfo.h" |
24 #include "../../public/fpdf_text.h" | 24 #include "public/fpdf_text.h" |
25 #include "../../public/fpdf_transformpage.h" | 25 #include "public/fpdf_transformpage.h" |
26 #include "../../public/fpdfview.h" | 26 #include "public/fpdfview.h" |
27 | 27 |
28 // Scheme for avoiding LTO out of existence, warnings, etc. | 28 // Scheme for avoiding LTO out of existence, warnings, etc. |
29 typedef void (*fnptr)(void); // Legal generic function type for casts. | 29 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. | 30 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 | 31 #define CHK(x) if ((fnptr)(x) == g_c_api_test_fnptr) return 0 |
32 | 32 |
33 // Function to call from gtest harness to ensure linker resolution. | 33 // Function to call from gtest harness to ensure linker resolution. |
34 int CheckPDFiumCApi() { | 34 int CheckPDFiumCApi() { |
35 // fpdf_dataavail.h | 35 // fpdf_dataavail.h |
36 CHK(FPDFAvail_Create); | 36 CHK(FPDFAvail_Create); |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 CHK(FPDF_GetNamedDestByName); | 228 CHK(FPDF_GetNamedDestByName); |
229 CHK(FPDF_GetNamedDest); | 229 CHK(FPDF_GetNamedDest); |
230 CHK(FPDF_BStr_Init); | 230 CHK(FPDF_BStr_Init); |
231 CHK(FPDF_BStr_Set); | 231 CHK(FPDF_BStr_Set); |
232 CHK(FPDF_BStr_Clear); | 232 CHK(FPDF_BStr_Clear); |
233 | 233 |
234 return 1; | 234 return 1; |
235 } | 235 } |
236 | 236 |
237 #undef CHK | 237 #undef CHK |
OLD | NEW |