Skip to content

Update from GSW-C and add declspec for dll export#173

Merged
efiring merged 1 commit intoTEOS-10:mainfrom
efiring:add_declspec
Jul 20, 2024
Merged

Update from GSW-C and add declspec for dll export#173
efiring merged 1 commit intoTEOS-10:mainfrom
efiring:add_declspec

Conversation

@efiring
Copy link
Member

@efiring efiring commented Jul 19, 2024

This is in response to geoffstanley/neutralocean#15.

Prior to this PR, direct access to the C functions via ctypes worked only on Linux and Mac. This PR makes it work on Windows. A simple test is included. The change is propagated back to GSW-C by TEOS-10/GSW-C#69.

The update from GSW-C also pulls in the new C "infunnel" function which will require significant work to wrap, either by modifying the automated wrapping machinery or by making a one-off wrapper for it. That is left for a subsequent PR.

@efiring efiring requested a review from ocefpaf July 19, 2024 20:12
@ocefpaf
Copy link
Member

ocefpaf commented Jul 20, 2024

The change is propagated back to GSW-C by TEOS-10/GSW-C#69.

I'm fine with this. Maybe we could merge TEOS-10/GSW-C#69 first and backport the test too? If you think it is too much trouble, let's merge as is.

@efiring efiring merged commit 489ba32 into TEOS-10:main Jul 20, 2024
@efiring efiring deleted the add_declspec branch July 20, 2024 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants