Commits
- Commit:
ede78929bedd695e06a0c30839b9a561b5d6bc9c
- From:
- Neels Hofmeyr <neels@hofmeyr.de>
- Date:
results_test: fix output: print atom indexes, not file pos
- Commit:
c16dde50bb5e92533dcbbc513875d726f0f9dd48
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
allow diff API users to atomize files separately
This is a breaking API change (not that we care about that at this point).
This can avoid redundant work spent on atomizing a file multiple times.
There are use cases where one particular file must be compared to other
files over and over again, such as when blaming file history.
The old API gave access to both versions of the file to the atomizer just
in case a future atomizer implementation needs this. This can still be
achieved by passing a second file via the atomizer's private data pointer.
- Commit:
37f62f5d4e914963adfbf2085f5fd9294d79b497
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix another format string issue in results_test.c
Cast ARRAYLIST_IDX result to unsigned long and use %lu in the format string.
Clang 10.0.1 complained as follows:
results_test.c:148:9: warning: format specifies type 'int' but the
argument has type 'long' [-Wformat]
ARRAYLIST_IDX(c, result->chunks),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Commit:
6fc23bd07d48a9fe01f057ca64e870cd8ebd6025
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix a format string issue in results_test.c
Use explicit casts to long long and use %lld in the format string.
Clang 10.0.1 complained as follows:
results_test.c:78:9: warning: format specifies type 'int' but the
argument has type 'long long' [-Wformat]
c->left_start ? c->left_start->pos : -1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Commit:
87c313418265b477d8931182e8e9e0990db4f3ba
- From:
- Neels Hofmeyr <neels@hofmeyr.de>
- Date:
add results_test.c