datastruct: Fix code citation typos
PATCH 1/1 datastruct: Fix code citation typos
Signed-off-by SeongJae Park <[email protected]>
--- datastruct/datastruct.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
datastruct/datastruct.tex +2 -2
@@ -1089,7 +1089,7 @@ may be freed. The \co{->ht_idx} field on line~16 indicates which of the two sets of list pointers are being used by this instantiation of the hash table, -and is used to index the \co{->hte_next[]} array in the \co{ht_bucket} +and is used to index the \co{->hte_next[]} array in the \co{ht_elem} structure on line~3. The \co{->ht_hash_private}, \co{->ht_cmp()}, \co{->ht_gethash()},
@@ -1543,7 +1543,7 @@ Otherwise, line~19 picks up a reference to the current hash table, and lines~21-24 allocate a new hash table of the desired size. If a new set of hash/key functions have been specified, these are used for the new table, otherwise those of the old table are preserved. -If line~25 detects memory-allocation failure, line~26 releases \co{->htlock} +If line~25 detects memory-allocation failure, line~26 releases \co{->ht_lock} and line~27 returns a failure indication. Line~29 starts the bucket-distribution process by installing a reference
Signature · 1 line
1.9.1
Quoted 1 line · SeongJae Park
Signed-off-by SeongJae Park <[email protected]>
Good eyes, queued and pushed!
Thanx, Paul
Quoted 29 lines
--- datastruct/datastruct.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)datastruct/datastruct.tex +2
-2@@ -1089,7 +1089,7 @@ may be freed. The \co{->ht_idx} field on line~16 indicates which of the two sets of list pointers are being used by this instantiation of the hash table, -and is used to index the \co{->hte_next[]} array in the \co{ht_bucket} +and is used to index the \co{->hte_next[]} array in the \co{ht_elem} structure on line~3. The \co{->ht_hash_private}, \co{->ht_cmp()}, \co{->ht_gethash()},@@ -1543,7 +1543,7 @@ Otherwise, line~19 picks up a reference to the current hash table, and lines~21-24 allocate a new hash table of the desired size. If a new set of hash/key functions have been specified, these are used for the new table, otherwise those of the old table are preserved. -If line~25 detects memory-allocation failure, line~26 releases \co{->htlock} +If line~25 detects memory-allocation failure, line~26 releases \co{->ht_lock} and line~27 returns a failure indication. Line~29 starts the bucket-distribution process by installing a referenceSignature · 1 line
1.9.1