| 928 | } |
| 929 | |
| 930 | void psl_set_txt_array (struct PSL_CTRL *PSL, const char *prefix, char *array[], int n) { |
| 931 | int i; |
| 932 | char *outtext = NULL; |
| 933 | PSL_command (PSL, "/PSL_%s [\n", prefix); |
| 934 | for (i = 0; i < n; i++) { |
| 935 | outtext = psl_prepare_text (PSL, array[i]); /* Expand escape codes and fix utf-8 characters */ |
| 936 | PSL_command (PSL, "\t(%s)\n", outtext); |
| 937 | PSL_free (outtext); |
| 938 | } |
| 939 | PSL_command (PSL, "] def\n", n); |
| 940 | } |
| 941 | |
| 942 | static void psl_set_reducedpath_arrays (struct PSL_CTRL *PSL, double *x, double *y, int npath, int *n, int *m, int *node) { |
| 943 | /* These are used by PSL_plottextline. We make sure there are no point pairs that would yield dx = dy = 0 (repeat point) |
no test coverage detected