| OLD | NEW |
| 1 /* This testcase is part of GDB, the GNU debugger. | 1 /* This testcase is part of GDB, the GNU debugger. |
| 2 | 2 |
| 3 Copyright 2001, 2004, 2007-2012 Free Software Foundation, Inc. | 3 Copyright 2001, 2004, 2007-2012 Free Software Foundation, Inc. |
| 4 | 4 |
| 5 Contributed by Red Hat, originally written by Jim Blandy. | 5 Contributed by Red Hat, originally written by Jim Blandy. |
| 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. |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 int i; | 116 int i; |
| 117 | 117 |
| 118 for (i = 0; i < NUM_CHARS; ++i) | 118 for (i = 0; i < NUM_CHARS; ++i) |
| 119 utf_32_string[i] = iso_8859_1_string[i] & 0xff; | 119 utf_32_string[i] = iso_8859_1_string[i] & 0xff; |
| 120 } | 120 } |
| 121 | 121 |
| 122 extern void malloc_stub (void); | 122 extern void malloc_stub (void); |
| 123 | 123 |
| 124 int main () | 124 int main () |
| 125 { | 125 { |
| 126 #ifdef usestubs | |
| 127 set_debug_traps(); | |
| 128 breakpoint(); | |
| 129 #endif | |
| 130 | 126 |
| 131 malloc_stub (); | 127 malloc_stub (); |
| 132 | 128 |
| 133 /* Initialize ascii_string. */ | 129 /* Initialize ascii_string. */ |
| 134 init_string (ascii_string, | 130 init_string (ascii_string, |
| 135 120, | 131 120, |
| 136 7, 8, 12, | 132 7, 8, 12, |
| 137 10, 13, 9, | 133 10, 13, 9, |
| 138 11, 120, 17); | 134 11, 120, 17); |
| 139 fill_run (ascii_string, 7, 26, 65); | 135 fill_run (ascii_string, 7, 26, 65); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 fill_run (ibm1047_string, 51, 8, 162); | 179 fill_run (ibm1047_string, 51, 8, 162); |
| 184 /* The digits, at least, are contiguous. */ | 180 /* The digits, at least, are contiguous. */ |
| 185 fill_run (ibm1047_string, 59, 10, 240); | 181 fill_run (ibm1047_string, 59, 10, 240); |
| 186 | 182 |
| 187 init_utf32 (); | 183 init_utf32 (); |
| 188 | 184 |
| 189 myvar = utf_32_string[7]; | 185 myvar = utf_32_string[7]; |
| 190 | 186 |
| 191 return 0; /* all strings initialized */ | 187 return 0; /* all strings initialized */ |
| 192 } | 188 } |
| OLD | NEW |