! . */
| 795 | |
| 796 | /*! . */ |
| 797 | struct GMTAPI_CTRL * gmt_get_api_ptr (struct GMTAPI_CTRL *ptr) { |
| 798 | /* Clean casting of void to API pointer at start of a module |
| 799 | * If ptr is NULL we are in deep trouble... |
| 800 | */ |
| 801 | if (ptr == NULL) return_null (NULL, GMT_NOT_A_SESSION); |
| 802 | return (ptr); |
| 803 | } |
| 804 | |
| 805 | /*! gmtapi_alloc_object_array is a convenience function that, given type, allocates an array of pointers to the corresponding container */ |
| 806 | GMT_LOCAL void * gmtapi_alloc_object_array (struct GMTAPI_CTRL *API, unsigned int n_items, unsigned int type) { |
no outgoing calls