Re: [hackers] [libgrapheme] Apply clang format || Laslo Hunhold
> Apply clang format
Those are quite ugly
> diff --git a/src/bidirectional.c b/src/bidirectional.c
> index 6062ed6..9f1812c 100644
> --- a/src/bidirectional.c
> +++ b/src/bidirectional.c
> _AT_@ -1400,8 +1400,8 @@ preprocess(HERODOTUS_READER *r, enum grapheme_bidirectional_direction override,
> /* store resolved paragraph level in output variable */
> /* TODO use enum-type */
> *resolved = (paragraph_level == 0) ?
> - GRAPHEME_BIDIRECTIONAL_DIRECTION_LTR :
> - GRAPHEME_BIDIRECTIONAL_DIRECTION_RTL;
> + GRAPHEME_BIDIRECTIONAL_DIRECTION_LTR :
> + GRAPHEME_BIDIRECTIONAL_DIRECTION_RTL;
> }
>
> if (buf == NULL) {
> diff --git a/test/bidirectional.c b/test/bidirectional.c
> index 8ba0ac8..f2ba339 100644
> --- a/test/bidirectional.c
> +++ b/test/bidirectional.c
> _AT_@ -43,8 +43,10 @@ main(int argc, char *argv[])
> goto err;
> }
>
> - /* resolved paragraph level (if specified in the test) */
> - if (bidirectional_test[i].resolved != GRAPHEME_BIDIRECTIONAL_DIRECTION_NEUTRAL &&
> + /* resolved paragraph level (if specified in the test)
> + */
> + if (bidirectional_test[i].resolved !=
> + GRAPHEME_BIDIRECTIONAL_DIRECTION_NEUTRAL &&
> resolved != bidirectional_test[i].resolved) {
> goto err;
> }
>
Received on Fri May 26 2023 - 18:37:38 CEST
This archive was generated by hypermail 2.3.0
: Fri May 26 2023 - 18:48:39 CEST