Skip to content

Commit

Permalink
shattered, el cap happy, still needs a lot of polish
Browse files Browse the repository at this point in the history
  • Loading branch information
kbintraedge committed Oct 22, 2015
1 parent 1e87b2d commit f21ded7
Show file tree
Hide file tree
Showing 12 changed files with 16,370 additions and 1,607 deletions.
4 changes: 2 additions & 2 deletions JSONKit.m
Expand Up @@ -677,7 +677,7 @@ + (id)allocWithZone:(NSZone *)zone
NSCParameterAssert((objects != NULL) && (_JKArrayClass != NULL) && (_JKArrayInstanceSize > 0UL));
JKArray *array = NULL;
if(JK_EXPECT_T((array = (JKArray *)calloc(1UL, _JKArrayInstanceSize)) != NULL)) { // Directly allocate the JKArray instance via calloc.
array->isa = _JKArrayClass;
object_setClass(array, _JKArrayClass);
if((array = [array init]) == NULL) { return(NULL); }
array->capacity = count;
array->count = count;
Expand Down Expand Up @@ -928,7 +928,7 @@ static void _JKDictionaryResizeIfNeccessary(JKDictionary *dictionary) {
NSCParameterAssert((keys != NULL) && (keyHashes != NULL) && (objects != NULL) && (_JKDictionaryClass != NULL) && (_JKDictionaryInstanceSize > 0UL));
JKDictionary *dictionary = NULL;
if(JK_EXPECT_T((dictionary = (JKDictionary *)calloc(1UL, _JKDictionaryInstanceSize)) != NULL)) { // Directly allocate the JKDictionary instance via calloc.
dictionary->isa = _JKDictionaryClass;
object_setClass(dictionary, _JKDictionaryClass);
if((dictionary = [dictionary init]) == NULL) { return(NULL); }
dictionary->capacity = _JKDictionaryCapacityForCount(count);
dictionary->count = 0UL;
Expand Down
6 changes: 3 additions & 3 deletions NativeStuffs/Restore/iUSBKit/IPhoneUSB.m
Expand Up @@ -7,12 +7,12 @@
//

#import "IPhoneUSB.h"
#import "ToolBox.h"
//#import "ToolBox.h"
#import "NSString+Extensions.h"

static BOOL isListening = NO;

void progressCallback(UKDevice *device, double progress)
void progressCallback(SPDevice *device, double progress)
{

IPhoneUSB *theSelf = (IPhoneUSB *)(device->user_arg);
Expand All @@ -21,7 +21,7 @@ void progressCallback(UKDevice *device, double progress)

}

void usbEventHandler(UKDevice *device, int event, void *refCon){
void usbEventHandler(SPDevice *device, int event, void *refCon){

IPhoneUSB *theSelf = (IPhoneUSB *)refCon;

Expand Down
2 changes: 1 addition & 1 deletion NativeStuffs/Restore/iUSBKit/libusb.h
Expand Up @@ -107,7 +107,7 @@ void device_attached(void * refCon, io_iterator_t iterator);
void device_detached(void * refCon, io_iterator_t iterator);
void open_device(UKDevice * Device);
void open_interface(UKDevice * Device, int interface, int alt_interface);
void get_ids(UKDevice * Device);
int get_ids(UKDevice * Device);

int send_control_request(UKDevice * Device,
UInt8 bm_request_type,
Expand Down
15,025 changes: 15,025 additions & 0 deletions NativeStuffs/libusbkit/SHAtter.h

Large diffs are not rendered by default.

0 comments on commit f21ded7

Please sign in to comment.