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

Unified 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, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « class-dump/src/CDBalanceFormatter.m ('k') | class-dump/src/CDClassDump.m » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: class-dump/src/CDClassDump.h
===================================================================
--- class-dump/src/CDClassDump.h (revision 0)
+++ class-dump/src/CDClassDump.h (revision 0)
@@ -0,0 +1,99 @@
+// -*- mode: ObjC -*-
+
+// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
+// Copyright (C) 1997-1998, 2000-2001, 2004-2010 Steve Nygard.
+
+#import <Foundation/Foundation.h>
+
+#include <sys/types.h>
+#include <regex.h>
+#import "CDFile.h" // For CDArch
+
+#ifdef __LP64__
+#define CLASS_DUMP_BASE_VERSION "3.3.3 (64 bit)"
+#else
+#define CLASS_DUMP_BASE_VERSION "3.3.3 (32 bit)"
+#endif
+
+#ifdef DEBUG
+#define CLASS_DUMP_VERSION CLASS_DUMP_BASE_VERSION " (Debug version compiled " __DATE__ " " __TIME__ ")"
+#else
+#define CLASS_DUMP_VERSION CLASS_DUMP_BASE_VERSION
+#endif
+
+@class CDLCDylib, CDFile, CDMachOFile;
+@class CDSymbolReferences, CDType, CDTypeController, CDTypeFormatter;
+@class CDVisitor;
+@class CDSearchPathState;
+
+@interface CDClassDump : NSObject
+{
+ CDSearchPathState *searchPathState;
+
+ struct {
+ unsigned int shouldProcessRecursively:1;
+ unsigned int shouldSortClasses:1; // And categories, protocols
+ unsigned int shouldSortClassesByInheritance:1; // And categories, protocols
+ unsigned int shouldSortMethods:1;
+
+ unsigned int shouldShowIvarOffsets:1;
+ unsigned int shouldShowMethodAddresses:1;
+ unsigned int shouldMatchRegex:1;
+ unsigned int shouldShowHeader:1;
+ } flags;
+
+ regex_t compiledRegex;
+
+ NSString *sdkRoot;
+ NSMutableArray *machOFiles;
+ NSMutableDictionary *machOFilesByID;
+ NSMutableArray *objcProcessors;
+
+ CDTypeController *typeController;
+
+ CDArch targetArch;
+}
+
+- (id)init;
+- (void)dealloc;
+
+@property(readonly) CDSearchPathState *searchPathState;
+@property BOOL shouldProcessRecursively;
+@property BOOL shouldSortClasses;
+@property BOOL shouldSortClassesByInheritance;
+@property BOOL shouldSortMethods;
+@property BOOL shouldShowIvarOffsets;
+@property BOOL shouldShowMethodAddresses;
+@property BOOL shouldMatchRegex;
+@property BOOL shouldShowHeader;
+
+- (BOOL)setRegex:(char *)regexCString errorMessage:(NSString **)errorMessagePointer;
+- (BOOL)regexMatchesString:(NSString *)aString;
+
+@property(retain) NSString *sdkRoot;
+
+- (NSArray *)machOFiles;
+- (NSArray *)objcProcessors;
+
+@property CDArch targetArch;
+
+- (BOOL)containsObjectiveCData;
+- (BOOL)hasEncryptedFiles;
+
+- (CDTypeController *)typeController;
+
+- (BOOL)loadFile:(CDFile *)aFile;
+- (void)processObjectiveCData;
+
+- (void)recursivelyVisit:(CDVisitor *)aVisitor;
+
+- (CDMachOFile *)machOFileWithID:(NSString *)anID;
+
+- (void)appendHeaderToString:(NSMutableString *)resultString;
+
+- (void)registerTypes;
+
+- (void)showHeader;
+- (void)showLoadCommands;
+
+@end
Property changes on: class-dump/src/CDClassDump.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« 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