OLD | NEW |
1 /* Character set conversion support for GDB. | 1 /* Character set conversion support for GDB. |
2 | 2 |
3 Copyright (C) 2001, 2003, 2007-2012 Free Software Foundation, Inc. | 3 Copyright (C) 2001, 2003, 2007-2012 Free Software Foundation, Inc. |
4 | 4 |
5 This file is part of GDB. | 5 This file is part of GDB. |
6 | 6 |
7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
10 (at your option) any later version. | 10 (at your option) any later version. |
11 | 11 |
12 This program is distributed in the hope that it will be useful, | 12 This program is distributed in the hope that it will be useful, |
13 but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 GNU General Public License for more details. | 15 GNU General Public License for more details. |
16 | 16 |
17 You should have received a copy of the GNU General Public License | 17 You should have received a copy of the GNU General Public License |
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 18 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
19 | 19 |
20 #include "defs.h" | 20 #include "defs.h" |
21 #include "charset.h" | 21 #include "charset.h" |
22 #include "gdbcmd.h" | 22 #include "gdbcmd.h" |
23 #include "gdb_assert.h" | 23 #include "gdb_assert.h" |
24 #include "gdb_obstack.h" | 24 #include "gdb_obstack.h" |
25 #include "gdb_wait.h" | 25 #include "gdb_wait.h" |
26 #include "charset-list.h" | 26 #include "charset-list.h" |
27 #include "vec.h" | 27 #include "vec.h" |
28 #include "environ.h" | 28 #include "environ.h" |
29 #include "arch-utils.h" | 29 #include "arch-utils.h" |
| 30 #include "gdb_vecs.h" |
30 | 31 |
31 #include <stddef.h> | 32 #include <stddef.h> |
32 #include "gdb_string.h" | 33 #include "gdb_string.h" |
33 #include <ctype.h> | 34 #include <ctype.h> |
34 | 35 |
35 #ifdef USE_WIN32API | 36 #ifdef USE_WIN32API |
36 #include <windows.h> | 37 #include <windows.h> |
37 #endif | 38 #endif |
38 | 39 |
39 | 40 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 #undef iconv_close | 98 #undef iconv_close |
98 #define iconv_close phony_iconv_close | 99 #define iconv_close phony_iconv_close |
99 | 100 |
100 #undef ICONV_CONST | 101 #undef ICONV_CONST |
101 #define ICONV_CONST const | 102 #define ICONV_CONST const |
102 | 103 |
103 /* Some systems don't have EILSEQ, so we define it here, but not as | 104 /* Some systems don't have EILSEQ, so we define it here, but not as |
104 EINVAL, because callers of `iconv' want to distinguish EINVAL and | 105 EINVAL, because callers of `iconv' want to distinguish EINVAL and |
105 EILSEQ. This is what iconv.h from libiconv does as well. Note | 106 EILSEQ. This is what iconv.h from libiconv does as well. Note |
106 that wchar.h may also define EILSEQ, so this needs to be after we | 107 that wchar.h may also define EILSEQ, so this needs to be after we |
error: old chunk mismatch |
None
OLD | NEW |