1.1 --- a/templates/native/iconv.c Tue Jan 10 19:08:11 2017 +0100
1.2 +++ b/templates/native/iconv.c Tue Jan 10 19:21:56 2017 +0100
1.3 @@ -30,6 +30,24 @@
1.4
1.5 static const size_t OUTBUFSIZE_MIN = 16;
1.6
1.7 +static void __raise_incomplete_sequence_error(__attr value, __attr arg)
1.8 +{
1.9 +#ifdef __HAVE_posix_iconv_IncompleteSequenceError
1.10 + __attr args[3] = {{0, 0}, value, arg};
1.11 + __attr exc = __new_posix_iconv_IncompleteSequenceError(args);
1.12 + __Raise(exc);
1.13 +#endif /* __HAVE_posix_iconv_IncompleteSequenceError */
1.14 +}
1.15 +
1.16 +static void __raise_invalid_sequence_error(__attr value, __attr arg)
1.17 +{
1.18 +#ifdef __HAVE_posix_iconv_InvalidSequenceError
1.19 + __attr args[3] = {{0, 0}, value, arg};
1.20 + __attr exc = __new_posix_iconv_InvalidSequenceError(args);
1.21 + __Raise(exc);
1.22 +#endif /* __HAVE_posix_iconv_InvalidSequenceError */
1.23 +}
1.24 +
1.25 /* Character set conversion. */
1.26
1.27 __attr __fn_native_iconv_iconv(__attr __args[])
2.1 --- a/templates/progops.c Tue Jan 10 19:08:11 2017 +0100
2.2 +++ b/templates/progops.c Tue Jan 10 19:21:56 2017 +0100
2.3 @@ -103,24 +103,6 @@
2.4 #endif /* __HAVE___builtins___exception_io_EOFError */
2.5 }
2.6
2.7 -void __raise_incomplete_sequence_error(__attr value, __attr arg)
2.8 -{
2.9 -#ifdef __HAVE_posix_iconv_IncompleteSequenceError
2.10 - __attr args[3] = {{0, 0}, value, arg};
2.11 - __attr exc = __new_posix_iconv_IncompleteSequenceError(args);
2.12 - __Raise(exc);
2.13 -#endif /* __HAVE_posix_iconv_IncompleteSequenceError */
2.14 -}
2.15 -
2.16 -void __raise_invalid_sequence_error(__attr value, __attr arg)
2.17 -{
2.18 -#ifdef __HAVE_posix_iconv_InvalidSequenceError
2.19 - __attr args[3] = {{0, 0}, value, arg};
2.20 - __attr exc = __new_posix_iconv_InvalidSequenceError(args);
2.21 - __Raise(exc);
2.22 -#endif /* __HAVE_posix_iconv_InvalidSequenceError */
2.23 -}
2.24 -
2.25 void __raise_io_error(__attr value)
2.26 {
2.27 #ifdef __HAVE___builtins___exception_io_IOError
3.1 --- a/templates/progops.h Tue Jan 10 19:08:11 2017 +0100
3.2 +++ b/templates/progops.h Tue Jan 10 19:21:56 2017 +0100
3.3 @@ -40,10 +40,6 @@
3.4
3.5 void __raise_eof_error();
3.6
3.7 -void __raise_incomplete_sequence_error(__attr value, __attr arg);
3.8 -
3.9 -void __raise_invalid_sequence_error(__attr value, __attr arg);
3.10 -
3.11 void __raise_io_error(__attr value);
3.12
3.13 void __raise_memory_error();