示例#1
0
文件: dsymbol.c 项目: olgk/ldc
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;
}
示例#2
0
文件: dsymbol.c 项目: apriori/dsss
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;
}