| 745 | } |
| 746 | |
| 747 | void msLayerAddProcessing( layerObj *layer, const char *directive ) |
| 748 | |
| 749 | { |
| 750 | layer->numprocessing++; |
| 751 | if( layer->numprocessing == 1 ) |
| 752 | layer->processing = (char **) msSmallMalloc(2*sizeof(char *)); |
| 753 | else |
| 754 | layer->processing = (char **) msSmallRealloc(layer->processing, sizeof(char*) * (layer->numprocessing+1) ); |
| 755 | layer->processing[layer->numprocessing-1] = msStrdup(directive); |
| 756 | layer->processing[layer->numprocessing] = NULL; |
| 757 | } |
| 758 | |
| 759 | char *msLayerGetProcessing( layerObj *layer, int proc_index) { |
| 760 | if (proc_index < 0 || proc_index >= layer->numprocessing) { |
no test coverage detected