We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Producing code from goto-files that reference signal.h causes several problems.
signal.h
Example program:
#include<signal.h> #include<stdlib.h> void sig_block(int sig) { sigset_t ss; sigemptyset(&ss); sigaddset(&ss, sig); sigprocmask(SIG_BLOCK, &ss, NULL); } int main() { sig_block(0); return 0; }
Resulting C file (produced with goto-instrument):
#include <signal.h> #ifndef NULL #define NULL ((void*)0) #endif // sig_block // file example_typedef_sigset.c line 4 void sig_block(signed int sig); signed int main() { sig_block(0); return 0; } void sig_block(signed int sig) { struct anonymous ss; sigemptyset(&ss); sigaddset(&ss, sig); sigprocmask(0, &ss, ((sigset_t *)NULL)); }
Especially the translation of sigset_t ss; to struct anonymous ss; seems to be critical (the struct anonymous is declared/defined nowhere).
sigset_t ss;
struct anonymous ss;
The text was updated successfully, but these errors were encountered:
@tautschnig: FYI
Sorry, something went wrong.
Fix included in #858.
Do not dump anonymous types from system headers
5c0cda7
Fixes: diffblue#973
b0e0c0a
No branches or pull requests
Producing code from goto-files that reference
signal.h
causes several problems.Example program:
Resulting C file (produced with goto-instrument):
Especially the translation of
sigset_t ss;
tostruct anonymous ss;
seems to be critical (the struct anonymous is declared/defined nowhere).The text was updated successfully, but these errors were encountered: