# HG changeset patch # User Paul Boddie # Date 1636847417 -3600 # Node ID 64fe7b9073ac0b8ec154c54a6789703bd1632188 # Parent d1fe5052f9565f5b4e46a411079998ac95cd8e6c# Parent e3dbe6f334db928ef8e4aba6fc535ca5f24169e3 Merged changes from the default branch. diff -r d1fe5052f956 -r 64fe7b9073ac templates/native/limits.c --- a/templates/native/limits.c Sun Nov 14 00:42:49 2021 +0100 +++ b/templates/native/limits.c Sun Nov 14 00:50:17 2021 +0100 @@ -1,6 +1,6 @@ /* Native functions for limit definition. -Copyright (C) 2016, 2017 Paul Boddie +Copyright (C) 2016, 2017, 2021 Paul Boddie This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -27,6 +27,8 @@ /* Limit definition. */ +/* NOTE: Could have statically allocated limits. */ + __attr __fn_native_limits_get_maxint(__attr __self) { return __new_int(__MAXINT); diff -r d1fe5052f956 -r 64fe7b9073ac templates/native/list.c --- a/templates/native/list.c Sun Nov 14 00:42:49 2021 +0100 +++ b/templates/native/list.c Sun Nov 14 00:50:17 2021 +0100 @@ -88,7 +88,7 @@ return __builtins___none_None; } -__attr __fn_native_list_list_len(__attr self, __attr _data) +__attr __fn_native_list_list_len(__attr __self, __attr _data) { /* _data interpreted as list.__data__ */ __int size = _data.seqvalue->size; diff -r d1fe5052f956 -r 64fe7b9073ac templates/native/list.h --- a/templates/native/list.h Sun Nov 14 00:42:49 2021 +0100 +++ b/templates/native/list.h Sun Nov 14 00:50:17 2021 +0100 @@ -1,6 +1,6 @@ /* Native functions for list operations. -Copyright (C) 2016, 2017 Paul Boddie +Copyright (C) 2016, 2017, 2021 Paul Boddie This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -27,7 +27,7 @@ __attr __fn_native_list_list_setsize(__attr __self, __attr _data, __attr size); __attr __fn_native_list_list_append(__attr __self, __attr self, __attr value); __attr __fn_native_list_list_concat(__attr __self, __attr self, __attr other); -__attr __fn_native_list_list_len(__attr self, __attr _data); +__attr __fn_native_list_list_len(__attr __self, __attr _data); __attr __fn_native_list_list_nonempty(__attr __self, __attr _data); __attr __fn_native_list_list_element(__attr __self, __attr _data, __attr index); __attr __fn_native_list_list_setelement(__attr __self, __attr _data, __attr index, __attr value);