summaryrefslogtreecommitdiff
path: root/UICaboodle
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2009-08-13 07:13:56 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:13:58 +0000
commitbfc87a4de0bb13a8dbb3d222baff1154559d9841 (patch)
tree6ed2fbcd0f8954b26ea1689fd90ebf18c3b6c4ff /UICaboodle
parent59dbe2966d3839d2e38b4008268c1491a1d014bf (diff)
Various fixes and stuff.
Diffstat (limited to 'UICaboodle')
-rw-r--r--UICaboodle/BrowserView.mm17
-rw-r--r--UICaboodle/UCPlatform.h3
2 files changed, 11 insertions, 9 deletions
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm
index bd2c236..30d8371 100644
--- a/UICaboodle/BrowserView.mm
+++ b/UICaboodle/BrowserView.mm
@@ -10,6 +10,8 @@ extern NSString * const kCAFilterNearest;
#include "substrate.h"
+#define ForSaurik 1
+
static CFArrayRef (*$GSSystemCopyCapability)(CFStringRef);
static CFArrayRef (*$GSSystemGetCapability)(CFStringRef);
@@ -214,7 +216,7 @@ UIActionSheet *mailAlertSheet = [[UIActionSheet alloc] initWithTitle:UCLocalize(
#endif
#define ShowInternals 0
-#define LogBrowser 0
+#define LogBrowser 1
#define lprintf(args...) fprintf(stderr, args)
@@ -968,8 +970,8 @@ UIActionSheet *mailAlertSheet = [[UIActionSheet alloc] initWithTitle:UCLocalize(
}
- (void) webView:(WebView *)sender didStartProvisionalLoadForFrame:(WebFrame *)frame {
- if ([loading_ count] == 0)
- [self retain];
+ /*if ([loading_ count] == 0)
+ [self retain];*/
[loading_ addObject:[NSValue valueWithNonretainedObject:frame]];
if ([frame parentFrame] == nil) {
@@ -1033,8 +1035,8 @@ UIActionSheet *mailAlertSheet = [[UIActionSheet alloc] initWithTitle:UCLocalize(
- (void) _finishLoading {
size_t count([loading_ count]);
- if (count == 0)
- [self autorelease];
+ /*if (count == 0)
+ [self autorelease];*/
if (reloading_ || count != 0)
return;
if (finish_ != nil)
@@ -1125,8 +1127,9 @@ UIActionSheet *mailAlertSheet = [[UIActionSheet alloc] initWithTitle:UCLocalize(
}
- (void) _didFailWithError:(NSError *)error forFrame:(WebFrame *)frame {
- if ([frame parentFrame] == nil)
- [self autorelease];
+ _trace();
+ /*if ([frame parentFrame] == nil)
+ [self autorelease];*/
[loading_ removeObject:[NSValue valueWithNonretainedObject:frame]];
[self _finishLoading];
diff --git a/UICaboodle/UCPlatform.h b/UICaboodle/UCPlatform.h
index 0940406..9e95703 100644
--- a/UICaboodle/UCPlatform.h
+++ b/UICaboodle/UCPlatform.h
@@ -45,5 +45,4 @@ while (false)
#define _packed \
__attribute__((packed))
-//#define _finline __attribute__((force_inline))
-#define _finline inline
+#define _finline inline __attribute__((always_inline))