aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorMarkus Deuling <deuling@de.ibm.com>2008-01-18 09:12:19 +0000
committerMarkus Deuling <deuling@de.ibm.com>2008-01-18 09:12:19 +0000
commit1e5e79d0ce60af39979b37292669ec6dae3a9975 (patch)
treefe0c4d35cc8cdbbad853933280011f638bcded9f /gdb/defs.h
parenta1632360f3f7cd26b3dabb3f986fbd42eba79a95 (diff)
downloadgdb-1e5e79d0ce60af39979b37292669ec6dae3a9975.zip
gdb-1e5e79d0ce60af39979b37292669ec6dae3a9975.tar.gz
gdb-1e5e79d0ce60af39979b37292669ec6dae3a9975.tar.bz2
* 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.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 85778cb..b0d07e7 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);