Skip to content

Commit

Permalink
- Changed implementation of InstHashTable to the new generic HashTable
Browse files Browse the repository at this point in the history
  - This solves some issues for the bootstrapping implementation and gives us less code to maintain


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7546 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Dec 22, 2010
1 parent 82dbb72 commit 89fc3e5
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 523 deletions.
7 changes: 7 additions & 0 deletions Compiler/FrontEnd/Absyn.mo
Expand Up @@ -1967,6 +1967,13 @@ algorithm
s := pathString2(path, ".");
end pathString;

public function pathHash "Hashes a path."
input Path path;
output Integer hash;
algorithm
hash := stringHashDjb2(pathString(path));
end pathHash;

public function optPathString "function: optPathString
Returns a path converted to string or an empty string if nothing exist"
input Option<Path> inPathOption;
Expand Down

0 comments on commit 89fc3e5

Please sign in to comment.