1.1 --- a/templates/ops.h Mon Jan 30 22:32:38 2017 +0100
1.2 +++ b/templates/ops.h Mon Jan 30 22:34:46 2017 +0100
1.3 @@ -1,6 +1,6 @@
1.4 /* Common operations.
1.5
1.6 -Copyright (C) 2015, 2016 Paul Boddie <paul@boddie.org.uk>
1.7 +Copyright (C) 2015, 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 @@ -69,13 +69,17 @@
1.12 /* Context-related operations. */
1.13
1.14 __attr __test_context(__ref context, __attr attr);
1.15 -__attr __replace_context(__ref context, __attr attr);
1.16 __attr __update_context(__ref context, __attr attr);
1.17
1.18 #define __set_context(__ATTR) (__tmp_context = (__ATTR).value)
1.19 #define __set_accessor(__ATTR) (__tmp_value = (__ATTR).value)
1.20 #define __set_target_accessor(__ATTR) (__tmp_target_value = (__ATTR).value)
1.21
1.22 +/* Context testing for invocations. */
1.23 +
1.24 +__attr (*__get_function(__attr attr))(__attr[]);
1.25 +__attr (*__check_and_get_function(__attr attr))(__attr[]);
1.26 +
1.27 /* Basic structure tests. */
1.28
1.29 int __WITHIN(__ref obj, int pos);