Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support for Record and Enumeral Types#24

Open
plpetkov wants to merge 3 commits into
davidmalcolm:master from
plpetkov:master
Open

Support for Record and Enumeral Types #24
plpetkov wants to merge 3 commits into
davidmalcolm:master from
plpetkov:master

Conversation

@plpetkov

@plpetkov plpetkov commented Sep 26, 2014

Copy link
Copy Markdown

Hi, I have been working on developing a plugin for automatic testcase generation and I am using gcc-python-plugin. Here's a few changes I made to support record and enumeral types.

I have a few more changes but will add them in a separate request.

Thanks.

tromey commented Nov 19, 2015

Copy link
Copy Markdown
Contributor

IMO this would need documentation changes and tests in order to go in (though it's not up to me...)

Anyway I wanted to note that this addresses an issue I had here: https://fedorahosted.org/gcc-python-plugin/ticket/67

tromey commented Nov 20, 2015

Copy link
Copy Markdown
Contributor

FWIW the enum patch doesn't work for me.

I had to make two changes: first, change the generate-c-tree.py patch to use PyGcc_TreeMakeListOfPairsFromTreeListChain; and second, fix gcc-python-tree.c to use that name rather than gcc_tree_list_of_pairs_from_tree_list_chain

With those two changes, it worked as I expected -- ".values" became a Python list of (name,value) pairs.

tromey commented Nov 20, 2015

Copy link
Copy Markdown
Contributor

I pushed my version of the enumeral type patch here: https://github.com/tromey/gcc-python-plugin/tree/add-values-to-EnumeralType

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /