Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: gdb/common/format.h

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/common/filestuff.c ('k') | gdb/common/format.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 *);
OLDNEW
« no previous file with comments | « gdb/common/filestuff.c ('k') | gdb/common/format.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698