8000 Dev generic list by michaeltryby · Pull Request #454 · OpenWaterAnalytics/EPANET · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Dev generic list #454

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

Merged
merged 25 commits into from
Apr 12, 2019
Merged

Conversation

michaeltryby
Copy link

See Issue #452

Straight forward to use. Tests with no memory leaks.

@LRossman
Copy link
Collaborator

From the list of file changes I assume that this commit is just adding the generic linked list files into the project without actually using them for any of the linked lists in the actual EPANET code. Do I have that right or have you also modified types.h, project.c, rules.c, etc. to use them for the Demand, Adjacency, and Rule Clause lists?

Also, if we are placing list.c and list.h into the util directory shouldn't we do the same for the hashing and memory pool utilities for consistency. Actually my preference is to place the linked list files into the src directory so that all of the files needed to build just the EPANET engine are kept together in one place.

@michaeltryby
Copy link
Author

@LRossman you are correct I haven't modified the linked lists in EPANET yet. However, you can see from the unit tests I wrote precisely how it will work for a list of structs like we use in EPANET.

Funny, I guess I'm in favor of moving mempool and hash to the util folder. 😄

@michaeltryby michaeltryby merged commit 2404493 into OpenWaterAnalytics:dev Apr 12, 2019
@rjanke20 rjanke20 mentioned this pull request Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0