mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 09:09:13 +01:00
Reorder the file so a reader encounters code in the order they need to
understand it:
1. Overview comment explaining the two-closure comparison approach
2. Configuration globals and init_parity_config()
3. Closure algorithm (depend side): deferred_ligature_t, depend_closure_ctx_t,
check_context_satisfied, process_edges_for_tables, compute_depend_closure
4. Closure algorithm (subset side): compute_subset_closure
5. Comparison and reporting: print_test_params, compare_closures
6. Test generation infrastructure: rng helpers, get_gsub_features,
parse_unicodes/gids/features, test_params, generate_test_from_*
7. LLVMFuzzerTestOneInput
Previously the test generation infrastructure (hundreds of lines of seed and
parser code) appeared before the parity checking logic, forcing a reader to
hold a lot of context before seeing what the file was for. The forward
declaration of get_gsub_features() is also removed since it now precedes
parse_features(). No logic changes.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>