! . */
| 3700 | |
| 3701 | /*! . */ |
| 3702 | GMT_LOCAL void gmtinit_free_plot_array (struct GMT_CTRL *GMT) { |
| 3703 | if (GMT->current.plot.n_alloc) { |
| 3704 | gmt_M_free (GMT, GMT->current.plot.x); |
| 3705 | gmt_M_free (GMT, GMT->current.plot.y); |
| 3706 | gmt_M_free (GMT, GMT->current.plot.pen); |
| 3707 | } |
| 3708 | GMT->current.plot.n = GMT->current.plot.n_alloc = 0; |
| 3709 | } |
| 3710 | |
| 3711 | GMT_LOCAL void gmtinit_trim_off_any_slash_at_end (char *dir) { |
| 3712 | size_t L = strlen (dir); /* Get length of dir */ |