// !!! ignoring unary plus as implemented here has the side effect of
// suppressing errors like +"hi"
if (lastPush == false) // unary plus, don't push an operator
- goto returnAdv;
+ return advance;
op = kAdd;
break;
case '-':
break;
case '(':
*fOpStack.push() = (Op) kParen;
- goto returnAdv;
+ return advance;
case '&':
SkASSERT(nextChar != '&');
op = kBitAnd;
fOpStack.push(op);
if (reverseOperands)
*fOpStack.push() = (Op) (kFlipOps | kArtificialOp);
-returnAdv:
- return advance;
+
+ return advance;
}
bool SkScriptEngine2::convertParams(SkTDArray<SkScriptValue2>* params,
}
extern float dummy();
-int time_math() {
+static int time_math() {
SkMSec now;
int i;
int sum = 0;
}
};
+void ValidateHeap();
void ValidateHeap()
{
SkBlockHeader::Validate();
}
-void sk_fill_triangle(const SkPoint pts[], const SkIRect* clipRect,
- SkBlitter* blitter, const SkIRect& ir) {
+static void sk_fill_triangle(const SkPoint pts[], const SkIRect* clipRect,
+ SkBlitter* blitter, const SkIRect& ir) {
SkASSERT(pts && blitter);
SkEdge edgeStorage[3];
switch (wKind) {
case kEventMouseDown:
- (void)win->handleClick(pt.h, pt.v, Click::kDown_State);
- result = noErr;
+ if (win->handleClick(pt.h, pt.v, Click::kDown_State)) {
+ // result = noErr;
+ }
break;
case kEventMouseDragged:
(void)win->handleClick(pt.h, pt.v, Click::kMoved_State);
- result = noErr;
+ // result = noErr;
break;
case kEventMouseUp:
(void)win->handleClick(pt.h, pt.v, Click::kUp_State);
- result = noErr;
+ // result = noErr;
break;
default:
break;