[phobos] small documentation fixes

Johannes Pfau johannespfau at googlemail.com
Tue Aug 17 05:15:40 PDT 2010


 On 16.08.2010 21:01, Shin Fujishiro wrote:
> Great, now the artifact disappeared.  Thanks!
Thanks for fixing these issues. I posted a patch to
http://d.puremagic.com/issues/show_bug.cgi?id=3554 which should make
finding such issues easier.

I also found a few more problems in comments:

std.math uses a &radix; html entity. However this entity is not part of
any html standard, I don't think it even exists.

std.random uses version(ddoc) but version=ddoc is only set in the linux
makefile but not in the win32 one. There is a 'D_Ddoc' version which is
set by dmd when generating documentation, this seems to be the better
alternative.

std.stdint is missing lots of html closing tags. There are also empty
lines in <tr>s. These empty lines produce <br>s inside the table rows
which is not allowed in html. If those lines are needed they must be
inside the td elements. The corrected html follows (4.01 Strict compatible)
------------------------------------------------------------------------
    <table border="1" cellspacing="0" cellpadding="5">
    <tr>
    <th>Exact Alias</th>
    <th>Description</th>
    <th>At Least Alias</th>
    <th>Description</th>
    <th>Fast Alias</th>
    <th>Description</th>
    </tr>
    <tr>
    <td>int8_t</td>
    <td>exactly 8 bits signed</td>
    <td>int_least8_t</td>
    <td>at least 8 bits signed</td>
    <td>int_fast8_t</td>
    <td>fast 8 bits signed</td>
    </tr><tr>
    <td>uint8_t</td>
    <td>exactly 8 bits unsigned</td>
    <td>uint_least8_t</td>
    <td>at least 8 bits unsigned</td>
    <td>uint_fast8_t</td>
    <td>fast 8 bits unsigned</td>
    </tr><tr>
    <td>int16_t</td>
    <td>exactly 16 bits signed</td>
    <td>int_least16_t</td>
    <td>at least 16 bits signed</td>
    <td>int_fast16_t</td>
    <td>fast 16 bits signed</td>
    </tr><tr>
    <td>uint16_t</td>
    <td>exactly 16 bits unsigned</td>
    <td>uint_least16_t</td>
    <td>at least 16 bits unsigned</td>
    <td>uint_fast16_t</td>
    <td>fast 16 bits unsigned</td>
    </tr><tr>
    <td>int32_t</td>
    <td>exactly 32 bits signed</td>
    <td>int_least32_t</td>
    <td>at least 32 bits signed</td>
    <td>int_fast32_t</td>
    <td>fast 32 bits signed</td>
    </tr><tr>
    <td>uint32_t</td>
    <td>exactly 32 bits unsigned</td>
    <td>uint_least32_t</td>
    <td>at least 32 bits unsigned</td>
    <td>uint_fast32_t</td>
    <td>fast 32 bits unsigned</td>
    </tr><tr>
    <td>int64_t</td>
    <td>exactly 64 bits signed</td>
    <td>int_least64_t</td>
    <td>at least 64 bits signed</td>
    <td>int_fast64_t</td>
    <td>fast 64 bits signed</td>
    </tr><tr>
    <td>uint64_t</td>
    <td>exactly 64 bits unsigned</td>
    <td>uint_least64_t</td>
    <td>at least 64 bits unsigned</td>
    <td>uint_fast64_t</td>
    <td>fast 64 bits unsigned</td>
    </tr>
    </table>

    The ptr aliases are integral types guaranteed to be large enough
    to hold a pointer without losing bits:

    <table border="1" cellspacing="0" cellpadding="5">
    <tr>
    <th>Alias</th>
    <th>Description</th>
    </tr><tr>
    <td>intptr_t</td>
    <td>signed integral type large enough to hold a pointer</td>
    </tr><tr>
    <td>uintptr_t</td>
    <td>unsigned integral type large enough to hold a pointer</td>
    </tr>
    </table>

    The max aliases are the largest integral types:

    <table border="1" cellspacing="0" cellpadding="5">
    <tr>
    <th>Alias</th>
    <th>Description</th>
    </tr><tr>
    <td>intmax_t</td>
    <td>the largest signed integral type</td>
    </tr><tr>
    <td>uintmax_t</td>
    <td>the largest unsigned integral type</td>
    </tr>
    </table>
------------------------------------------------------------------------
Phobos.d has the same problem, but I don't know how to fix that one.

-- 
Johannes Pfau

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/phobos/attachments/20100817/6bb8ce5c/attachment.html>


More information about the phobos mailing list