diff options
author | Torsten Bögershausen <tboegi@web.de> | 2021-04-04 09:17:45 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-04-06 03:30:04 +0300 |
commit | 5020774aef3fc80c89fac2e04d4ed0aeac66cdf0 (patch) | |
tree | 336ed5ed60f186a2bf918bc810f445c92cae3c2d /compat/precompose_utf8.h | |
parent | 5c327502dbf7a27c8784c20037851206a87857c1 (diff) |
precompose_utf8: make precompose_string_if_needed() public
commit 5c327502 (MacOS: precompose_argv_prefix(), 2021-02-03) uses
the function precompose_string_if_needed() internally. It is only
used from precompose_argv_prefix() and therefore static in
compat/precompose_utf8.c
Expose this function, it will be used in the next commit.
While there, allow passing a NULL pointer, which will return NULL.
Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/precompose_utf8.h')
-rw-r--r-- | compat/precompose_utf8.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compat/precompose_utf8.h b/compat/precompose_utf8.h index d70b84665c..fea06cf28a 100644 --- a/compat/precompose_utf8.h +++ b/compat/precompose_utf8.h @@ -29,6 +29,7 @@ typedef struct { } PREC_DIR; const char *precompose_argv_prefix(int argc, const char **argv, const char *prefix); +const char *precompose_string_if_needed(const char *in); void probe_utf8_pathname_composition(void); PREC_DIR *precompose_utf8_opendir(const char *dirname); |