-
Notifications
You must be signed in to change notification settings - Fork 7
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
Enhance hashmap implementation #133
base: main
Are you sure you want to change the base?
Conversation
@@ -396,7 +396,8 @@ static int yf_compile_files(struct yf_args * args, struct yf_compilation_data * | |||
fdata->file_name = yf_strdup(fname); | |||
fdata->parse_anew = 1; | |||
/* TODO - more data */ | |||
yfh_set(&data.files, fdata->file_name, fdata); | |||
if (yfh_set(&data.files, fdata->file_name, fdata) != YF_OK) | |||
abort(); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Except for the failing tests. Do we know why? |
I'm debugging it |
Awesome, thanks so much! |
This should fix #129 unless I messed up somewhere seriously.