diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-12-07 17:22:29 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-12-07 17:22:29 +0000 |
commit | e7ebf6d61f345206115f0d9168ea13d33c555f9a (patch) | |
tree | 6723c17b0c0a1db08d3de89b141903b90dca7876 /gdb/defs.h | |
parent | 0b2e03b491aa6793bbeb5775e483dfefd1679e92 (diff) | |
download | gdb-e7ebf6d61f345206115f0d9168ea13d33c555f9a.zip gdb-e7ebf6d61f345206115f0d9168ea13d33c555f9a.tar.gz gdb-e7ebf6d61f345206115f0d9168ea13d33c555f9a.tar.bz2 |
2003-12-07 Andrew Cagney <cagney@redhat.com>
* defs.h (DEPRECATED_STREQN, DEPRECATED_STREQ): Simplify by
directly calling strcmp equivalents. Add disclaimer.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -160,8 +160,13 @@ typedef bfd_vma CORE_ADDR; making untested changes, the remaining references were deprecated rather than replaced. */ -#define DEPRECATED_STREQ(a,b) (*(a) == *(b) ? !strcmp ((a), (b)) : 0) -#define DEPRECATED_STREQN(a,b,c) (*(a) == *(b) ? !strncmp ((a), (b), (c)) : 0) +/* DISCLAIMER: cagney/2003-11-23: Simplified definition of these + macros so that they just map directly onto strcmp equivalent. I'm + not responsible for any breakage due to code that relied on the old + underlying implementation. */ + +#define DEPRECATED_STREQ(a,b) (strcmp ((a), (b)) == 0) +#define DEPRECATED_STREQN(a,b,c) (strncmp ((a), (b), (c)) == 0) /* Check if a character is one of the commonly used C++ marker characters. */ extern int is_cplus_marker (int); |