109
|
1 //#include <stdio.h>
|
|
2 #include "SpuSpan.h"
|
|
3
|
|
4 void
|
|
5 SpuSpan::init(void)
|
|
6 {
|
|
7 SpanPackList *spackList;
|
|
8 SpanPack *spack;
|
|
9 //SpanPack *q = NULL, *q1 = NULL
|
|
10 SpanPack *q = 0;
|
|
11 SpanPack *q1 = 0;
|
|
12
|
|
13 for (int i = 0; i < SPE_NUM_MAX; i++) {
|
|
14 spackList = &this->list[i];
|
|
15
|
|
16 spackList->length = 0;
|
|
17 for (int j = 0; j < MAX_SIZE_SPAN_PACK; j++) {
|
|
18 spack = &spackList->packs[j];
|
|
19 q = spack->next;
|
|
20 while (q) {
|
|
21 q1 = q->next;
|
|
22 delete(q);
|
|
23 q = q1;
|
|
24 }
|
|
25 spack->init();
|
|
26 }
|
|
27 }
|
|
28 }
|