| 2674 | } |
| 2675 | |
| 2676 | GMT_LOCAL unsigned int gmtapi_set_method (struct GMTAPI_DATA_OBJECT *S) { |
| 2677 | /* Most objects have a one-to-one path but for vectors and matrices |
| 2678 | * we need to set the bit that correspond to their type */ |
| 2679 | unsigned int m; |
| 2680 | if (S->method < GMT_IS_DUPLICATE) return S->method; |
| 2681 | switch (S->actual_family) { |
| 2682 | case GMT_IS_VECTOR: m = S->method | GMT_VIA_VECTOR; break; |
| 2683 | case GMT_IS_MATRIX: m = S->method | GMT_VIA_MATRIX; break; |
| 2684 | default: m = S->method; |
| 2685 | } |
| 2686 | return m; |
| 2687 | } |
| 2688 | |
| 2689 | /*! . */ |
| 2690 | GMT_LOCAL int gmtapi_next_io_source (struct GMTAPI_CTRL *API, unsigned int direction) { |
no outgoing calls
no test coverage detected