MCPcopy Create free account
hub / github.com/git/git / enqueue

Function enqueue

kwset.c:330–338  ·  view source on GitHub ↗

Enqueue the trie nodes referenced from the given tree in the given queue. */

Source from the content-addressed store, hash-verified

328/* Enqueue the trie nodes referenced from the given tree in the
329 given queue. */
330static void
331enqueue (struct tree *tree, struct trie **last)
332{
333 if (!tree)
334 return;
335 enqueue(tree->llink, last);
336 enqueue(tree->rlink, last);
337 (*last) = (*last)->next = tree->trie;
338}
339
340/* Compute the Aho-Corasick failure function for the trie nodes referenced
341 from the given tree, given the failure function for their parent as

Callers 1

kwsprepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected