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

Const / comment feature and some minor cleanups. #87

Merged
merged 9 commits into from
Aug 20, 2018
Merged

Const / comment feature and some minor cleanups. #87

merged 9 commits into from
Aug 20, 2018

Conversation

lundmark
Copy link
Collaborator

@lundmark lundmark commented Aug 3, 2018

Hi,

I wanted to make these into separate PR's but apparently you can't have multiple commits in your fork and create separate PR's from them. Sorry about that. Fortunately two of these commits are really simple (only cleanups).

This is the const and comment-options that we talked about. I know that the const-feature isn't the exact implementation that we had discussed (it uses a flag instead of parses it from the type declaration). But I I think it's probably better if you handle the parsing. If you think that I should fix it, just let me know and I'll get on it.

The comment-feature isn't fully unit-tested, and I didn't throw it into one of the type libraries (only tried it locally on my type library) and it seems to work fine. Maybe I should add it to each of the different features that support it just so that the code is run?

Cheers,
Simon

lundmark and others added 4 commits August 3, 2018 13:29
Removed unneccessary includes and changed malloc/free to use dl internal allocator.
Types, enums, members and unions now support the tag "comment" which is a string that is prepended before the enum/member/type/union declaration.

Members now also support a "const" tag where you can set it to "false" (boolean) to make the pointer non-const.
@lundmark lundmark requested a review from wc-duck August 3, 2018 11:42
I missed copying in the include/ directory (for the dl_reflect.h) when moving over my changes to git. Plus there had been some changes that I didn't notice when merging so I had to clean those up as well.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling 105aea2 on lundmark:master into fbbf910 on wc-duck:master.

@lundmark lundmark merged commit 999d470 into wc-duck:master Aug 20, 2018
@wc-duck
Copy link
Owner

wc-duck commented Aug 20, 2018

I don't like merging PR:s to master with outstanding comments/issues :(

@lundmark
Copy link
Collaborator Author

Sorry I never saw any comments/issues made that were tagged with this PR. Fixes are incoming for the allocator-issue.

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.

3 participants