1.1 --- a/templates/native/str.c Sat Nov 06 17:06:01 2021 +0100
1.2 +++ b/templates/native/str.c Sun Nov 07 01:18:51 2021 +0100
1.3 @@ -28,7 +28,7 @@
1.4
1.5 /* String operations. */
1.6
1.7 -__attr __fn_native_str_str_add(__attr __self, __attr _data, __attr other, __attr _size, __attr othersize)
1.8 +__attr __fn_native_str_str_add(__attr __stack, __attr __self, __attr _data, __attr other, __attr _size, __attr othersize)
1.9 {
1.10 /* _data, other interpreted as string.__data__ */
1.11 char *s = _data.strvalue;
1.12 @@ -45,7 +45,7 @@
1.13 return __new_str(r, n);
1.14 }
1.15
1.16 -__attr __fn_native_str_str_chr(__attr __self, __attr _data)
1.17 +__attr __fn_native_str_str_chr(__attr __stack, __attr __self, __attr _data)
1.18 {
1.19 /* data interpreted as int */
1.20 int n = __TOINT(_data);
1.21 @@ -55,7 +55,7 @@
1.22 return __new_str(s, 1);
1.23 }
1.24
1.25 -__attr __fn_native_str_str_lt(__attr __self, __attr _data, __attr other)
1.26 +__attr __fn_native_str_str_lt(__attr __stack, __attr __self, __attr _data, __attr other)
1.27 {
1.28 /* _data, other interpreted as string.__data__ */
1.29 char *s = _data.strvalue;
1.30 @@ -65,7 +65,7 @@
1.31 return strcmp(s, o) < 0 ? __builtins___boolean_True : __builtins___boolean_False;
1.32 }
1.33
1.34 -__attr __fn_native_str_str_gt(__attr __self, __attr _data, __attr other)
1.35 +__attr __fn_native_str_str_gt(__attr __stack, __attr __self, __attr _data, __attr other)
1.36 {
1.37 /* _data, other interpreted as string.__data__ */
1.38 char *s = _data.strvalue;
1.39 @@ -75,7 +75,7 @@
1.40 return strcmp(s, o) > 0 ? __builtins___boolean_True : __builtins___boolean_False;
1.41 }
1.42
1.43 -__attr __fn_native_str_str_eq(__attr __self, __attr _data, __attr other)
1.44 +__attr __fn_native_str_str_eq(__attr __stack, __attr __self, __attr _data, __attr other)
1.45 {
1.46 /* _data, other interpreted as string.__data__ */
1.47 char *s = _data.strvalue;
1.48 @@ -85,20 +85,20 @@
1.49 return strcmp(s, o) == 0 ? __builtins___boolean_True : __builtins___boolean_False;
1.50 }
1.51
1.52 -__attr __fn_native_str_str_ord(__attr __self, __attr _data)
1.53 +__attr __fn_native_str_str_ord(__attr __stack, __attr __self, __attr _data)
1.54 {
1.55 /* _data interpreted as string.__data__ */
1.56 char *s = _data.strvalue;
1.57
1.58 - return __new_int((__int) s[0]);
1.59 + return __new_int(__stack, (__int) s[0]);
1.60 }
1.61
1.62 -__attr __fn_native_str_str_size(__attr __self, __attr _size)
1.63 +__attr __fn_native_str_str_size(__attr __stack, __attr __self, __attr _size)
1.64 {
1.65 - return __new_int(_size.sizevalue);
1.66 + return __new_int(__stack, _size.sizevalue);
1.67 }
1.68
1.69 -__attr __fn_native_str_str_substr(__attr __self, __attr _data, __attr start, __attr end, __attr step)
1.70 +__attr __fn_native_str_str_substr(__attr __stack, __attr __self, __attr _data, __attr start, __attr end, __attr step)
1.71 {
1.72 /* _data interpreted as string.__data__ */
1.73 char *s = _data.strvalue, *sub;