[Issue 12129] New: Wrong ddoc for one vararg.va_start argument

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 10 04:26:34 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12129

           Summary: Wrong ddoc for one vararg.va_start argument
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: druntime
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2014-02-10 04:26:30 PST ---
In the file dmd2\src\druntime\src\core\vararg.d there is:

    /**
     * This function initializes the supplied argument pointer for subsequent
     * use by va_arg and va_end.
     *
     * Params:
     *  ap      = The argument pointer to initialize.
     *  paramn  = The identifier of the rightmost parameter in the function
     *            parameter list.
     */
    void va_start(T)( out va_list ap, ref T parmn )
    {
        ap = cast(va_list)( cast(void*) &parmn + ( ( T.sizeof + int.sizeof - 1
) & ~( int.sizeof - 1 ) ) );
    }


The ddoc refers to the "paramn" argument, while va_start has a "parmn"
argument.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list