diff options
author | Markus Deuling <deuling@de.ibm.com> | 2008-01-18 09:12:19 +0000 |
---|---|---|
committer | Markus Deuling <deuling@de.ibm.com> | 2008-01-18 09:12:19 +0000 |
commit | a1f5383a6e6630a882aab5557eca39d5c963a27c (patch) | |
tree | 5da0bc5d9a1ee6d40b8647855585cb3cb1ff63bc /gdb/defs.h | |
parent | 76c1408a41208166b54858bf763809c8039e1ec1 (diff) | |
download | gdb-a1f5383a6e6630a882aab5557eca39d5c963a27c.tar.gz |
* jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
function calls.
* m2-exp.y (yylex): Likewise.
* objc-exp.y (yylex): Likewise.
* defs.h (DEPRECATED_STREQN): Remove.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/gdb/defs.h b/gdb/defs.h index 85778cbf81d..b0d07e7c2b7 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -124,37 +124,6 @@ typedef bfd_vma CORE_ADDR; #define max(a, b) ((a) > (b) ? (a) : (b)) #endif -/* Macros to do string compares. - - NOTE: cagney/2000-03-14: - - While old code can continue to refer to these macros, new code is - probably better off using strcmp() directly vis: ``strcmp() == 0'' - and ``strcmp() != 0''. - - This is because modern compilers can directly inline strcmp() - making the original justification for these macros - avoid function - call overhead by pre-testing the first characters - (``*X==*Y?...:0'') - redundant. - - ``Even if [...] testing the first character does have a modest - performance improvement, I'd rather that whenever a performance - issue is found that we spend the effort on algorithmic - optimizations than micro-optimizing.'' J.T. */ - -/* NOTE: cagney/2003-11-23: All instances of STREQ[N] covered by - testing GDB on a stabs system have been replaced by equivalent - str[n]cmp calls. To avoid the possability of introducing bugs when - making untested changes, the remaining references were deprecated - rather than replaced. */ - -/* 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_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); |