-
Notifications
You must be signed in to change notification settings - Fork 28
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
Introduce HashMap for Symbol Table Management #78
Conversation
3de3ecf
to
4aa9efb
Compare
I've made a hashmap lib in C a while ago, might give it a shot? https://github.com/araujo88/chashmap |
Signed-off-by: SIGMazer <[email protected]>
4aa9efb
to
61e3fba
Compare
sure |
from what I've seen, the implementation is similar. We just have to make sure that it is as safe as possible and avoid memory leaks. Perhaps running some tests with valgrind? |
i checked it and i found set variables function leaks memory and i fix it in last commit but also create_node some how leak memory and i cannot get the cause
|
834ced0
to
1869661
Compare
Signed-off-by: SIGMazer <[email protected]>
1869661
to
964be8b
Compare
I was thinking of adding a valgrind check to the CI. It would run on every test we have. What do you think? |
That will be nice |
will we fix the memory leaks in this pr or merge it and make a new one with valgrind check? |
I think fixing the memory leaks would be beyond the scope of this PR. We can merge as it is and then tackle the memory leaks in a separate PR. I'll create a PR adding a memory management lib. |
Description
symbol_table
to accommodate the new HashMap structure.Type of Change
Checklist