1.1 --- a/templates/native/unicode.c Sat Nov 06 17:06:01 2021 +0100
1.2 +++ b/templates/native/unicode.c Sun Nov 07 01:18:51 2021 +0100
1.3 @@ -69,7 +69,7 @@
1.4
1.5 /* Unicode operations. */
1.6
1.7 -__attr __fn_native_unicode_unicode_len(__attr __self, __attr _data, __attr _size)
1.8 +__attr __fn_native_unicode_unicode_len(__attr __stack, __attr __self, __attr _data, __attr _size)
1.9 {
1.10 /* _data interpreted as string.__data__ */
1.11 char *s = _data.strvalue;
1.12 @@ -82,10 +82,10 @@
1.13 c++;
1.14
1.15 /* Return the new integer. */
1.16 - return __new_int(c);
1.17 + return __new_int(__stack, c);
1.18 }
1.19
1.20 -__attr __fn_native_unicode_unicode_ord(__attr __self, __attr _data, __attr _size)
1.21 +__attr __fn_native_unicode_unicode_ord(__attr __stack, __attr __self, __attr _data, __attr _size)
1.22 {
1.23 /* _data interpreted as string.__data__ */
1.24 char *s = _data.strvalue;
1.25 @@ -116,10 +116,10 @@
1.26 }
1.27
1.28 /* Return the new integer. */
1.29 - return __new_int(c);
1.30 + return __new_int(__stack, c);
1.31 }
1.32
1.33 -__attr __fn_native_unicode_unicode_substr(__attr __self, __attr _data, __attr _size, __attr start, __attr end, __attr step)
1.34 +__attr __fn_native_unicode_unicode_substr(__attr __stack, __attr __self, __attr _data, __attr _size, __attr start, __attr end, __attr step)
1.35 {
1.36 /* _data interpreted as string.__data__ */
1.37 char *s = _data.strvalue, *sub;
1.38 @@ -193,7 +193,7 @@
1.39 return __new_str(sub, resultsize);
1.40 }
1.41
1.42 -__attr __fn_native_unicode_unicode_unichr(__attr __self, __attr value)
1.43 +__attr __fn_native_unicode_unicode_unichr(__attr __stack, __attr __self, __attr value)
1.44 {
1.45 /* value interpreted as int */
1.46 int i = __TOINT(value);