1.1 --- a/templates/native/identity.c Mon Mar 06 22:29:36 2017 +0100
1.2 +++ b/templates/native/identity.c Tue Mar 07 00:28:18 2017 +0100
1.3 @@ -1,6 +1,6 @@
1.4 /* Native functions for identity operations.
1.5
1.6 -Copyright (C) 2016 Paul Boddie <paul@boddie.org.uk>
1.7 +Copyright (C) 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.8
1.9 This program is free software; you can redistribute it and/or modify it under
1.10 the terms of the GNU General Public License as published by the Free Software
1.11 @@ -26,20 +26,14 @@
1.12
1.13 /* Identity testing. */
1.14
1.15 -__attr __fn_native_identity_is_(__attr __args[])
1.16 +__attr __fn_native_identity_is_(__attr __self, __attr x, __attr y)
1.17 {
1.18 - __attr * const x = &__args[1];
1.19 - __attr * const y = &__args[2];
1.20 -
1.21 - return x->value == y->value ? __builtins___boolean_True : __builtins___boolean_False;
1.22 + return x.value == y.value ? __builtins___boolean_True : __builtins___boolean_False;
1.23 }
1.24
1.25 -__attr __fn_native_identity_is_not(__attr __args[])
1.26 +__attr __fn_native_identity_is_not(__attr __self, __attr x, __attr y)
1.27 {
1.28 - __attr * const x = &__args[1];
1.29 - __attr * const y = &__args[2];
1.30 -
1.31 - return x->value != y->value ? __builtins___boolean_True : __builtins___boolean_False;
1.32 + return x.value != y.value ? __builtins___boolean_True : __builtins___boolean_False;
1.33 }
1.34
1.35 /* Module initialisation. */