mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
Fix lying comment, pick control flow nit (r=lumpy,a=jack).
This commit is contained in:
parent
bbd55c2f87
commit
b117e30fa4
@ -344,7 +344,7 @@ JS_DHashTableEnumerate(JSDHashTable *table, JSDHashEnumerator etor, void *arg)
|
||||
table->entryCount--;
|
||||
}
|
||||
if (op & JS_DHASH_STOP)
|
||||
return j;
|
||||
break;
|
||||
}
|
||||
entryAddr += entrySize;
|
||||
}
|
||||
|
@ -243,7 +243,9 @@ JS_DHashTableInit(JSDHashTable *table, JSDHashTableOps *ops, void *data,
|
||||
|
||||
/*
|
||||
* Finalize table's data, free its entry storage using table->ops->freeTable,
|
||||
* and zero all of *table.
|
||||
* and leave its members unchanged from their last live values (which leaves
|
||||
* pointers dangling). If you want to burn cycles clearing table, it's up to
|
||||
* your code to call memset.
|
||||
*/
|
||||
extern JS_PUBLIC_API(void)
|
||||
JS_DHashTableFinish(JSDHashTable *table);
|
||||
|
Loading…
Reference in New Issue
Block a user