Mercurial > projects > dil
diff trunk/src/dil/Types.d @ 409:38fccd2640eb
Added code for parsing C function pointer declarations.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Tue, 25 Sep 2007 12:15:49 +0200 |
parents | 5ebe80ce84f2 |
children | cfb3805768b6 |
line wrap: on
line diff
--- a/trunk/src/dil/Types.d Mon Sep 24 17:22:59 2007 +0200 +++ b/trunk/src/dil/Types.d Tue Sep 25 12:15:49 2007 +0200 @@ -307,6 +307,7 @@ Function, Delegate, Pointer, + CFuncPointer, Array, DotList, Identifier, @@ -467,6 +468,18 @@ } } +class CFuncPointerType : Type +{ + Parameters params; + this(Type type, Parameters params) + { + super(TID.CFuncPointer, type); + mixin(set_kind); + if (params) + this.children ~= params; + } +} + version(D2) { class ConstType : Type