Object Counts:\n"); printf("
\n"); printf("POs: %d\n"); } /* Add pointer into position pos of variable sized pointer array */ void addDO(int pos, void *insert) { static unsigned int size = 0; static unsigned int capacity = 0; float exp; int oldsize=0; int i; plotdebug("Adding DO element: %d\n", pos); // create initial chunk of memory if (size == 0) { capacity = size = 5; DOs = (data_obj_t **) malloc(size * sizeof(void *)); if (DOs == NULL) plotbail("malloc failure!"); for(i=0;i
\n", c->POs); printf("DOs: %d
\n", c->DOs); printf("LOs: %d
\n", c->LOs); printf("
\n"); if (PO) { printf("Title: %s XSize: %u YSize: %u ScaleX: %u ScaleY: %u\n", PO->title, PO->xsize, PO->ysize, PO->scalex, PO->scaley); } printf("\n"); } void printDOs() { int i; printf("
Data Objects(DO):
\n");
printf("
\n"); for (i=0;i<=count.DOs;i++) { if (DOs[i] != NULL) { printf("DO[%u]: Table %s Id: %u\n"); } void printLOs() { data_obj_list_t *DOlist = NULL; int i; printf("
\n", DOs[i]->index, DOs[i]->table, DOs[i]->id); } } printf("
Line Objects(LO):
\n");
printf("
\n"); for (i=0;i<=count.LOs;i++) { if (LOs[i] != NULL) { printf("LO[%u]: Aggr: %u Percent: %u Filled: %u Factor: %u Label: %s\n"); } #endif
\n", LOs[i]->index, LOs[i]->aggr, LOs[i]->percentile, LOs[i]->filled, LOs[i]->factor, LOs[i]->label); printf("LO[%u] contains DOs:
\n", LOs[i]->index); printf("\n"); DOlist = LOs[i]->DO_list; while (DOlist) { if (DOlist->DO != NULL) { printf("DO[%d]: Table: %s Id: %u\n"); } } printf("
\n", DOlist->DO->index, DOlist->DO->table, DOlist->DO->id); } else { plotbail("Line Object problem!"); } DOlist = DOlist->next; } printf("