| 30 | } |
| 31 | |
| 32 | lists lCopy(lists L) |
| 33 | { |
| 34 | lists N=(lists)omAlloc0Bin(slists_bin); |
| 35 | int n=L->nr; |
| 36 | if (n>=0) |
| 37 | N->Init(n+1); |
| 38 | else |
| 39 | N->Init(); |
| 40 | for(;n>=0;n--) |
| 41 | { |
| 42 | N->m[n].Copy(&L->m[n]); |
| 43 | } |
| 44 | //Print("copy list with %d -> %d elems\n",L->nr,N->nr); |
| 45 | return N; |
| 46 | } |
| 47 | |
| 48 | /*2 |
| 49 | * concat 2 lists |
no test coverage detected