| 506 | } |
| 507 | |
| 508 | static void writeDimension(FILE *stream, int indent, const char *name, int x, int y, char *bind_x, char *bind_y) { |
| 509 | writeIndent(stream, ++indent); |
| 510 | if(bind_x) fprintf(stream, "%s [%s] ", name, bind_x); |
| 511 | else fprintf(stream, "%s %d ", name, x); |
| 512 | if(bind_y) fprintf(stream, "[%s]\n", bind_y); |
| 513 | else fprintf(stream, "%d\n", y); |
| 514 | } |
| 515 | |
| 516 | static void writeExtent(FILE *stream, int indent, const char *name, rectObj extent) { |
| 517 | if(!MS_VALID_EXTENT(extent)) return; |
no test coverage detected