Skip to content

Commit d784baa

Browse files
author
Fraser J. Gordon
committed
Re-name a variable in a header to avoid Objective-C compile errors
1 parent 51c4cb2 commit d784baa

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

engine/src/cmds.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,11 +962,11 @@ class MCBreakPoint : public MCStatement
962962

963963
class MCCancel : public MCStatement
964964
{
965-
MCExpression *id;
965+
MCExpression *m_id;
966966
public:
967967
MCCancel()
968968
{
969-
id = NULL;
969+
m_id = NULL;
970970
}
971971
virtual ~MCCancel();
972972
virtual Parse_stat parse(MCScriptPoint &);

engine/src/cmdse.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -267,17 +267,17 @@ void MCBreakPoint::compile(MCSyntaxFactoryRef ctxt)
267267

268268
MCCancel::~MCCancel()
269269
{
270-
delete id;
270+
delete m_id;
271271
}
272272

273273
Parse_stat MCCancel::parse(MCScriptPoint &sp)
274274
{
275275
initpoint(sp);
276276
if (sp . skip_token(SP_RESET, TT_UNDEFINED, RT_PRINTING) == PS_NORMAL)
277277
{
278-
id = NULL;
278+
m_id = NULL;
279279
}
280-
else if (sp.parseexp(False, True, &id) != PS_NORMAL)
280+
else if (sp.parseexp(False, True, &m_id) != PS_NORMAL)
281281
{
282282
MCperror->add(PE_CANCEL_BADEXP, sp);
283283
return PS_ERROR;
@@ -310,13 +310,13 @@ void MCCancel::exec_ctxt(MCExecContext& ctxt)
310310
return ES_NORMAL;
311311
#endif /* MCCancel */
312312

313-
if (id == NULL)
313+
if (m_id == NULL)
314314
MCPrintingExecCancelPrinting(ctxt);
315315

316316
else
317317
{
318318
integer_t t_id;
319-
if (!ctxt . EvalExprAsInt(id, EE_CANCEL_IDNAN, t_id))
319+
if (!ctxt . EvalExprAsInt(m_id, EE_CANCEL_IDNAN, t_id))
320320
return;
321321
MCEngineExecCancelMessage(ctxt, t_id);
322322
}
@@ -326,11 +326,11 @@ void MCCancel::compile(MCSyntaxFactoryRef ctxt)
326326
{
327327
MCSyntaxFactoryBeginStatement(ctxt, line, pos);
328328

329-
if (id == nil)
329+
if (m_id == nil)
330330
MCSyntaxFactoryExecMethod(ctxt, kMCPrintingExecCancelPrintingMethodInfo);
331331
else
332332
{
333-
id -> compile(ctxt);
333+
m_id -> compile(ctxt);
334334

335335
MCSyntaxFactoryExecMethod(ctxt, kMCEngineExecCancelMessageMethodInfo);
336336
}

0 commit comments

Comments
 (0)