Fix implicit-function-declaration

This commit is contained in:
Thomas A 2023-06-19 11:30:55 -07:00
parent b30c2be791
commit 6b006c021b
5 changed files with 22 additions and 0 deletions

View File

@ -1 +1,11 @@
#ifndef COREGRAPHICS_CGPDFDICTIONARY_H
#define COREGRAPHICS_CGPDFDICTIONARY_H
#include <CoreGraphics/CGPDFObject.h>
typedef struct CGPDFDictionary *CGPDFDictionaryRef; typedef struct CGPDFDictionary *CGPDFDictionaryRef;
typedef void (*CGPDFDictionaryApplierFunction)(const char *key, CGPDFObjectRef value, void *info);
void CGPDFDictionaryApplyFunction(CGPDFDictionaryRef dict, CGPDFDictionaryApplierFunction function, void *info);
#endif // COREGRAPHICS_CGPDFDICTIONARY_H

View File

@ -55,6 +55,7 @@ typedef struct CGScreenUpdateMoveDelta {
} CGScreenUpdateMoveDelta; } CGScreenUpdateMoveDelta;
typedef void (*CGScreenUpdateMoveCallback)(CGScreenUpdateMoveDelta delta, size_t count, const CGRect *rects, void *userInfo); typedef void (*CGScreenUpdateMoveCallback)(CGScreenUpdateMoveDelta delta, size_t count, const CGRect *rects, void *userInfo);
typedef void (*CGScreenRefreshCallback)(uint32_t count, const CGRect *rects, void *userInfo);
#define kCGEventFilterMaskPermitAllEvents (kCGEventFilterMaskPermitLocalMouseEvents | kCGEventFilterMaskPermitLocalKeyboardEvents | kCGEventFilterMaskPermitSystemDefinedEvents) #define kCGEventFilterMaskPermitAllEvents (kCGEventFilterMaskPermitLocalMouseEvents | kCGEventFilterMaskPermitLocalKeyboardEvents | kCGEventFilterMaskPermitSystemDefinedEvents)
@ -62,4 +63,10 @@ typedef void (*CGScreenUpdateMoveCallback)(CGScreenUpdateMoveDelta delta, size_t
extern CGError CGScreenRegisterMoveCallback(CGScreenUpdateMoveCallback callback, void *userInfo); extern CGError CGScreenRegisterMoveCallback(CGScreenUpdateMoveCallback callback, void *userInfo);
extern void CGScreenUnregisterMoveCallback(CGScreenUpdateMoveCallback callback, void *userInfo); extern void CGScreenUnregisterMoveCallback(CGScreenUpdateMoveCallback callback, void *userInfo);
CGError CGRegisterScreenRefreshCallback(CGScreenRefreshCallback callback, void *userInfo);
void CGUnregisterScreenRefreshCallback(CGScreenRefreshCallback callback, void *userInfo);
CGError CGWaitForScreenRefreshRects(CGRect * _Nullable *rects, uint32_t *count);
void CGReleaseScreenRefreshRects(CGRect *rects);
CGError CGWaitForScreenUpdateRects(CGScreenUpdateOperation requestedOperations, CGScreenUpdateOperation *currentOperation, CGRect * _Nullable *rects, size_t *rectCount, CGScreenUpdateMoveDelta *delta);
#endif #endif

View File

@ -32,6 +32,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
#import <CoreGraphics/CGShading.h> #import <CoreGraphics/CGShading.h>
#import <CoreGraphics/CGWindowLevel.h> #import <CoreGraphics/CGWindowLevel.h>
#import <CoreGraphics/CGWindow.h> #import <CoreGraphics/CGWindow.h>
#import <CoreGraphics/CGRemoteOperation.h>
#include <CoreGraphics/CGEvent.h> #include <CoreGraphics/CGEvent.h>
#include <CoreGraphics/CGPDFContext.h> #include <CoreGraphics/CGPDFContext.h>

View File

@ -1,5 +1,7 @@
#import <CoreText/CTFontDescriptor.h> #import <CoreText/CTFontDescriptor.h>
#include <stdio.h>
CFTypeRef CTFontDescriptorCopyAttribute(CTFontDescriptorRef descriptor, CFStringRef attribute) CFTypeRef CTFontDescriptorCopyAttribute(CTFontDescriptorRef descriptor, CFStringRef attribute)
{ {
printf("STUB %s\n", __PRETTY_FUNCTION__); printf("STUB %s\n", __PRETTY_FUNCTION__);

View File

@ -1,5 +1,7 @@
#import <CoreText/CTParagraphStyle.h> #import <CoreText/CTParagraphStyle.h>
#include <stdio.h>
CTParagraphStyleRef CTParagraphStyleCreate(const CTParagraphStyleSetting *settings, size_t settingCount) { CTParagraphStyleRef CTParagraphStyleCreate(const CTParagraphStyleSetting *settings, size_t settingCount) {
printf("STUB %s\n", __PRETTY_FUNCTION__); printf("STUB %s\n", __PRETTY_FUNCTION__);
return nil; return nil;