Mercurial > projects > ldc
changeset 65:d4a678905d5e trunk
[svn r69] forgot std.stdarg
author | lindquist |
---|---|
date | Fri, 26 Oct 2007 15:14:51 +0200 |
parents | b688ad419f8c |
children | 0c5f410d973c |
files | gen/typinf.c lphobos/std/stdarg.d |
diffstat | 2 files changed, 19 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/typinf.c Thu Oct 25 12:09:13 2007 +0200 +++ b/gen/typinf.c Fri Oct 26 15:14:51 2007 +0200 @@ -242,8 +242,8 @@ Logger::println("TypeInfoDeclaration::toObjFile()"); LOG_SCOPE; + Logger::println("type = '%s'", tinfo->toChars()); - Logger::println("typeinfo mangle: %s", mangle()); // this is a declaration of a builtin __initZ var @@ -255,9 +255,6 @@ // custom typedef else { toDt(NULL); - // this is a specialized typeinfo - //std::vector<const llvm::Type*> stypes; - //stypes.push_back( } }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lphobos/std/stdarg.d Fri Oct 26 15:14:51 2007 +0200 @@ -0,0 +1,18 @@ + +/* + * Placed in public domain. + * Written by Hauke Duden and Walter Bright + */ + +/* This is for use with variable argument lists with extern(D) linkage. */ + +module std.stdarg; + +alias void* va_list; + +T va_arg(T)(inout va_list vp) +{ + va_list vptmp = vp; + vp += T.sizeof; + return *cast(T*)vptmp; +}