Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: class-dump/src/CDClassDump.h

Issue 7793008: Add the 3.3.3 sources for class-dump. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « class-dump/src/CDBalanceFormatter.m ('k') | class-dump/src/CDClassDump.m » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // -*- mode: ObjC -*-
2
3 // This file is part of class-dump, a utility for examining the Objective-C seg ment of Mach-O files.
4 // Copyright (C) 1997-1998, 2000-2001, 2004-2010 Steve Nygard.
5
6 #import <Foundation/Foundation.h>
7
8 #include <sys/types.h>
9 #include <regex.h>
10 #import "CDFile.h" // For CDArch
11
12 #ifdef __LP64__
13 #define CLASS_DUMP_BASE_VERSION "3.3.3 (64 bit)"
14 #else
15 #define CLASS_DUMP_BASE_VERSION "3.3.3 (32 bit)"
16 #endif
17
18 #ifdef DEBUG
19 #define CLASS_DUMP_VERSION CLASS_DUMP_BASE_VERSION " (Debug version compiled " _ _DATE__ " " __TIME__ ")"
20 #else
21 #define CLASS_DUMP_VERSION CLASS_DUMP_BASE_VERSION
22 #endif
23
24 @class CDLCDylib, CDFile, CDMachOFile;
25 @class CDSymbolReferences, CDType, CDTypeController, CDTypeFormatter;
26 @class CDVisitor;
27 @class CDSearchPathState;
28
29 @interface CDClassDump : NSObject
30 {
31 CDSearchPathState *searchPathState;
32
33 struct {
34 unsigned int shouldProcessRecursively:1;
35 unsigned int shouldSortClasses:1; // And categories, protocols
36 unsigned int shouldSortClassesByInheritance:1; // And categories, protoc ols
37 unsigned int shouldSortMethods:1;
38
39 unsigned int shouldShowIvarOffsets:1;
40 unsigned int shouldShowMethodAddresses:1;
41 unsigned int shouldMatchRegex:1;
42 unsigned int shouldShowHeader:1;
43 } flags;
44
45 regex_t compiledRegex;
46
47 NSString *sdkRoot;
48 NSMutableArray *machOFiles;
49 NSMutableDictionary *machOFilesByID;
50 NSMutableArray *objcProcessors;
51
52 CDTypeController *typeController;
53
54 CDArch targetArch;
55 }
56
57 - (id)init;
58 - (void)dealloc;
59
60 @property(readonly) CDSearchPathState *searchPathState;
61 @property BOOL shouldProcessRecursively;
62 @property BOOL shouldSortClasses;
63 @property BOOL shouldSortClassesByInheritance;
64 @property BOOL shouldSortMethods;
65 @property BOOL shouldShowIvarOffsets;
66 @property BOOL shouldShowMethodAddresses;
67 @property BOOL shouldMatchRegex;
68 @property BOOL shouldShowHeader;
69
70 - (BOOL)setRegex:(char *)regexCString errorMessage:(NSString **)errorMessagePoin ter;
71 - (BOOL)regexMatchesString:(NSString *)aString;
72
73 @property(retain) NSString *sdkRoot;
74
75 - (NSArray *)machOFiles;
76 - (NSArray *)objcProcessors;
77
78 @property CDArch targetArch;
79
80 - (BOOL)containsObjectiveCData;
81 - (BOOL)hasEncryptedFiles;
82
83 - (CDTypeController *)typeController;
84
85 - (BOOL)loadFile:(CDFile *)aFile;
86 - (void)processObjectiveCData;
87
88 - (void)recursivelyVisit:(CDVisitor *)aVisitor;
89
90 - (CDMachOFile *)machOFileWithID:(NSString *)anID;
91
92 - (void)appendHeaderToString:(NSMutableString *)resultString;
93
94 - (void)registerTypes;
95
96 - (void)showHeader;
97 - (void)showLoadCommands;
98
99 @end
OLDNEW
« no previous file with comments | « class-dump/src/CDBalanceFormatter.m ('k') | class-dump/src/CDClassDump.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698