diff options
author | Tom Tromey <tromey@adacore.com> | 2022-12-14 12:28:32 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-12-15 12:13:35 -0700 |
commit | 2e55fbce03a0bbee40032b486fe565bfc2423894 (patch) | |
tree | df6b897deaa72f1a366042b2cdea69c0c15a1220 /gdb/utils.c | |
parent | c573941878c15ecd8f0985cbe3fb8370abe4c807 (diff) | |
download | fsf-binutils-gdb-2e55fbce03a0bbee40032b486fe565bfc2423894.zip fsf-binutils-gdb-2e55fbce03a0bbee40032b486fe565bfc2423894.tar.gz fsf-binutils-gdb-2e55fbce03a0bbee40032b486fe565bfc2423894.tar.bz2 |
Move streq and compare_cstrings to gdbsupport
It seems to me that streq and compare_cstrings belong near the other
string utility functions in common-utils.h; and furthermore that streq
ought to be inlined. This patch makes this change.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index 5c110da..74917f2 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -3099,14 +3099,6 @@ strcmp_iw_ordered (const char *string1, const char *string2) } } -/* See utils.h. */ - -bool -streq (const char *lhs, const char *rhs) -{ - return !strcmp (lhs, rhs); -} - static void |