Mercurial > projects > ldc
diff dmd/attrib.c @ 19:788401029ecf trunk
[svn r23] * Updated to DMD 1.021
author | lindquist |
---|---|
date | Thu, 04 Oct 2007 03:42:56 +0200 |
parents | c53b6e3fe49a |
children | 0ccfae271c45 |
line wrap: on
line diff
--- a/dmd/attrib.c Thu Oct 04 01:47:53 2007 +0200 +++ b/dmd/attrib.c Thu Oct 04 03:42:56 2007 +0200 @@ -192,6 +192,28 @@ } } +int AttribDeclaration::cvMember(unsigned char *p) +{ + unsigned i; + int nwritten = 0; + int n; + Array *d = include(NULL, NULL); + + if (d) + { + for (i = 0; i < d->dim; i++) + { Dsymbol *s; + + s = (Dsymbol *)d->data[i]; + n = s->cvMember(p); + if (p) + p += n; + nwritten += n; + } + } + return nwritten; +} + int AttribDeclaration::hasPointers() { Array *d = include(NULL, NULL);