1.1 --- a/templates/progops.c Tue Jan 10 18:47:33 2017 +0100
1.2 +++ b/templates/progops.c Tue Jan 10 19:08:11 2017 +0100
1.3 @@ -103,6 +103,24 @@
1.4 #endif /* __HAVE___builtins___exception_io_EOFError */
1.5 }
1.6
1.7 +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 +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 void __raise_io_error(__attr value)
1.26 {
1.27 #ifdef __HAVE___builtins___exception_io_IOError