Skip to content

Commit dac38a1

Browse files
committed
Merge remote-tracking branch 'upstream/develop-8.0' into merge-develop-8.0-25.07.2016
2 parents b05310e + 0bfde81 commit dac38a1

13 files changed

Lines changed: 108 additions & 29 deletions

File tree

builder/tools_builder.livecodescript

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,13 @@ end toolsBuilderRunBundle
7878

7979
private command toolsBuilderFilterExternals pFolder, pPlatform
8080
-- Enter the extension directory
81+
local tOldFolder
82+
put the defaultFolder into tOldFolder
8183
set the defaultFolder to pFolder
84+
if the result is not empty then
85+
builderLog "error", merge("Failed to enter '[[pFolder]]': [[the result]]")
86+
exit toolsBuilderFilterExternals
87+
end if
8288

8389
local tFiles
8490
-- Remove any iOS code if we're not building the OSX installer
@@ -101,15 +107,20 @@ private command toolsBuilderFilterExternals pFolder, pPlatform
101107
revZipCloseArchive pFolder & slash & tLCExt
102108

103109
if tArchiveFiles is not empty then
104-
get shell(merge("rm -f '[[ tLCExt ]]'"))
110+
get shell(merge("rm -fv '[[ tLCExt ]]'"))
105111
end if
106112
end repeat
107113
end if
108114

109115
-- If the directory contains no code any more, remove it
110116
put the files & return & the folders into tFiles
111117
filter lines of tFiles with regex pattern "^.*\.(so|dylib|bundle|dll|lcext)$"
112-
118+
119+
set the defaultFolder to tOldFolder
120+
if the result is not empty then
121+
builderLog "error", merge("Failed to enter '[[tOldFolder]]': [[the result]]")
122+
end if
123+
113124
return tFiles is not empty
114125
end toolsBuilderFilterExternals
115126

docs/notes/bugfix-17633.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix long delay when launching standalone displaying a browser widget

docs/notes/bugfix-18045.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Make sure cookie filePath is set correctly

engine/src/module-engine.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,9 +750,15 @@ extern "C" MC_DLLEXPORT_DEF bool MCEngineRunloopWait()
750750
return true;
751751
}
752752

753+
static void break_no_op(void*)
754+
{
755+
}
756+
753757
extern "C" MC_DLLEXPORT_DEF void MCEngineRunloopBreakWait()
754758
{
755-
MCNotifyPing(false);
759+
// IM-2016-07-21: [[ Bug 17633 ]] Need to give notify dispatch something
760+
// to do as just pinging the queue doesn't break out of the wait loop.
761+
MCNotifyPush(break_no_op, nil, false, true);
756762
}
757763

758764
////////////////////////////////////////////////////////////////////////////////

