Skip to content

Enhance hashmap implementation#133

Open
dekrain wants to merge 9 commits into
mainfrom
fix-hashmap
Open

Enhance hashmap implementation#133
dekrain wants to merge 9 commits into
mainfrom
fix-hashmap

Conversation

@dekrain

@dekrain dekrain commented Nov 20, 2022

Copy link
Copy Markdown
Collaborator

This should fix #129 unless I messed up somewhere seriously.

Comment thread src/driver/compile.c
/* TODO - more data */
yfh_set(&data.files, fdata->file_name, fdata);
if (yfh_set(&data.files, fdata->file_name, fdata) != YF_OK)
abort();

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.

Could we print some error message here indicating what's happening? Or does abort do something similar?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Abort lets us break if we're debugging. For a regular user, the error would be meaningless since there's not anything that they can do anything about it.

adamhutchings
adamhutchings previously approved these changes Nov 20, 2022

@adamhutchings adamhutchings left a comment

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.

Looks good!

@adamhutchings

Copy link
Copy Markdown
Collaborator

Except for the failing tests. Do we know why?

@dekrain

dekrain commented Nov 20, 2022

Copy link
Copy Markdown
Collaborator Author

I'm debugging it

@adamhutchings

Copy link
Copy Markdown
Collaborator

Awesome, thanks so much!

@dekrain dekrain marked this pull request as ready for review November 20, 2022 17:56
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.

Fix hashmap iteration

2 participants