comparison 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
comparison
equal deleted inserted replaced
162:1856c62af24b 163:a8cd9bc1021a
261 break; 261 break;
262 default: 262 default:
263 assert (false, "Unknown size: " ~ Integer.toString (arg.tsize)); 263 assert (false, "Unknown size: " ~ Integer.toString (arg.tsize));
264 } 264 }
265 } 265 }
266 }
267 }
268 else version (LLVMDC)
269 {
270 static va_list get_va_arg(TypeInfo ti, ref va_list vp)
271 {
272 auto tisize = ti.tsize;
273 size_t size = tisize > size_t.sizeof ? size_t.sizeof : tisize;
274 va_list vptmp = cast(va_list)((cast(size_t)vp + size - 1) & ~(size - 1));
275 vp = vptmp + tisize;
276 return vptmp;
277 }
278
279 Arg[64] arglist = void;
280 foreach (i, arg; arguments)
281 {
282 arglist[i] = get_va_arg(arg, args);
266 } 283 }
267 } 284 }
268 else 285 else
269 { 286 {
270 Arg[64] arglist = void; 287 Arg[64] arglist = void;