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

C Code cleanup #1018

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

C Code cleanup #1018

wants to merge 9 commits into from

Conversation

trufae
Copy link
Contributor

@trufae trufae commented Mar 28, 2019

No description provided.

@trufae
Copy link
Contributor Author

trufae commented Mar 28, 2019

I was unable to run the testsuite because it have a bunch of bugs, but i won't go there in this PR because i was just going to try a hello world and end up falling in this huge cleanup. The only commit that needs review is the vm_mngr.c:dump() one.

Also, it will be good to have a coding style guideline somehow, i took some assumptions like (C uses tabs and python 4 spaces, keywords have a space before (, functions don't, operators must be surounded by spaces for readability, etc.. and i tried to be consisitent with those rules here and there, there still more arch-specific code in the jitter that needs some attention because its mixing spaces and tabs for indentation.

@serpilliere
Copy link
Contributor

Hi @trufae !
Thank you for the C clean. One remark:
In fact I am not ar EADS (and EADS has changed its name) so it may be something like:

Copyright (C) 2011-2019 Fabrice Desclaux 

Anyway, I am not sure about putting my name in every files, as some people contributed to the code ...
In fact I am not very familiar with copyright stuffs..

@trufae
Copy link
Contributor Author

trufae commented Mar 30, 2019 via email

@XVilka
Copy link
Contributor

XVilka commented Mar 5, 2020

There are many conflicts and should be rebased ;) @trufae

@serpilliere
Copy link
Contributor

Hum. Before rebasing, we have to double check the code rules applied on the code.

@XVilka
Copy link
Contributor

XVilka commented Mar 5, 2020

For the C code I recommend to setup clangformat and the check can even be added as the job in Travis, to automatically check pull requests conformity.
There is a good wrapper script make it easier - https://github.com/Sarcasm/run-clang-format
This is how it looks like with Travis:
image

@serpilliere
Copy link
Contributor

Hum interesting! We will look at that 😄

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

3 participants