1.1 --- a/templates/native/limits.c Sun Nov 14 00:37:02 2021 +0100
1.2 +++ b/templates/native/limits.c Sun Nov 14 00:49:41 2021 +0100
1.3 @@ -1,6 +1,6 @@
1.4 /* Native functions for limit definition.
1.5
1.6 -Copyright (C) 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.7 +Copyright (C) 2016, 2017, 2021 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 @@ -27,6 +27,8 @@
1.12
1.13 /* Limit definition. */
1.14
1.15 +/* NOTE: Could have statically allocated limits. */
1.16 +
1.17 __attr __fn_native_limits_get_maxint(__attr __self)
1.18 {
1.19 return __new_int(__MAXINT);
2.1 --- a/templates/native/list.c Sun Nov 14 00:37:02 2021 +0100
2.2 +++ b/templates/native/list.c Sun Nov 14 00:49:41 2021 +0100
2.3 @@ -88,7 +88,7 @@
2.4 return __builtins___none_None;
2.5 }
2.6
2.7 -__attr __fn_native_list_list_len(__attr self, __attr _data)
2.8 +__attr __fn_native_list_list_len(__attr __self, __attr _data)
2.9 {
2.10 /* _data interpreted as list.__data__ */
2.11 __int size = _data.seqvalue->size;
3.1 --- a/templates/native/list.h Sun Nov 14 00:37:02 2021 +0100
3.2 +++ b/templates/native/list.h Sun Nov 14 00:49:41 2021 +0100
3.3 @@ -1,6 +1,6 @@
3.4 /* Native functions for list operations.
3.5
3.6 -Copyright (C) 2016, 2017 Paul Boddie <paul@boddie.org.uk>
3.7 +Copyright (C) 2016, 2017, 2021 Paul Boddie <paul@boddie.org.uk>
3.8
3.9 This program is free software; you can redistribute it and/or modify it under
3.10 the terms of the GNU General Public License as published by the Free Software
3.11 @@ -27,7 +27,7 @@
3.12 __attr __fn_native_list_list_setsize(__attr __self, __attr _data, __attr size);
3.13 __attr __fn_native_list_list_append(__attr __self, __attr self, __attr value);
3.14 __attr __fn_native_list_list_concat(__attr __self, __attr self, __attr other);
3.15 -__attr __fn_native_list_list_len(__attr self, __attr _data);
3.16 +__attr __fn_native_list_list_len(__attr __self, __attr _data);
3.17 __attr __fn_native_list_list_nonempty(__attr __self, __attr _data);
3.18 __attr __fn_native_list_list_element(__attr __self, __attr _data, __attr index);
3.19 __attr __fn_native_list_list_setelement(__attr __self, __attr _data, __attr index, __attr value);