Skip to content

Commit ac00c29

Browse files
committed
Merge remote-tracking branch 'upstream/develop-9.0' into merge-develop-9.0-12.05.2019
2 parents 415f749 + bed2f08 commit ac00c29

File tree

11 files changed

+68
-19
lines changed

11 files changed

+68
-19
lines changed

docs/guides/LiveCode Builder Language Reference.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,11 @@ on Android and iOS).
579579

580580
The Obj-C binding string has the following form:
581581

582-
"objc:[class.](+|-)method[?thread]"
582+
"objc:[library>][class.](+|-)method[?thread]"
583+
584+
Here *library* specifies the name of the library or framework to bind to (if no
585+
library is specified a symbol from the engine executable or a library it is
586+
linked to is assumed).
583587

584588
Here *class* specifies the name of the class containing the method to
585589
bind to. If the method is an instance method, the class can be omitted,

docs/lcb/notes/22047.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# [22047] Allow nothing to be passed as a variadic argument to a foreign handler

docs/notes/bugfix-12419.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix touch messages not being sent to controls under an mobile scroller control on Android

docs/notes/bugfix-22042.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Updated SQLite to version 3.28.0

engine/src/java/com/runrev/android/nativecontrol/ScrollerControl.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ public void onScrollChanged(int l, int t, int oldl, int oldt)
8080
ScrollerControl.this.updateScroll(m_dispatching ? m_new_left : m_left, t);
8181
super.onScrollChanged(l, t, oldl, oldt);
8282
}
83+
84+
@Override
85+
public boolean onInterceptTouchEvent (MotionEvent ev)
86+
{
87+
return true;
88+
}
8389
};
8490
m_hscroll = new HorizontalScrollView(p_context) {
8591
@Override
@@ -89,6 +95,12 @@ public void onScrollChanged(int l, int t, int oldl, int oldt)
8995
ScrollerControl.this.updateScroll(l, m_dispatching ? m_new_top : m_top);
9096
super.onScrollChanged(l, t, oldl, oldt);
9197
}
98+
99+
@Override
100+
public boolean onInterceptTouchEvent (MotionEvent ev)
101+
{
102+
return true;
103+
}
92104
};
93105

