projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
New common function "startswith"
[deliverable/binutils-gdb.git]
/
gdb
/
m2-typeprint.c
diff --git
a/gdb/m2-typeprint.c
b/gdb/m2-typeprint.c
index 21bca390721ba8ad624f011ca514f2647000efec..be198722bf9862bd538951c9fcd53a8fc69de82c 100644
(file)
--- a/
gdb/m2-typeprint.c
+++ b/
gdb/m2-typeprint.c
@@
-538,7
+538,7
@@
m2_record_fields (struct type *type, struct ui_file *stream, int show,
/* Print the tag if it exists. */
if (TYPE_TAG_NAME (type) != NULL)
{
- if (
strncmp (TYPE_TAG_NAME (type), "$$", 2) != 0
)
+ if (
!startswith (TYPE_TAG_NAME (type), "$$")
)
{
fputs_filtered (TYPE_TAG_NAME (type), stream);
if (show > 0)
This page took
0.024735 seconds
and
4
git commands to generate.