| 532 | GMT_LOCAL void gmtapi_get_val_char (union GMT_UNIVECTOR *u, uint64_t row, double *val) { *val = u->sc1[row]; } |
| 533 | |
| 534 | GMT_LOCAL inline GMT_putfunction gmtapi_select_put_function (struct GMTAPI_CTRL *API, unsigned int type) { |
| 535 | switch (type) { /* Use type to select the correct put function with which to place a value in the union */ |
| 536 | case GMT_DOUBLE: return (gmtapi_put_val_double); break; |
| 537 | case GMT_FLOAT: return (gmtapi_put_val_float); break; |
| 538 | case GMT_ULONG: return (gmtapi_put_val_ulong); break; |
| 539 | case GMT_LONG: return (gmtapi_put_val_long); break; |
| 540 | case GMT_UINT: return (gmtapi_put_val_uint); break; |
| 541 | case GMT_INT: return (gmtapi_put_val_int); break; |
| 542 | case GMT_USHORT: return (gmtapi_put_val_ushort); break; |
| 543 | case GMT_SHORT: return (gmtapi_put_val_short); break; |
| 544 | case GMT_UCHAR: return (gmtapi_put_val_uchar); break; |
| 545 | case GMT_CHAR: return (gmtapi_put_val_char); break; |
| 546 | default: |
| 547 | GMT_Report (API, GMT_MSG_ERROR, "Internal error in gmtapi_select_put_function: Passed bad type (%d), Will be unable to place binary data\n", type); |
| 548 | return NULL; |
| 549 | break; |
| 550 | } |
| 551 | } |
| 552 | |
| 553 | GMT_LOCAL inline GMT_getfunction gmtapi_select_get_function (struct GMTAPI_CTRL *API, unsigned int type) { |
| 554 | switch (type) { /* Use type to select the correct get function with which to extract a value from the union */ |
no test coverage detected