This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 3/3] Remove varobj_language_string, languages and varobj_languages
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: tromey at redhat dot com, gdb-patches at sourceware dot org
- Date: Thu, 31 Oct 2013 19:30:13 +0200
- Subject: Re: [PATCH 3/3] Remove varobj_language_string, languages and varobj_languages
- Authentication-results: sourceware.org; auth=none
- References: <20131025041525 dot GC4769 at adacore dot com> <1382964489-24307-1-git-send-email-yao at codesourcery dot com> <1382964489-24307-3-git-send-email-yao at codesourcery dot com> <87txg1b54j dot fsf at fleche dot redhat dot com> <526F726B dot 5070201 at codesourcery dot com> <83y55cdnua dot fsf at gnu dot org> <5271C9C4 dot 3080808 at codesourcery dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Thu, 31 Oct 2013 11:08:52 +0800
> From: Yao Qi <yao@codesourcery.com>
> CC: <tromey@redhat.com>, <gdb-patches@sourceware.org>
>
> On 10/30/2013 12:49 AM, Eli Zaretskii wrote:
> >> +found in @ref{Supported Languages,,Supported Languages}.
> > I'm curious: why use the same string twice in @ref? What did you want
> > to accomplish?
>
> I thought @ref needs three arguments, so I use the same string twice.
No, @ref needs only one argument. What you did has only one use case:
when you want the link display something other than the name of the
pointed-to node. Then you use the text which you want displayed as
the link. Of course, that text should be always different from the
node name.
> Looks @ref{Supported Languages} works as well.
I'd be mightily surprised if it didn't ;-)
Thanks.