mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-28 22:40:24 +00:00
2003-12-07 Andrew Cagney <cagney@redhat.com>
* defs.h (DEPRECATED_STREQN, DEPRECATED_STREQ): Simplify by directly calling strcmp equivalents. Add disclaimer.
This commit is contained in:
parent
0b2e03b491
commit
e7ebf6d61f
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user