gdb: Make startswith return a bool
gdb/ChangeLog: * gdbsupport/common-utils.h (startswith): Change return type to bool. Change-Id: I1c11b9bb7f89b3885c1bb55097adb5be6d333ad4
This commit is contained in:
parent
39ef2f6256
commit
2377111731
|
@ -1,3 +1,8 @@
|
|||
2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
|
||||
|
||||
* gdbsupport/common-utils.h (startswith): Change return type to
|
||||
bool.
|
||||
|
||||
2019-10-19 Christian Biesinger <cbiesinger@google.com>
|
||||
|
||||
* bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
|
||||
|
|
|
@ -110,10 +110,9 @@ std::string extract_string_maybe_quoted (const char **arg);
|
|||
|
||||
extern char *safe_strerror (int);
|
||||
|
||||
/* Return non-zero if the start of STRING matches PATTERN, zero
|
||||
otherwise. */
|
||||
/* Return true if the start of STRING matches PATTERN, false otherwise. */
|
||||
|
||||
static inline int
|
||||
static inline bool
|
||||
startswith (const char *string, const char *pattern)
|
||||
{
|
||||
return strncmp (string, pattern, strlen (pattern)) == 0;
|
||||
|
|
Loading…
Reference in New Issue