Bug 12129 – Wrong ddoc for one vararg.va_start argument

Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-02-10T04:26:00Z
Last change time
2014-02-11T10:13:37Z
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2014-02-10T04:26:30Z
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.
Comment #1 by rbanderton — 2014-02-11T10:13:37Z