Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-compiler-and-rts
compiler
Commits
4edac9f9
Commit
4edac9f9
authored
Aug 31, 2001
by
John van Groningen
Browse files
added symbol_heap parameter to newHashTable
parent
a22c3cf6
Changes
2
Hide whitespace changes
Inline
Side-by-side
frontend/hashtable.dcl
View file @
4edac9f9
...
...
@@ -10,7 +10,7 @@ import syntax
,
hte_mark
::
!
Int
// 1 for .icl modules, otherwise 0
}
newHashTable
::
*
HashTable
newHashTable
::
*
SymbolTable
->
*
HashTable
set_hte_mark
::
!
Int
!*
HashTable
->
*
HashTable
...
...
frontend/hashtable.icl
View file @
4edac9f9
...
...
@@ -24,8 +24,8 @@ import predef, syntax, StdCompare, compare_constructor
::
BoxedIdent
=
{
boxed_ident
::!
Ident
}
newHashTable
::
*
HashTable
newHashTable
=
{
hte_symbol_heap
=
newH
eap
,
hte_entries
=
{
HTE_Empty
\\
i
<-
[
0
..
dec
cHashTableSize
]
},
hte_mark
=
0
}
newHashTable
::
*
SymbolTable
->
*
HashTable
newHashTable
symbol_heap
=
{
hte_symbol_heap
=
symbol_h
eap
,
hte_entries
=
{
HTE_Empty
\\
i
<-
[
0
..
dec
cHashTableSize
]
},
hte_mark
=
0
}
set_hte_mark
::
!
Int
!*
HashTable
->
*
HashTable
set_hte_mark
hte_mark
ht
=
{
ht
&
hte_mark
=
hte_mark
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment