1.1 --- a/templates/native/locale.c Sun Feb 26 21:47:56 2017 +0100
1.2 +++ b/templates/native/locale.c Mon Feb 27 00:55:52 2017 +0100
1.3 @@ -1,6 +1,6 @@
1.4 /* Native functions for locale handling.
1.5
1.6 -Copyright (C) 2016 Paul Boddie <paul@boddie.org.uk>
1.7 +Copyright (C) 2016, 2017 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 @@ -33,7 +33,7 @@
1.12 {
1.13 __attr * const category = &__args[1];
1.14 /* category.__data__ interpreted as int */
1.15 - int cat = __load_via_object(category->value, __pos___data__).intvalue;
1.16 + int cat = __load_via_object(category->value, __ATTRPOS(__data__)).intvalue;
1.17 char *result, *out;
1.18 size_t length;
1.19
1.20 @@ -54,9 +54,9 @@
1.21 __attr * const category = &__args[1];
1.22 __attr * const value = &__args[2];
1.23 /* category.__data__ interpreted as int */
1.24 - int cat = __load_via_object(category->value, __pos___data__).intvalue;
1.25 + int cat = __load_via_object(category->value, __ATTRPOS(__data__)).intvalue;
1.26 /* value.__data__ interpreted as string */
1.27 - char *s = __load_via_object(value->value, __pos___data__).strvalue;
1.28 + char *s = __load_via_object(value->value, __ATTRPOS(__data__)).strvalue;
1.29 char *result, *out;
1.30 size_t length;
1.31