PDFKit.m
1 /* 2 This file is part of Darling. 3 4 Copyright (C) 2019 Lubos Dolezel 5 6 Darling is free software: you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation, either version 3 of the License, or 9 (at your option) any later version. 10 11 Darling is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 21 #include <PDFKit/PDFKit.h> 22 #include <stdlib.h> 23 #include <stdio.h> 24 25 static int verbose = 0; 26 27 __attribute__((constructor)) 28 static void initme(void) { 29 verbose = getenv("STUB_VERBOSE") != NULL; 30 } 31 32 void* PDFPointEqualToPoint(void) 33 { 34 if (verbose) puts("STUB: PDFPointEqualToPoint called"); 35 return NULL; 36 } 37 38 void* PDFPointFromCGPoint(void) 39 { 40 if (verbose) puts("STUB: PDFPointFromCGPoint called"); 41 return NULL; 42 } 43 44 void* PDFPointMake(void) 45 { 46 if (verbose) puts("STUB: PDFPointMake called"); 47 return NULL; 48 } 49 50 void* PDFPointToCGPoint(void) 51 { 52 if (verbose) puts("STUB: PDFPointToCGPoint called"); 53 return NULL; 54 } 55 56 void* PDFRectContainsPoint(void) 57 { 58 if (verbose) puts("STUB: PDFRectContainsPoint called"); 59 return NULL; 60 } 61 62 void* PDFRectContainsRect(void) 63 { 64 if (verbose) puts("STUB: PDFRectContainsRect called"); 65 return NULL; 66 } 67 68 void* PDFRectEqualToRect(void) 69 { 70 if (verbose) puts("STUB: PDFRectEqualToRect called"); 71 return NULL; 72 } 73 74 void* PDFRectFromCGRect(void) 75 { 76 if (verbose) puts("STUB: PDFRectFromCGRect called"); 77 return NULL; 78 } 79 80 void* PDFRectGetMaxX(void) 81 { 82 if (verbose) puts("STUB: PDFRectGetMaxX called"); 83 return NULL; 84 } 85 86 void* PDFRectGetMaxY(void) 87 { 88 if (verbose) puts("STUB: PDFRectGetMaxY called"); 89 return NULL; 90 } 91 92 void* PDFRectGetMidX(void) 93 { 94 if (verbose) puts("STUB: PDFRectGetMidX called"); 95 return NULL; 96 } 97 98 void* PDFRectGetMidY(void) 99 { 100 if (verbose) puts("STUB: PDFRectGetMidY called"); 101 return NULL; 102 } 103 104 void* PDFRectGetMinX(void) 105 { 106 if (verbose) puts("STUB: PDFRectGetMinX called"); 107 return NULL; 108 } 109 110 void* PDFRectGetMinY(void) 111 { 112 if (verbose) puts("STUB: PDFRectGetMinY called"); 113 return NULL; 114 } 115 116 void* PDFRectInset(void) 117 { 118 if (verbose) puts("STUB: PDFRectInset called"); 119 return NULL; 120 } 121 122 void* PDFRectIntegral(void) 123 { 124 if (verbose) puts("STUB: PDFRectIntegral called"); 125 return NULL; 126 } 127 128 void* PDFRectIntersection(void) 129 { 130 if (verbose) puts("STUB: PDFRectIntersection called"); 131 return NULL; 132 } 133 134 void* PDFRectIntersectsRect(void) 135 { 136 if (verbose) puts("STUB: PDFRectIntersectsRect called"); 137 return NULL; 138 } 139 140 void* PDFRectIsEmpty(void) 141 { 142 if (verbose) puts("STUB: PDFRectIsEmpty called"); 143 return NULL; 144 } 145 146 void* PDFRectMake(void) 147 { 148 if (verbose) puts("STUB: PDFRectMake called"); 149 return NULL; 150 } 151 152 void* PDFRectOffset(void) 153 { 154 if (verbose) puts("STUB: PDFRectOffset called"); 155 return NULL; 156 } 157 158 void* PDFRectToCGRect(void) 159 { 160 if (verbose) puts("STUB: PDFRectToCGRect called"); 161 return NULL; 162 } 163 164 void* PDFRectUnion(void) 165 { 166 if (verbose) puts("STUB: PDFRectUnion called"); 167 return NULL; 168 } 169 170 void* PDFSizeFromCGSize(void) 171 { 172 if (verbose) puts("STUB: PDFSizeFromCGSize called"); 173 return NULL; 174 } 175 176 void* PDFSizeMake(void) 177 { 178 if (verbose) puts("STUB: PDFSizeMake called"); 179 return NULL; 180 } 181 182 void* PDFSizeToCGSize(void) 183 { 184 if (verbose) puts("STUB: PDFSizeToCGSize called"); 185 return NULL; 186 }