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

Another batch of type and language trivia for c++ #3022

Merged
merged 8 commits into from
Apr 5, 2024

Conversation

pmatilai
Copy link
Member

@pmatilai pmatilai commented Apr 5, 2024

No description provided.

ARGV_const_t is defined the way it is for compatibility with exec*(),
which expects "char *argv[]" arguments, as explained in eg
https://pubs.opengroup.org/onlinepubs/9699919799/functions/exec.html

Since that const mismatch is inherently unfixable, fix the place that we
can - the pointers to string literals in our structs - and cast away
what we cannot hope to fix.
Capital .C is sometimes used for C++ which this file certainly is not...
This allows macro tricks to match the type, avoiding the need to cast.
@pmatilai pmatilai changed the title Another batch of type trivia for c++ Another batch of type and language trivia for c++ Apr 5, 2024
@pmatilai pmatilai merged commit 5b1cb92 into rpm-software-management:master Apr 5, 2024
1 check passed
@pmatilai pmatilai deleted the typeclean2-pr branch April 5, 2024 13:16
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.

None yet

1 participant