2003-12-07 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sun, 7 Dec 2003 17:22:29 +0000 (17:22 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 7 Dec 2003 17:22:29 +0000 (17:22 +0000)
* defs.h (DEPRECATED_STREQN, DEPRECATED_STREQ): Simplify by
directly calling strcmp equivalents.  Add disclaimer.

gdb/ChangeLog
gdb/defs.h

index c1d9b4e552f70d89d53b9138a5a31b98947a6f69..46063c8f935c01c3fe7159a6b4a8d7a8e161fc1a 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-07  Andrew Cagney  <cagney@redhat.com>
+
+       * defs.h (DEPRECATED_STREQN, DEPRECATED_STREQ): Simplify by
+       directly calling strcmp equivalents.  Add disclaimer.
+
 2003-12-06  Andrew Cagney  <cagney@redhat.com>
 
        * remote.c (remote_fetch_registers): For short packets, explicitly
index 98d151d029f830d41297b836ed7564de218754d1..9db0af2cdc2e4005499584eb67c1ea6a7104a1fa 100644 (file)
@@ -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);
This page took 0.031349 seconds and 4 git commands to generate.