94106
m_inner_hview = new View(p_context) {

extensions/widgets/macbutton/macbutton.lcb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ end handler
160160

161161
private type NSUInteger is CULong
162162
private foreign handler ObjC_NSButtonAlloc() returns ObjcRetainedId binds to "objc:NSButton.+alloc"
163-
private foreign handler ObjC_NSButtonInit(in pObj as ObjcId) returns ObjcId binds to "objc:NSButton.-init"
163+
private foreign handler ObjC_NSButtonInit(in pObj as ObjcRetainedId) returns optional ObjcRetainedId binds to "objc:NSButton.-init"
164164
private foreign handler ObjC_NSButtonSetEnabled(in pObj as ObjcId, in pEnabled as CBool) returns nothing binds to "objc:NSButton.-setEnabled:"
165165
private foreign handler ObjC_NSButtonSetFont(in pObj as ObjcId, in pFont as ObjcId) returns nothing binds to "objc:NSButton.-setFont:"
166166
private foreign handler ObjC_NSButtonSetButtonType(in pObj as ObjcId, in pStyle as NSUInteger) returns nothing binds to "objc:NSButton.-setButtonType:"

extensions/widgets/mactextfield/mactextfield.lcb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ end handler
259259

260260
private type NSUInteger is CULong
261261
private foreign handler ObjC_NSTextFieldAlloc() returns ObjcRetainedId binds to "objc:NSTextField.+alloc"
262-
private foreign handler ObjC_NSTextFieldInit(in pObj as ObjcId) returns ObjcId binds to "objc:NSTextField.-init"
262+
private foreign handler ObjC_NSTextFieldInit(in pObj as ObjcRetainedId) returns optional ObjcRetainedId binds to "objc:NSTextField.-init"
263263
private foreign handler ObjC_NSTextFieldSetEnabled(in pObj as ObjcId, in pEnabled as CBool) returns nothing binds to "objc:NSTextField.-setEnabled:"
264264
private foreign handler ObjC_NSTextFieldSetFont(in pObj as ObjcId, in pFont as ObjcId) returns nothing binds to "objc:NSTextField.-setFont:"
265265
private foreign handler ObjC_NSTextFieldSetBezelStyle(in pObj as ObjcId, in pStyle as NSUInteger) returns nothing binds to "objc:NSTextField.-setBezelStyle:"

ide-support/revsblibrary.livecodescript

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2189,6 +2189,12 @@ command revSBUpdateSettingsForExtensions pTarget, @xSettingsA
21892189
repeat for each line tLine in tContents
21902190
local tFileData
21912191
put tResourcesFolder & slash & tLine into tFileData["resolved"]
2192+
2193+
-- __EnumerateFolder list folders and we only want to add files
2194+
if there is a folder tFileData["resolved"] then
2195+
next repeat
2196+
end if
2197+
21922198
put tTargetResourceFolder & slash & tLine into tFileData["name"]
21932199
addToList tFileData, xSettingsA["files_computed"]
21942200
end repeat

libscript/src/script-execute.cpp

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -503,24 +503,27 @@ MCScriptExecuteContext::InvokeForeignVarArgument(MCScriptForeignInvocation& p_in
503503
MCTypeInfoRef t_actual_type = t_resolved_type.type;
504504

505505
// Fetch the promoted type of arg type (sub ints promote to int, and float
506-
// promotes to double).
506+
// promotes to double) - but only if the actual type is foreign.
507507
const MCForeignTypeDescriptor *t_desc = nullptr;
508508
if (MCTypeInfoIsForeign(t_actual_type))
509509
{
510510
t_desc = MCForeignTypeInfoGetDescriptor(t_actual_type);
511511
}
512512

513513
MCTypeInfoRef t_arg_type = t_actual_type;
514-
if (t_desc->promote != nullptr)
514+
if (t_desc != nullptr)
515515
{
516-
MCResolvedTypeInfo t_resolved_arg_type;
517-
if (!ResolveTypeInfo(t_desc->promotedtype,
518-
t_resolved_arg_type))
516+
if (t_desc->promote != nullptr)
519517
{
520-
return false;
518+
MCResolvedTypeInfo t_resolved_arg_type;
519+
if (!ResolveTypeInfo(t_desc->promotedtype,
520+
t_resolved_arg_type))
521+
{
522+
return false;
523+
}
524+
525+
t_arg_type = t_resolved_arg_type.type;
521526
}
522-
523-
t_arg_type = t_resolved_arg_type.type;
524527
}
525528

526529
// Compute the slot attributes - using the (potentially) promoted type.

tests/_testrunnerbehavior.livecodescript

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,6 @@ private command doRun pInfo
139139
put tLogForWriting into url ("binfile:" & tLogFilename)
140140

141141
if TesterTapGetWorstResult(tAnalysis) is "FAIL" then
142-
if $V is not empty then
143-
write tLogForWriting to stdout
144-
end if
145142
quit 1
146143
end if
147144
end doRun
@@ -325,5 +322,15 @@ command TestRunnerProcessOutput pScriptfile, pCommand, pOutput
325322

326323
TesterLogSummaryLine tTapResults, (TesterGetPrettyTestName(pScriptFile) & ":" && pCommand)
327324

325+
if TesterTapGetWorstResult(tTapResults) is "FAIL" then
326+
if $V is not empty then
327+
put textEncode(pOutput, "utf8") into pOutput
328+
if the platform is "win32" then
329+
replace return with numToChar(13) & numToChar(10) in pOutput
330+
end if
331+
write pOutput to stderr
332+
end if
333+
end if
334+
328335
return tTapResults
329336
end TestRunnerProcessOutput

0 commit comments

Comments
 (0)