Skip to content

Rename FileToc struct to iree_file_toc_t - #5578

Merged
GMNGeoffrey merged 3 commits into
iree-org:mainfrom
GMNGeoffrey:rename-toc
Apr 23, 2021
Merged

GMNGeoffrey merged 3 commits into
iree-org:mainfrom
GMNGeoffrey:rename-toc

Conversation

@GMNGeoffrey

@GMNGeoffrey GMNGeoffrey commented Apr 22, 2021 •

Copy link
Copy Markdown
Member

In C, we've got no namespaces, and in particular in Google's internal
source, something in the toolchain links in an alternative definition
for this struct which causes extremely confusing errors.

@google-cla google-cla Bot added the cla: yes label Apr 22, 2021
@GMNGeoffrey
GMNGeoffrey requested a review from benvanik April 22, 2021 23:47
Generates a header like:
namespace iree {
struct FileToc {
struct iree_file_toc_t {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make this typedef struct { ... } iree_file_toc_t;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(or ignore for now and can be done as part of the C++->C)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah if we can do that later, that would be nice. What's the difference though?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah this means you don't have to write "struct iree_file_toc_t" every time, yes? Yeah let's save that for later :-)

@GMNGeoffrey
GMNGeoffrey merged commit 71925a4 into iree-org:main Apr 23, 2021
@GMNGeoffrey
GMNGeoffrey deleted the rename-toc branch April 23, 2021 00:02
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