Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 12b4bb4

Browse files
[[ RefactorSyntax ]] Windows engine now runs without EP
1 parent afcfdf0 commit 12b4bb4

6 files changed

Lines changed: 11 additions & 21 deletions

File tree

engine/kernel.vcproj

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -699,14 +699,6 @@
699699
RelativePath="src\date.h"
700700
>
701701
</File>
702-
<File
703-
RelativePath="src\execpt.cpp"
704-
>
705-
</File>
706-
<File
707-
RelativePath="src\execpt.h"
708-
>
709-
</File>
710702
<File
711703
RelativePath=".\src\executionerrors.h"
712704
>

engine/src/dskw32.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,8 +1849,8 @@ struct MCWindowsDesktop: public MCSystemInterface, public MCWindowsSystemService
18491849
MCS_reset_time();
18501850
else
18511851
MClowrestimers = True;
1852-
MCExecPoint ep;
1853-
MCExecContext ctxt(ep);
1852+
1853+
MCExecContext ctxt(nil, nil, nil);
18541854
MCStringRef t_key;
18551855
t_key = MCSTR("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ProxyEnable");
18561856
MCAutoStringRef t_type, t_error;
@@ -1867,7 +1867,7 @@ struct MCWindowsDesktop: public MCSystemInterface, public MCWindowsSystemService
18671867
if (!MCValueIsEmpty(*t_value2))
18681868
{
18691869
MCAutoStringRef t_http_proxy;
1870-
/* UNCHECKED */ ctxt . ConvertToStringRef(*t_value2, &t_http_proxy);
1870+
/* UNCHECKED */ ctxt . ConvertToString(*t_value2, &t_http_proxy);
18711871
MCValueAssign(MChttpproxy, *t_http_proxy);
18721872
}
18731873
}
@@ -1882,7 +1882,7 @@ struct MCWindowsDesktop: public MCSystemInterface, public MCWindowsSystemService
18821882
if (!MCValueIsEmpty(*t_value3))
18831883
{
18841884
MCAutoStringRef t_host;
1885-
/* UNCHECKED */ ctxt . ConvertToStringRef(*t_value3, &t_host);
1885+
/* UNCHECKED */ ctxt . ConvertToString(*t_value3, &t_host);
18861886
MCStringRef t_key4;
18871887
t_key4 = MCSTR("HKEY_CURRENT_USER\\Software\\Netscape\\Netscape Navigator\\Proxy Information\\HTTP_ProxyPort");
18881888
MCAutoStringRef t_type4, t_error4;
@@ -3896,8 +3896,8 @@ bool MCU_path2native(MCStringRef p_path, MCStringRef& r_native_path)
38963896
CloseHandle(piProcInfo.hProcess);
38973897
CloseHandle(piProcInfo.hThread);
38983898
}
3899-
MCExecPoint ep(nil, nil, nil);
3900-
MCExecContext ctxt(ep);
3899+
3900+
MCExecContext ctxt(nil, nil, nil);
39013901
if (MCprocesses[index].retcode)
39023902
ctxt.SetTheResultToNumber((real64_t)MCprocesses[index].retcode);
39033903
else

engine/src/objectpropsets.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ bool MCObjectPropertySet::restrict(MCStringRef p_string)
166166
MCArrayRef t_new_props;
167167
if (!MCStringSplit(p_string, MCSTR("\n"), nil, kMCCompareExact, t_new_props))
168168
return false;
169-
uint t_size;
169+
uinteger_t t_size;
170170
t_size = MCArrayGetCount(t_new_props);
171171
for (index_t i = 0; i < t_size && t_success; i++)
172172
{

engine/src/w32dcs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ along with LiveCode. If not see <http://www.gnu.org/licenses/>. */
2222
#include "parsedef.h"
2323

2424
//#include "execpt.h"
25+
#include "exec.h"
2526
#include "dispatch.h"
2627
#include "stack.h"
2728
#include "image.h"
@@ -186,8 +187,7 @@ Boolean MCScreenDC::open()
186187
MChilitecolor.red = MChilitecolor.green = 0x0000;
187188
MChilitecolor.blue = 0x8080;
188189

189-
MCExecPoint ep;
190-
MCExecContext ctxt(ep);
190+
MCExecContext ctxt(nil, nil, nil);
191191
MCStringRef t_key;
192192
t_key = MCSTR("HKEY_CURRENT_USER\\Control Panel\\Colors\\Hilight");
193193
MCAutoValueRef t_value;

engine/src/w32dcw32.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,8 +561,7 @@ LRESULT CALLBACK MCWindowProc(HWND hwnd, UINT msg, WPARAM wParam,
561561
t_result = 0;
562562
else
563563
{
564-
MCExecPoint t_ep;
565-
MCExecContext ctxt(t_ep);
564+
MCExecContext ctxt(nil, nil, nil);
566565
MCAutoValueRef t_value;
567566
/* UNCHECKED */ MCresult -> eval(ctxt, &t_value);
568567
MCAutoStringRef t_string;

engine/src/w32theme.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,7 @@ Boolean MCNativeTheme::load()
266266
drawThemeBGEx = (DrawThemeBackgroundExPtr)GetProcAddress((HMODULE)mThemeDLL, "DrawThemeBackgroundEx");
267267

268268
uint2 i;
269-
MCExecPoint ep;
270-
MCExecContext ctxt(ep);
269+
MCExecContext ctxt(nil, nil, nil);
271270
for (i = 0; i < NMENUCOLORS; i++)
272271
{
273272
menucolors[i] = nil;

0 commit comments

Comments
 (0)