Skip to content

Update iso_c_binding usage - #24

Merged
interkosmos merged 3 commits into
interkosmos:masterfrom
foxtran:fix/iso_c_binding
Sep 28, 2025
Merged

interkosmos merged 3 commits into
interkosmos:masterfrom
foxtran:fix/iso_c_binding

Conversation

@foxtran

@foxtran foxtran commented Sep 25, 2025 •

Copy link
Copy Markdown
Contributor

Here, I've replaced almost all iso_c_binding with sdl2_c_types module that provides all necessary types. Now, they are used with only (checked with -Wuse-without-only).

In many modules, I've add default private visibility of those modules' entities.

src/c_util.F90 was moved to src/sdl2/sdl2_c_types.F90. Now, it can enable unsigned support once one provide -DHAS_UNSIGNED flag. It should help to work with -funsigned flags for Flang and GCC.

Note: I did not tests examples. All changes were made in -fsyntax-only mode since I do not have SDL2

@interkosmos

Copy link
Copy Markdown
Owner

Thank you for your efforts. I’ll test it in the next days and get back to you.

@interkosmos
interkosmos merged commit a0f3415 into interkosmos:master Sep 28, 2025
0 of 6 checks passed
@toxtran

toxtran commented Sep 28, 2025

Copy link
Copy Markdown

WTF?! None of tests were passed...

@toxtran

toxtran commented Sep 28, 2025

Copy link
Copy Markdown

Why did you merge?

@interkosmos

Copy link
Copy Markdown
Owner

Sorry, I was just lazy. I’ve refactored it and then tested with gfortran 14, gfortran 15, and flang 20. LGTM.

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.

3 participants