Mercurial > projects > ldc
diff tango/tango/text/convert/Layout.d @ 163:a8cd9bc1021a trunk
[svn r179] lots and lots of fixes, much more of tango now compiles/works.
author | lindquist |
---|---|
date | Mon, 05 May 2008 07:36:29 +0200 |
parents | a27941d00351 |
children | 7816aafeea3c |
line wrap: on
line diff
--- a/tango/tango/text/convert/Layout.d Mon May 05 00:56:53 2008 +0200 +++ b/tango/tango/text/convert/Layout.d Mon May 05 07:36:29 2008 +0200 @@ -265,6 +265,23 @@ } } } + else version (LLVMDC) + { + static va_list get_va_arg(TypeInfo ti, ref va_list vp) + { + auto tisize = ti.tsize; + size_t size = tisize > size_t.sizeof ? size_t.sizeof : tisize; + va_list vptmp = cast(va_list)((cast(size_t)vp + size - 1) & ~(size - 1)); + vp = vptmp + tisize; + return vptmp; + } + + Arg[64] arglist = void; + foreach (i, arg; arguments) + { + arglist[i] = get_va_arg(arg, args); + } + } else { Arg[64] arglist = void;