From: Thom Brown <thom@linux.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: Alvaro Herrera <alvherre@commandprompt.com>
Cc: pgsql-docs <pgsql-docs@postgresql.org>
Subject: Re: SGML on functions
Date: Sun, 29 Aug 2010 16:54:31 +0100
Message-ID: <AANLkTinvqtDHe74rnzzGknJhZ=g++MUc+-65GjYNgO90@mail.gmail.com> (raw)
In-Reply-To: <4C7A34C70200002500034DB5@gw.wicourts.gov>
References: <AANLkTi=cLJcfZo_oMFFrRveiOyCVz1DcPhizqgLbJ7rJ@mail.gmail.com>
<1282948205-sup-3873@alvh.no-ip.org>
<4C7A34C70200002500034DB5@gw.wicourts.gov>
On 29 August 2010 16:21, Kevin Grittner <Kevin.Grittner@wicourts.gov> wrote:
> Alvaro Herrera <alvherre@commandprompt.com> wrote:
>> Excerpts from Thom Brown's message:
>
>>> <function>variance</function>(<replaceable
>>> class="parameter">expression</replaceable>)
>>>
>>> vs
>>>
>>> <function>stddev_samp(<replaceable
>>> class="parameter">expression</replaceable>)</function>
>>>
>>> Which way is correct?
>>
>> The latter I think -- see
>> http://www.docbook.org/tdg/en/html/function.html
>> (but perhaps search the actual standard)
>
> Nothing I saw at that link suggests that the parameters should be
> included within the <function> scope. If you follow links from
> there to here:
>
> http://www.docbook.org/tdg/en/html/funcsynopsis.html
>
> You find examples like this:
>
> <funcsynopsis>
> <funcprototype>
> <funcdef>void <function>qsort</function></funcdef>
> <paramdef>void *<parameter>dataptr</parameter>[]</paramdef>
> <paramdef>int <parameter>left</parameter></paramdef>
> <paramdef>int <parameter>right</parameter></paramdef>
> <paramdef>int <parameter>(* comp)</parameter>
> <funcparams>void *, void *</funcparams></paramdef>
> </funcprototype>
> </funcsynopsis>
>
But that page also says "Using FuncSynopsis for languages that are
unrelated to C may prove difficult."
Using that syntax will result in a semi-colon being placed at the end
of the function when parsed.
--
Thom Brown
Twitter: @darkixion
IRC (freenode): dark_ixion
Registered Linux user: #516935
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-docs@postgresql.org
Cc: thom@linux.com, Kevin.Grittner@wicourts.gov, alvherre@commandprompt.com
Subject: Re: SGML on functions
In-Reply-To: <AANLkTinvqtDHe74rnzzGknJhZ=g++MUc+-65GjYNgO90@mail.gmail.com>
References: <AANLkTi=cLJcfZo_oMFFrRveiOyCVz1DcPhizqgLbJ7rJ@mail.gmail.com> <1282948205-sup-3873@alvh.no-ip.org> <4C7A34C70200002500034DB5@gw.wicourts.gov> <AANLkTinvqtDHe74rnzzGknJhZ=g++MUc+-65GjYNgO90@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox