From 07ae2f7f98a05c531f1f667ce1416cfdea3672a6 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 15 Sep 2012 08:17:52 -0700 Subject: [PATCH] Change void to BlockLiteral in copy/dispose types. --- ObjectiveC/Library.mm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ObjectiveC/Library.mm b/ObjectiveC/Library.mm index 286f1df..7b33245 100644 --- a/ObjectiveC/Library.mm +++ b/ObjectiveC/Library.mm @@ -128,14 +128,22 @@ static void (*$objc_setAssociatedObject)(id object, void *key, id value, objc_As static id (*$objc_getAssociatedObject)(id object, void *key); static void (*$objc_removeAssociatedObjects)(id object); +struct BlockLiteral { + Class isa; + int flags; + int reserved; + void (*invoke)(void *, ...); + void *descriptor; +}; + struct BlockDescriptor1 { unsigned long int reserved; unsigned long int size; }; struct BlockDescriptor2 { - void (*copy_helper)(void *dst, void *src); - void (*dispose_helper)(void *src); + void (*copy_helper)(BlockLiteral *dst, BlockLiteral *src); + void (*dispose_helper)(BlockLiteral *src); }; struct BlockDescriptor3 { @@ -143,14 +151,6 @@ struct BlockDescriptor3 { const char *layout; }; -struct BlockLiteral { - Class isa; - int flags; - int reserved; - void (*invoke)(void *, ...); - void *descriptor; -}; - enum { BLOCK_DEALLOCATING = 0x0001, BLOCK_REFCOUNT_MASK = 0xfffe, -- 2.47.2