# HG changeset patch # User Christian Kamm # Date 1218658483 -7200 # Node ID a6c105aa00d5949fe8d09f8164bc06da094e4b65 # Parent 841589c97f20704c15150ae5f8179b961642ed67 Provided overload to TypeClass::builtinTypeInfo to return true. Shouldn't almost all types have a builtin typeinfo? Maybe it'd be better to have the default at true and only overload typedef and friends. diff -r 841589c97f20 -r a6c105aa00d5 dmd/mtype.h --- a/dmd/mtype.h Wed Aug 13 20:50:54 2008 +0200 +++ b/dmd/mtype.h Wed Aug 13 22:14:43 2008 +0200 @@ -640,6 +640,7 @@ int checkBoolean(); TypeInfoDeclaration *getTypeInfoDeclaration(); int hasPointers(); + int builtinTypeInfo(); type *toCtype(); diff -r 841589c97f20 -r a6c105aa00d5 gen/typinf.cpp --- a/gen/typinf.cpp Wed Aug 13 20:50:54 2008 +0200 +++ b/gen/typinf.cpp Wed Aug 13 22:14:43 2008 +0200 @@ -224,6 +224,11 @@ return next->isTypeBasic() != NULL; } +int TypeClass::builtinTypeInfo() +{ + return 1; +} + /* ========================================================================= */ /***************************************