| OLD | NEW |
| 1 /* Parse a printf-style format string. | 1 /* Parse a printf-style format string. |
| 2 | 2 |
| 3 Copyright (C) 1986-2012 Free Software Foundation, Inc. | 3 Copyright (C) 1986-2013 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 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 44 | 44 |
| 45 struct format_piece | 45 struct format_piece |
| 46 { | 46 { |
| 47 char *string; | 47 char *string; |
| 48 enum argclass argclass; | 48 enum argclass argclass; |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 /* Return an array of printf fragments found at the given string, and | 51 /* Return an array of printf fragments found at the given string, and |
| 52 rewrite ARG with a pointer to the end of the format string. */ | 52 rewrite ARG with a pointer to the end of the format string. */ |
| 53 | 53 |
| 54 extern struct format_piece *parse_format_string (char **arg); | 54 extern struct format_piece *parse_format_string (const char **arg); |
| 55 | 55 |
| 56 /* Given a pointer to an array of format pieces, free any memory that | 56 /* Given a pointer to an array of format pieces, free any memory that |
| 57 would have been allocated by parse_format_string. */ | 57 would have been allocated by parse_format_string. */ |
| 58 | 58 |
| 59 extern void free_format_pieces (struct format_piece *frags); | 59 extern void free_format_pieces (struct format_piece *frags); |
| 60 | 60 |
| 61 /* Freeing, cast as a cleanup. */ | 61 /* Freeing, cast as a cleanup. */ |
| 62 | 62 |
| 63 extern void free_format_pieces_cleanup (void *); | 63 extern void free_format_pieces_cleanup (void *); |
| OLD | NEW |