From: Andreas Arnez <arnez@linux.vnet.ibm.com>
To: Gary Benson <gbenson@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] New common function "startswith"
Date: Tue, 03 Mar 2015 15:49:00 -0000 [thread overview]
Message-ID: <877fuyxes3.fsf@br87z6lw.de.ibm.com> (raw)
In-Reply-To: <1425388224-8146-1-git-send-email-gbenson@redhat.com> (Gary Benson's message of "Tue, 3 Mar 2015 13:10:24 +0000")
On Tue, Mar 03 2015, Gary Benson wrote:
> diff --git a/gdb/common/common-utils.c b/gdb/common/common-utils.c
> index 2925dd5..5fb4af1 100644
> --- a/gdb/common/common-utils.c
> +++ b/gdb/common/common-utils.c
> @@ -151,3 +151,11 @@ savestring (const char *ptr, size_t len)
> p[len] = 0;
> return p;
> }
> +
> +/* See common-utils.h. */
> +
> +int
> +startswith (const char *s1, const char *s2)
> +{
> + return startswith (s1, s2);
> +}
> diff --git a/gdb/common/common-utils.h b/gdb/common/common-utils.h
> index 60aa030..c887b6b 100644
> --- a/gdb/common/common-utils.h
> +++ b/gdb/common/common-utils.h
> @@ -68,4 +68,9 @@ char *savestring (const char *ptr, size_t len);
>
> extern char *safe_strerror (int);
>
> +/* Return nonzero if the first strlen(S2) bytes of S1 match S2, zero
> + otherwise. */
> +
> +extern int startswith (const char *s1, const char *s2);
> +
> #endif
Hm, startswith() does not appear to be implemented in your patch. Maybe
an extern inline definition in the header file was intended?
next prev parent reply other threads:[~2015-03-03 15:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-03 13:10 Gary Benson
2015-03-03 15:49 ` Andreas Arnez [this message]
2015-03-03 16:06 ` Joel Brobecker
2015-03-03 17:16 ` Gary Benson
2015-03-03 18:34 ` Andreas Arnez
2015-03-04 9:27 ` Gary Benson
2015-03-04 16:27 ` [PATCH v2] " Gary Benson
2015-03-05 18:18 ` Joel Brobecker
2015-03-06 9:48 ` Gary Benson
2015-03-04 8:45 ` [PATCH] " Doug Evans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877fuyxes3.fsf@br87z6lw.de.ibm.com \
--to=arnez@linux.vnet.ibm.com \
--cc=gbenson@redhat.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox