-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
protoize most functions #55
Conversation
This is great. All K&R C in HDF4 should be converted to ANSI C. |
Can this be fixed via clang format? We have another (draft) PR where we will implement that. Hmm... It looks like clang format is profoundly confused by K&R C. I think we'll have to do this first (if we can't fix the script) and then implement standardized formatting. |
I don't think clang-format can. And gcc dropped protoize long ago. https://invisible-island.net/cproto/cproto.html appears to be in debian testing. Haven't tried it yet.
|
cproto will take some hacking to get working... I need to tell it where to find includes. But without that after doing to trickery:
|
So
|
Trying a bit more, I wasn't successful with cproto.
|
Have been skipping varargs stuff like in error handlers. There are also these to make sure I get.
and
|
- Converts old style K & R function definitions to ANSI style. - Does not change any of the headers or local file prototypes. - Does not fix some varargs
Converts old style K & R function definitions to ANSI style.
The changes are generally of this form: