Dsymbols *Dsymbol::arraySyntaxCopy(Dsymbols *a) { Dsymbols *b = NULL; if (a) { b = a->copy(); for (size_t i = 0; i < b->dim; i++) { Dsymbol *s = (*b)[i]; s = s->syntaxCopy(NULL); (*b)[i] = s; } } return b; }
Array *Dsymbol::arraySyntaxCopy(Array *a) { Array *b = NULL; if (a) { b = a->copy(); for (int i = 0; i < b->dim; i++) { Dsymbol *s = (Dsymbol *)b->data[i]; s = s->syntaxCopy(NULL); b->data[i] = (void *)s; } } return b; }