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

Side by Side Diff: gdb/cli/cli-utils.h

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 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/cli/cli-setshow.c ('k') | gdb/cli/cli-utils.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 /* CLI utilities. 1 /* CLI utilities.
2 2
3 Copyright (c) 2011-2012 Free Software Foundation, Inc. 3 Copyright (c) 2011-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.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 be interpreted as typing a command such as "delete break" with 87 be interpreted as typing a command such as "delete break" with
88 no arguments. */ 88 no arguments. */
89 89
90 extern int number_is_in_list (char *list, int number); 90 extern int number_is_in_list (char *list, int number);
91 91
92 /* Skip leading whitespace characters in INP, returning an updated 92 /* Skip leading whitespace characters in INP, returning an updated
93 pointer. If INP is NULL, return NULL. */ 93 pointer. If INP is NULL, return NULL. */
94 94
95 extern char *skip_spaces (char *inp); 95 extern char *skip_spaces (char *inp);
96 96
97 /* A const-correct version of the above. */
98
99 extern const char *skip_spaces_const (const char *inp);
100
97 /* Skip leading non-whitespace characters in INP, returning an updated 101 /* Skip leading non-whitespace characters in INP, returning an updated
98 pointer. If INP is NULL, return NULL. */ 102 pointer. If INP is NULL, return NULL. */
99 103
100 extern char *skip_to_space (char *inp); 104 extern char *skip_to_space (char *inp);
101 105
102 /* Reverse S to the last non-whitespace character without skipping past 106 /* Reverse S to the last non-whitespace character without skipping past
103 START. */ 107 START. */
104 108
105 extern char *remove_trailing_whitespace (const char *start, char *s); 109 extern char *remove_trailing_whitespace (const char *start, char *s);
110
111 /* A helper function to extract an argument from *ARG. An argument is
112 delimited by whitespace. The return value is either NULL if no
113 argument was found, or an xmalloc'd string. */
114
115 extern char *extract_arg (char **arg);
116
117 /* A helper function that looks for an argument at the start of a
118 string. The argument must also either be at the end of the string,
119 or be followed by whitespace. Returns 1 if it finds the argument,
120 0 otherwise. If the argument is found, it updates *STR. */
121 extern int check_for_argument (char **str, char *arg, int arg_len);
122
106 #endif /* CLI_UTILS_H */ 123 #endif /* CLI_UTILS_H */
OLDNEW
« no previous file with comments | « gdb/cli/cli-setshow.c ('k') | gdb/cli/cli-utils.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698