# HG changeset patch # User Paul Boddie # Date 1636847381 -3600 # Node ID e3dbe6f334db928ef8e4aba6fc535ca5f24169e3 # Parent 0ec288e54b7a5c3cb64296a56edb4b6ab2ce9a71 Minor naming and comment adjustments. diff -r 0ec288e54b7a -r e3dbe6f334db templates/native/limits.c --- a/templates/native/limits.c Sun Nov 14 00:37:02 2021 +0100 +++ b/templates/native/limits.c Sun Nov 14 00:49:41 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 0ec288e54b7a -r e3dbe6f334db templates/native/list.c --- a/templates/native/list.c Sun Nov 14 00:37:02 2021 +0100 +++ b/templates/native/list.c Sun Nov 14 00:49:41 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 0ec288e54b7a -r e3dbe6f334db templates/native/list.h --- a/templates/native/list.h Sun Nov 14 00:37:02 2021 +0100 +++ b/templates/native/list.h Sun Nov 14 00:49:41 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);