Skip to content
This repository was archived by the owner on Oct 31, 2022. It is now read-only.

Commit 62f3a46

Browse files
committed
Remove pascal calling convention marker, Windows and Mac compilers were ignoring it anyway
1 parent 7891d16 commit 62f3a46

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

source/HapDecompressor.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void HapMTDecode(HapDecodeWorkFunction function, void *p, unsigned int count, vo
151151
// Component Open Request - Required
152152
#pragma GCC push
153153
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
154-
pascal ComponentResult Hap_DOpen(HapDecompressorGlobals glob, ComponentInstance self)
154+
ComponentResult Hap_DOpen(HapDecompressorGlobals glob, ComponentInstance self)
155155
{
156156
ComponentResult err;
157157
ComponentDescription componentDescription;
@@ -201,7 +201,7 @@ pascal ComponentResult Hap_DOpen(HapDecompressorGlobals glob, ComponentInstance
201201
#pragma GCC pop
202202

203203
// Component Close Request - Required
204-
pascal ComponentResult Hap_DClose(HapDecompressorGlobals glob, ComponentInstance self HAP_ATTR_UNUSED)
204+
ComponentResult Hap_DClose(HapDecompressorGlobals glob, ComponentInstance self HAP_ATTR_UNUSED)
205205
{
206206
// Make sure to close the base component and deallocate our storage
207207
if (glob)
@@ -229,15 +229,15 @@ pascal ComponentResult Hap_DClose(HapDecompressorGlobals glob, ComponentInstance
229229
}
230230

231231
// Component Version Request - Required
232-
pascal ComponentResult Hap_DVersion(HapDecompressorGlobals glob HAP_ATTR_UNUSED)
232+
ComponentResult Hap_DVersion(HapDecompressorGlobals glob HAP_ATTR_UNUSED)
233233
{
234234
return kHapDecompressorVersion;
235235
}
236236

237237
// Component Target Request
238238
// Allows another component to "target" you i.e., you call another component whenever
239239
// you would call yourself (as a result of your component being used by another component)
240-
pascal ComponentResult Hap_DTarget(HapDecompressorGlobals glob, ComponentInstance target)
240+
ComponentResult Hap_DTarget(HapDecompressorGlobals glob, ComponentInstance target)
241241
{
242242
glob->target = target;
243243
return noErr;
@@ -249,7 +249,7 @@ pascal ComponentResult Hap_DTarget(HapDecompressorGlobals glob, ComponentInstanc
249249
// The first function call that your image decompressor component receives from the base image
250250
// decompressor is always a call to ImageCodecInitialize. In response to this call, your image decompressor
251251
// component returns an ImageSubCodecDecompressCapabilities structure that specifies its capabilities.
252-
pascal ComponentResult Hap_DInitialize(HapDecompressorGlobals glob HAP_ATTR_UNUSED, ImageSubCodecDecompressCapabilities *cap)
252+
ComponentResult Hap_DInitialize(HapDecompressorGlobals glob HAP_ATTR_UNUSED, ImageSubCodecDecompressCapabilities *cap)
253253
{
254254
// Secifies the size of the ImageSubCodecDecompressRecord structure
255255
// and say we can support asyncronous decompression
@@ -283,7 +283,7 @@ pascal ComponentResult Hap_DInitialize(HapDecompressorGlobals glob HAP_ATTR_UNUS
283283
// which the ICM makes before decompressing an image. You are required only to provide values for
284284
// the wantedDestinationPixelSize and wantedDestinationPixelTypes fields and can also modify other
285285
// fields if necessary.
286-
pascal ComponentResult Hap_DPreflight(HapDecompressorGlobals glob, CodecDecompressParams *p)
286+
ComponentResult Hap_DPreflight(HapDecompressorGlobals glob, CodecDecompressParams *p)
287287
{
288288
// see also p->destinationBufferMemoryPreference and kICMImageBufferPreferVideoMemory
289289
OSStatus err = noErr;
@@ -376,7 +376,7 @@ pascal ComponentResult Hap_DPreflight(HapDecompressorGlobals glob, CodecDecompre
376376
// preserves any changes your component makes to any of the fields in the ImageSubCodecDecompressRecord
377377
// or CodecDecompressParams structures. If your component supports asynchronous scheduled decompression, it
378378
// may receive more than one ImageCodecBeginBand call before receiving an ImageCodecDrawBand call.
379-
pascal ComponentResult Hap_DBeginBand(HapDecompressorGlobals glob, CodecDecompressParams *p, ImageSubCodecDecompressRecord *drp, long flags HAP_ATTR_UNUSED)
379+
ComponentResult Hap_DBeginBand(HapDecompressorGlobals glob, CodecDecompressParams *p, ImageSubCodecDecompressRecord *drp, long flags HAP_ATTR_UNUSED)
380380
{
381381
OSStatus err = noErr;
382382
HapDecompressRecord *myDrp = (HapDecompressRecord *)drp->userDecompressRecord;
@@ -494,9 +494,9 @@ pascal ComponentResult Hap_DBeginBand(HapDecompressorGlobals glob, CodecDecompre
494494
}
495495

496496
#if defined(DEBUG)
497-
pascal ComponentResult Hap_DDecodeBand(HapDecompressorGlobals glob, ImageSubCodecDecompressRecord *drp, unsigned long flags HAP_ATTR_UNUSED)
497+
ComponentResult Hap_DDecodeBand(HapDecompressorGlobals glob, ImageSubCodecDecompressRecord *drp, unsigned long flags HAP_ATTR_UNUSED)
498498
#else
499-
pascal ComponentResult Hap_DDecodeBand(HapDecompressorGlobals glob HAP_ATTR_UNUSED, ImageSubCodecDecompressRecord *drp, unsigned long flags HAP_ATTR_UNUSED)
499+
ComponentResult Hap_DDecodeBand(HapDecompressorGlobals glob HAP_ATTR_UNUSED, ImageSubCodecDecompressRecord *drp, unsigned long flags HAP_ATTR_UNUSED)
500500
#endif
501501
{
502502
OSErr err = noErr;
@@ -550,7 +550,7 @@ pascal ComponentResult Hap_DDecodeBand(HapDecompressorGlobals glob HAP_ATTR_UNUS
550550
// by the fields of the ImageSubCodecDecompressRecord structure. The structure includes any changes your component made to it
551551
// when performing the ImageCodecBeginBand function. If your component supports asynchronous scheduled decompression,
552552
// it may receive more than one ImageCodecBeginBand call before receiving an ImageCodecDrawBand call.
553-
pascal ComponentResult Hap_DDrawBand(HapDecompressorGlobals glob, ImageSubCodecDecompressRecord *drp)
553+
ComponentResult Hap_DDrawBand(HapDecompressorGlobals glob, ImageSubCodecDecompressRecord *drp)
554554
{
555555
ComponentResult err = noErr;
556556

@@ -658,7 +658,7 @@ pascal ComponentResult Hap_DDrawBand(HapDecompressorGlobals glob, ImageSubCodecD
658658
// can be called at interrupt time, your component cannot use this function to dispose of data structures; this
659659
// must occur after handling the function. The value of the result parameter should be set to noErr if the band or frame was
660660
// drawn successfully. If it is any other value, the band or frame was not drawn.
661-
pascal ComponentResult Hap_DEndBand(HapDecompressorGlobals glob HAP_ATTR_UNUSED, ImageSubCodecDecompressRecord *drp, OSErr result HAP_ATTR_UNUSED, long flags HAP_ATTR_UNUSED)
661+
ComponentResult Hap_DEndBand(HapDecompressorGlobals glob HAP_ATTR_UNUSED, ImageSubCodecDecompressRecord *drp, OSErr result HAP_ATTR_UNUSED, long flags HAP_ATTR_UNUSED)
662662
{
663663
HapDecompressRecord *myDrp = (HapDecompressRecord *)drp->userDecompressRecord;
664664
HapCodecBufferReturn(myDrp->dxtBuffer);
@@ -673,7 +673,7 @@ pascal ComponentResult Hap_DEndBand(HapDecompressorGlobals glob HAP_ATTR_UNUSED,
673673
// ImageCodecQueueStarting function before decompressing the frames in the queue. Your component is not required to implement this function.
674674
// It can implement the function if it needs to perform any tasks at this time, such as locking data structures.
675675
// The base image decompressor never calls the ImageCodecQueueStarting function at interrupt time.
676-
pascal ComponentResult Hap_DQueueStarting(HapDecompressorGlobals glob)
676+
ComponentResult Hap_DQueueStarting(HapDecompressorGlobals glob)
677677
{
678678
#pragma unused(glob)
679679

@@ -686,7 +686,7 @@ pascal ComponentResult Hap_DQueueStarting(HapDecompressorGlobals glob)
686686
// After your image decompressor component handles an ImageCodecQueueStopping call, it can perform any tasks that are required when decompression
687687
// of the frames is finished, such as disposing of data structures that are no longer needed.
688688
// The base image decompressor never calls the ImageCodecQueueStopping function at interrupt time.
689-
pascal ComponentResult Hap_DQueueStopping(HapDecompressorGlobals glob HAP_ATTR_UNUSED)
689+
ComponentResult Hap_DQueueStopping(HapDecompressorGlobals glob HAP_ATTR_UNUSED)
690690
{
691691
return noErr;
692692
}
@@ -697,7 +697,7 @@ pascal ComponentResult Hap_DQueueStopping(HapDecompressorGlobals glob HAP_ATTR_U
697697
// image description structure and don't know the exact size of one frame. In this case, the Image Compression Manager calls the component to determine
698698
// the size of the data. Your component should return a long integer indicating the number of bytes of data in the compressed image. You may want to store
699699
// the image size somewhere in the image description structure, so that you can respond to this request quickly. Only decompressors receive this request.
700-
pascal ComponentResult Hap_DGetCompressedImageSize(HapDecompressorGlobals glob HAP_ATTR_UNUSED,
700+
ComponentResult Hap_DGetCompressedImageSize(HapDecompressorGlobals glob HAP_ATTR_UNUSED,
701701
ImageDescriptionHandle desc HAP_ATTR_UNUSED,
702702
Ptr data HAP_ATTR_UNUSED,
703703
long dataSize HAP_ATTR_UNUSED,
@@ -716,7 +716,7 @@ pascal ComponentResult Hap_DGetCompressedImageSize(HapDecompressorGlobals glob H
716716
// Your component receives the ImageCodecGetCodecInfo request whenever an application calls the Image Compression Manager's GetCodecInfo function.
717717
// Your component should return a formatted compressor information structure defining its capabilities.
718718
// Both compressors and decompressors may receive this request.
719-
pascal ComponentResult Hap_DGetCodecInfo(HapDecompressorGlobals glob, CodecInfo *info)
719+
ComponentResult Hap_DGetCodecInfo(HapDecompressorGlobals glob, CodecInfo *info)
720720
{
721721
OSErr err = noErr;
722722

0 commit comments

Comments
 (0)