@@ -2,18 +2,18 @@ module com.livecode.arithmetic
22
33--
44
5- foreign handler ExecAddIntegerToInteger (in Value, inout Target) as undefined binds to "<builtin>"
6- foreign handler ExecAddRealToReal (in Value as real , inout Target as real ) as undefined binds to "<builtin>"
7- foreign handler ExecAddNumberToNumber (in Value as number, inout Target as number) as undefined binds to "<builtin>"
8- foreign handler ExecSubtractIntegerFromInteger (in Value as integer , inout Target as integer ) as undefined binds to "<builtin>"
9- foreign handler ExecSubtractRealFromReal (in Value as real, inout Target as real) as undefined binds to "<builtin>"
10- foreign handler ExecSubtractNumberFromNumber (in Value as number, inout Target as number) as undefined binds to "<builtin>"
11- foreign handler ExecMultiplyIntegerByInteger (in Value as integer , inout Target as integer ) as undefined binds to "<builtin>"
12- foreign handler ExecMultiplyRealByReal (in Value as real , inout Target as real ) as undefined binds to "<builtin>"
13- foreign handler ExecMultiplyNumberByNumber (in Value as number, inout Target as number) as undefined binds to "<builtin>"
14- foreign handler ExecDivideIntegerByInteger (in Value as integer , inout Target as integer ) as undefined binds to "<builtin>"
15- foreign handler ExecDivideRealByReal (in Value as real , inout Target as real ) as undefined binds to "<builtin>"
16- foreign handler ExecDivideNumberByNumber (in Value as number, inout Target as number) as undefined binds to "<builtin>"
5+ foreign handler MCArithmeticExecAddIntegerToInteger (in Value as int , inout Target as int ) as undefined binds to "<builtin>"
6+ foreign handler MCArithmeticExecAddRealToReal (in Value as double , inout Target as double ) as undefined binds to "<builtin>"
7+ foreign handler MCArithmeticExecAddNumberToNumber (in Value as number, inout Target as number) as undefined binds to "<builtin>"
8+ foreign handler MCArithmeticExecSubtractIntegerFromInteger (in Value as int , inout Target as int ) as undefined binds to "<builtin>"
9+ foreign handler MCArithmeticExecSubtractRealFromReal (in Value as real, inout Target as real) as undefined binds to "<builtin>"
10+ foreign handler MCArithmeticExecSubtractNumberFromNumber (in Value as number, inout Target as number) as undefined binds to "<builtin>"
11+ foreign handler MCArithmeticExecMultiplyIntegerByInteger (in Value as int , inout Target as int ) as undefined binds to "<builtin>"
12+ foreign handler MCArithmeticExecMultiplyRealByReal (in Value as double , inout Target as double ) as undefined binds to "<builtin>"
13+ foreign handler MCArithmeticExecMultiplyNumberByNumber (in Value as number, inout Target as number) as undefined binds to "<builtin>"
14+ foreign handler MCArithmeticExecDivideIntegerByInteger (in Value as int , inout Target as int ) as undefined binds to "<builtin>"
15+ foreign handler MCArithmeticExecDivideRealByReal (in Value as double , inout Target as double ) as undefined binds to "<builtin>"
16+ foreign handler MCArithmeticExecDivideNumberByNumber (in Value as number, inout Target as number) as undefined binds to "<builtin>"
1717
1818foreign handler EvalPlusInteger(in Operand as integer, out Value as integer) as undefined binds to "<builtin>"
1919foreign handler EvalPlusReal(in Operand as real, out Value as real) as undefined binds to "<builtin>"
@@ -67,9 +67,7 @@ Value: An expression that evaluates to a number.
6767syntax AddNumberTo is statement
6868 "add" <Value: Expression> "to" <Target: Expression>
6969begin
70- ExecAddIntegerToInteger(Value, Target)
71- ExecAddRealToReal(Value, Target)
72- ExecAddNumberToNumber(Value, Target)
70+ MCArithmeticExecAddNumberToNumber(Value, Target)
7371end syntax
7472
7573
@@ -83,9 +81,9 @@ Value: An expression that evaluates to a number.
8381syntax SubtractNumberFrom is statement
8482 "subtract" <Value: Expression> "from" <Target: Expression>
8583begin
86- ExecSubtractIntegerFromInteger (Value, Target)
87- ExecSubtractRealFromReal (Value, Target)
88- ExecSubtractNumberFromNumber (Value, Target)
84+ MCArithmeticExecSubtractIntegerFromInteger (Value, Target)
85+ MCArithmeticExecSubtractRealFromReal (Value, Target)
86+ MCArithmeticExecSubtractNumberFromNumber (Value, Target)
8987end syntax
9088
9189/*
@@ -98,9 +96,9 @@ Value: An expression that evaluates to a number.
9896syntax MultiplyNumberBy is statement
9997 "multiply" <Value: Expression> "by" <Target: Expression>
10098begin
101- ExecMultiplyIntegerByInteger (Value, Target)
102- ExecMultiplyRealByReal (Value, Target)
103- ExecMultiplyNumberByNumber (Value, Target)
99+ MCArithmeticExecMultiplyIntegerByInteger (Value, Target)
100+ MCArithmeticExecMultiplyRealByReal (Value, Target)
101+ MCArithmeticExecMultiplyNumberByNumber (Value, Target)
104102end syntax
105103
106104/*
@@ -113,9 +111,9 @@ Value: An expression that evaluates to a number.
113111syntax DivideNumberBy is statement
114112 "divide" <Value: Expression> "by" <Target: Expression>
115113begin
116- ExecDivideIntegerByInteger (Value, Target)
117- ExecDivideRealByReal (Value, Target)
118- ExecDivideNumberByNumber (Value, Target)
114+ MCArithmeticExecDivideIntegerByInteger (Value, Target)
115+ MCArithmeticExecDivideRealByReal (Value, Target)
116+ MCArithmeticExecDivideNumberByNumber (Value, Target)
119117end syntax
120118
121119--
0 commit comments