engine/src/srvoutput.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ bool MCServerSetCookie(MCStringRef p_name, MCStringRef p_value, uint32_t p_expir
511511
{
512512
MCservercgicookies[t_index].name = MCStringIsEmpty(p_name) ? strdup("") : strdup(MCStringGetCString(p_name));
513513
MCservercgicookies[t_index].value = strdup(MCStringGetCString(*t_encoded));
514-
MCservercgicookies[t_index].path = MCStringIsEmpty(p_domain) ? strdup("") : strdup(MCStringGetCString(p_path));
514+
MCservercgicookies[t_index].path = MCStringIsEmpty(p_path) ? strdup("") : strdup(MCStringGetCString(p_path));
515515
MCservercgicookies[t_index].domain = MCStringIsEmpty(p_domain) ? strdup("") : strdup(MCStringGetCString(p_domain));
516516

517517
MCservercgicookies[t_index].expires = p_expires;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# [18054] Ensure that appearance reflects loaded state

extensions/widgets/switchbutton/switchbutton.lcb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,12 @@ public handler OnSave(out rProperties as Array)
224224
end handler
225225

226226
public handler OnLoad(in pProperties as Array)
227-
put pProperties["highlight"] into mSwitchIsOn
228-
put pProperties["showBorder"] into mShowFrameBorder
227+
if "highlight" is among the keys of pProperties then
228+
setSwitch(pProperties["highlight"])
229+
end if
230+
if "showBorder" is among the keys of pProperties then
231+
setShowFrameBorder(pProperties["showBorder"])
232+
end if
229233
end handler
230234

231235
public handler OnCreate() returns nothing

libscript/src/arithmetic.lcb

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (C) 2003-2015 LiveCode Ltd.
1+
/* Copyright (C) 2003-2016 LiveCode Ltd.
22

33
This file is part of LiveCode.
44

@@ -532,8 +532,10 @@ The result: <Operand> formatted as a string.
532532

533533
Example:
534534
variable tNum as Number
535+
variable tString as String
535536
put 5 into tNum
536-
format tNum as string -- the result contains "5"
537+
format tNum as string into tString
538+
-- tString contains "5"
537539

538540
Description:
539541
Use <FormatNumberAsString> when you want to manipulate a numeric value as text.
@@ -591,11 +593,11 @@ Example:
591593
parse tString as Number -- the result is 5.6
592594

593595
Example:
594-
variable tResult as String
596+
variable tResult as optional String
595597
variable tNum as optional Number
596-
parse "aaaa" as Number
598+
parse "aaaa" as Number into tNum
597599

598-
if the result is nothing then
600+
if tNum is nothing then
599601
put "unable to parse string" into tResult
600602
end if
601603

@@ -658,7 +660,8 @@ Example:
658660
variable tListOfString as List
659661
variable tListOfNum as List
660662
split "1,2,3,4" by "," into tListOfString
661-
parse tListOfString as list of number -- the result contains [ 1, 2, 3, 4 ]
663+
parse tListOfString as list of number into tListOfNum
664+
-- tListOfNum contains [ 1, 2, 3, 4 ]
662665

663666
Description:
664667
Use <ParseListOfStringAsListOfNumber> when you want to interpret pieces of text numerically. If the input list contains elements which cannot be parsed as numbers, the corresponding element will be nothing.

libscript/src/logic.lcb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (C) 2003-2015 LiveCode Ltd.
1+
/* Copyright (C) 2003-2016 LiveCode Ltd.
22

33
This file is part of LiveCode.
44

@@ -169,8 +169,7 @@ The result: "true" or "false"
169169

170170
Example:
171171
variable tVar as String
172-
parse 1 = 0 as String
173-
put the result into tVar
172+
format 1 = 0 as String into tVar
174173
put "e" into char 3 of tVar -- tVar is "tree"
175174

176175
Description:
@@ -225,8 +224,9 @@ Example:
225224

226225
Example:
227226
variable tResult as String
228-
parse "sdfsdf" as Boolean
229-
if the result is nothing then
227+
variable tCheck as optional Boolean
228+
parse "sdfsdf" as boolean into tCheck
229+
if tCheck is nothing then
230230
put "not a valid boolean" into tResult
231231
end if
232232

libscript/src/type-convert.lcb

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (C) 2003-2015 LiveCode Ltd.
1+
/* Copyright (C) 2003-2016 LiveCode Ltd.
22

33
This file is part of LiveCode.
44

@@ -38,8 +38,7 @@ Example:
3838
variable tVar as String
3939
put "first,second,third,fourth,fifth" into tVar
4040
variable tSplit as List
41-
split tVar by ","
42-
put the result into tSplit
41+
split tVar by "," into tSplit
4342
put element 1 of tSplit into tFirstElement // tFirstElement contains "first"
4443

4544
Description:
@@ -64,13 +63,13 @@ Delimiter: An expression that evaluates to a string.
6463
The result: The combined string.
6564

6665
Example:
67-
variable tDigits as List
68-
put [1,2,3,4,5,6,7,8,9] into tDigits
66+
variable tWords as List
67+
put ["A","List","of","words"] into tWords
6968

7069
variable tString as String
71-
combine tDigits with "|"
72-
put the result into tString // tString contains "1|2|3|4|5|6|7|8|9"
73-
70+
combine tWords with " " into tString
71+
-- tString contains "A List of words"
72+
7473
Description:
7574
Use the combine command to convert a list into a string representation of the list.
7675

0 commit comments

Comments
 (0)