chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
struct/assoc.[ch]: Fix some commentary typos.
[mLib]
/
struct
/
assoc.c
diff --git
a/struct/assoc.c
b/struct/assoc.c
index 9aef172835283a719ce30cc6dfbc2431c21b2fd4..27d25bf8966dd5d4b6cf77eb005c5aec5f2ad7c5 100644
(file)
--- a/
struct/assoc.c
+++ b/
struct/assoc.c
@@
-89,7
+89,8
@@
void assoc_destroy(assoc_table *t)
* the pointer returned. The flag @*f@ is cleared if the item
* couldn't be found, or set if it was.
*
* the pointer returned. The flag @*f@ is cleared if the item
* couldn't be found, or set if it was.
*
- * All the atoms used in a particular table should
+ * All the atoms used in a particular table should come from the
+ * same atom table.
*/
void *assoc_find(assoc_table *t, atom *a, size_t sz, unsigned *f)
*/
void *assoc_find(assoc_table *t, atom *a, size_t sz, unsigned *f)
@@
-115,7
+116,7
@@
void *assoc_find(assoc_table *t, atom *a, size_t sz, unsigned *f)
if (f) *f = 0;
if (!sz) return (0);
if (f) *f = 0;
if (!sz) return (0);
- /* --- Make a new asso
ic
ation --- */
+ /* --- Make a new asso
ci
ation --- */
q = x_alloc(t->t.a, sz);
q->a = a;
q = x_alloc(t->t.a, sz);
q->a = a;