Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kernel: use GAP's GVAR_FUNC macro #682

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

fingolfin
Copy link
Contributor

... to get rid of some repetition

This macro has been available since GAP 4.9.

Since GAp 4.12 we also have GVAR_FUNC_0ARGS, GVAR_FUNC_1ARGS, GVAR_FUNC_2ARGS, etc. which also help catch bugs (e.g. mismatch between number of arguments of the given C function and what GAP is being promised here). But since this package still tries to be compatible with GAP 4.10 I didn't make use of them.

@james-d-mitchell
Copy link
Member

Thanks for the contribution @fingolfin! Any chance you could please run clang-format on digraphs.c, and rebase onto the most recent stable-1.8 ?

@james-d-mitchell james-d-mitchell added the C language A label for issues or pull requests relating to the kernel module of the package label Aug 28, 2024
... to get rid of some repetition
@fingolfin
Copy link
Contributor Author

Done

@fingolfin
Copy link
Contributor Author

Note that this now has a conflict with the changes on master. But I have a script to regenerate this -- so if you prefer I can also change this to target latest master with the new hash function in it

@james-d-mitchell james-d-mitchell merged commit 2ab94c3 into digraphs:stable-1.8 Aug 29, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C language A label for issues or pull requests relating to the kernel module of the package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants