[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gdb-patches
Subject:    [PATCH 3/3] Remove varobj_language_string, languages and varobj_languages
From:       eliz () gnu ! org (Eli Zaretskii)
Date:       2013-10-31 17:31:00
Message-ID: 83txfxcpqy.fsf () gnu ! org
[Download RAW message or body]

> 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.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic