Skip to content

Commit

Permalink
Merge pull request #1116 from ibuclaw/vectorctype
Browse files Browse the repository at this point in the history
Add toCtype for TypeVector
  • Loading branch information
WalterBright committed Sep 13, 2012
2 parents 5a10d07 + 2b4f094 commit cecca48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mtype.h
Expand Up @@ -434,6 +434,8 @@ struct TypeVector : Type
int isZeroInit(Loc loc);
TypeInfoDeclaration *getTypeInfoDeclaration();
TypeTuple *toArgTypes();

type *toCtype();
};

struct TypeArray : TypeNext
Expand Down
5 changes: 5 additions & 0 deletions src/toctype.c
Expand Up @@ -75,6 +75,11 @@ type *TypeSArray::toCParamtype()
#endif
}

type *TypeVector::toCtype()
{
return Type::toCtype();
}

type *TypeSArray::toCtype()
{
if (!ctype)
Expand Down

0 comments on commit cecca48

Please sign in to comment.