Skip to content

Commit

Permalink
Sync with sourceforge repo r219
Browse files Browse the repository at this point in the history
  • Loading branch information
reverser committed Sep 6, 2013
1 parent eb742ca commit f9c3f0b
Show file tree
Hide file tree
Showing 27 changed files with 1,842 additions and 2,817 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.svn/*

build/*
English.lproj/.svn/all-wcprops
English.lproj/.svn/entries
English.lproj/.svn/text-base/InfoPlist.strings.svn-base
Expand Down
4 changes: 2 additions & 2 deletions ArchiveLayout.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
{
NSString * name;
uint32_t length;
MVLayout * __unsafe_unretained layout;
MVLayout * __weak layout;
}

@property (nonatomic) NSString * name;
@property (nonatomic) uint32_t length;
@property (nonatomic,unsafe_unretained) MVLayout * layout;
@property (nonatomic,weak) MVLayout * layout;

@end

Expand Down
6 changes: 6 additions & 0 deletions CRTFootPrints.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1259,6 +1259,9 @@ - (bool) matchAsmAtOffset:(uint32_t)offset
asmFootPrint:(const AsmFootPrint)footprint
lineCount:(NSUInteger)lineCount
{
if (!dataController) // dataController is weak
return false;

uint8_t const * data = ((uint8_t *)[dataController.fileData bytes]) + offset;

for (NSUInteger i = 0; i < lineCount; ++i)
Expand All @@ -1284,6 +1287,9 @@ - (bool) matchAsmAtOffset:(uint32_t)offset
//------------------------------------------------------------------------------
- (void) determineRuntimeVersion
{
if (!dataController) // dataController is weak
return;

if (entryPoint == 0)
{
return; // not an executable, no entry point, or cannot detect
Expand Down
10 changes: 5 additions & 5 deletions DataController.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ struct MVNodeSaver;
{
NSMutableArray * rows; // array of MVRow * (host of all the rows)
NSMutableArray * displayRows; // array of MVRow * (rows filtered by search criteria)
MVArchiver * __unsafe_unretained archiver;
MVArchiver * __weak archiver;
FILE * swapFile;
NSLock * tableLock;
}
Expand All @@ -113,7 +113,7 @@ struct MVNodeSaver;
@interface MVNode : NSObject <MVSerializing>
{
NSString * caption;
MVNode * __unsafe_unretained parent;
MVNode * __weak parent;
NSMutableArray * children;
NSRange dataRange;
MVTable * details;
Expand All @@ -122,7 +122,7 @@ struct MVNodeSaver;
}

@property (nonatomic) NSString * caption;
@property (nonatomic,unsafe_unretained) MVNode * parent;
@property (nonatomic,weak) MVNode * parent;
@property (nonatomic) NSRange dataRange;
@property (nonatomic) MVTable * details;
@property (nonatomic) NSMutableDictionary * userInfo;
Expand Down Expand Up @@ -150,7 +150,7 @@ struct MVNodeSaver;
NSMutableData * realData; // patched content by relocs and bindings
NSMutableArray * layouts;
MVNode * rootNode;
MVNode * __unsafe_unretained selectedNode;
MVNode * __weak selectedNode;
NSLock * treeLock; // semaphore for the node tree
}

Expand All @@ -159,7 +159,7 @@ struct MVNodeSaver;
@property (nonatomic) NSMutableData * realData;
@property (nonatomic,readonly) NSArray * layouts;
@property (nonatomic,readonly) MVNode * rootNode;
@property (nonatomic,unsafe_unretained) MVNode * selectedNode;
@property (nonatomic,weak) MVNode * selectedNode;
@property (nonatomic,readonly) NSLock * treeLock;

-(NSString *) getMachine:(cpu_type_t)cputype;
Expand Down
2 changes: 1 addition & 1 deletion DataController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ - (NSString *)readStringFromFile:(FILE *)pFile
for(;;)
{
char c = fgetc(pFile);
if (c)
if (!feof(pFile) && c)
s += c;
else
break;
Expand Down
8 changes: 2 additions & 6 deletions DataSources.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@

extern NSString * const MVScannerErrorMessage;

@interface DataSourceTree : NSObject
{
}
@interface MVDataSourceTree : NSObject;
@end


@interface DataSourceDetails : NSObject
{
}
@interface MVDataSourceDetails : NSObject;
@end

4 changes: 2 additions & 2 deletions DataSources.mm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
NSString * const MVScannerErrorMessage = @"NSScanner error";

//============================================================================
@implementation DataSourceTree
@implementation MVDataSourceTree

#pragma mark NSOutlineView must-have delegates

Expand Down Expand Up @@ -77,7 +77,7 @@ - (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTabl


//============================================================================
@implementation DataSourceDetails
@implementation MVDataSourceDetails

#pragma mark NSTableView must-have delegates

Expand Down
Loading

0 comments on commit f9c3f0b

Please sign in to comment.