1.1 --- a/templates/native/common.h Wed Jul 11 23:53:09 2018 +0200
1.2 +++ b/templates/native/common.h Thu Jul 12 00:15:16 2018 +0200
1.3 @@ -1,6 +1,6 @@
1.4 /* Common operations for native functions.
1.5
1.6 -Copyright (C) 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.7 +Copyright (C) 2016, 2017, 2018 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 @@ -21,11 +21,15 @@
1.12
1.13 #include "types.h"
1.14
1.15 -/* Utility functions. */
1.16 +/* Utility macro for the special integer representation. */
1.17
1.18 #define __new_int(VALUE) __INTVALUE(VALUE)
1.19 +
1.20 +/* Utility functions. */
1.21 +
1.22 __attr __new_str(char *s, int size);
1.23 __attr __new_list(__fragment *f);
1.24 +__attr __new_float(double n);
1.25 __fragment *__fragment_append(__fragment *data, __attr value);
1.26
1.27 #endif /* __NATIVE_COMMON_H__ */