diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-01-19 08:01:47 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-01-19 08:01:47 +0000 |
commit | 494b7ec97ed90fe6aa44e6d4cfe94554b9b5f10f (patch) | |
tree | 98b956ec422e9523d7a437d6310eed8b464d7458 /gdb/symfile.c | |
parent | 8038e1e2b1e8d83aa68a88c77ab5b58eb74e7938 (diff) | |
download | gdb-494b7ec97ed90fe6aa44e6d4cfe94554b9b5f10f.zip gdb-494b7ec97ed90fe6aa44e6d4cfe94554b9b5f10f.tar.gz gdb-494b7ec97ed90fe6aa44e6d4cfe94554b9b5f10f.tar.bz2 |
Replace STRCMP with strcmp()
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r-- | gdb/symfile.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 983db22..b0ae6e2 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -213,7 +213,7 @@ compare_symbols (const PTR s1p, const PTR s2p) s1 = (struct symbol **) s1p; s2 = (struct symbol **) s2p; - return (STRCMP (SYMBOL_SOURCE_NAME (*s1), SYMBOL_SOURCE_NAME (*s2))); + return (strcmp (SYMBOL_SOURCE_NAME (*s1), SYMBOL_SOURCE_NAME (*s2))); } /* @@ -260,18 +260,6 @@ compare_psymbols (const PTR s1p, const PTR s2p) } else { - /* Note: I replaced the STRCMP line (commented out below) - * with a simpler "strcmp()" which compares the 2 strings - * from the beginning. (STRCMP is a macro which first compares - * the initial characters, then falls back on strcmp). - * The reason is that the STRCMP line was tickling a C compiler - * bug on HP-UX 10.30, which is avoided with the simpler - * code. The performance gain from the more complicated code - * is negligible, given that we have already checked the - * initial 2 characters above. I reported the compiler bug, - * and once it is fixed the original line can be put back. RT - */ - /* return ( STRCMP (st1 + 2, st2 + 2)); */ return (strcmp (st1, st2)); } } |