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

Split out declarations and definitions into .h and .c #153

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Bengreen
Copy link

@Bengreen Bengreen commented Jun 8, 2016

Current C code has some of the prototypes inside or at the beginning of the .c files.

I have found that this causes some errors where functions had their return types implicity assumed later to be found out that this was wrong resulting in a SEGV. This occurred when modifying the c code and not realising that you have to manually add prototypes for all functions you wish to use at the beginning of the source you are editing.

I have created .h files for all the .c files and moved all non-static prototypes into them.

This should make future editing of c code much easier.

@galuszkak
Copy link
Collaborator

Hi @Bengreen , I see that this PR has also changes from #154 and #152 .
Could You seperate changes with *.h and *.c into seperate branch, so it has only this changes not the others?

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.

2 participants