diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2021-05-10 23:14:17 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-05-11 01:30:58 +0100 |
| commit | 14f6950bcecd2f6c254ab3108b0ac8b267983713 (patch) | |
| tree | db9055ccbba9bc4a7e920eac4d575fd6a4699c6d /src/buffer.h | |
| parent | d525e063ba4e478cc4afac4cdf60f7acd989dbf2 (diff) | |
| download | libgit2-14f6950bcecd2f6c254ab3108b0ac8b267983713.tar.gz | |
buf: bom enum is in the buf namespace
Instead of a `git_bom_t` that a `git_buf` function returns, let's keep
it `git_buf_bom_t`.
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/buffer.h b/src/buffer.h index e75ecc15c..d043ed626 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -18,16 +18,16 @@ */ typedef enum { - GIT_BOM_NONE = 0, - GIT_BOM_UTF8 = 1, - GIT_BOM_UTF16_LE = 2, - GIT_BOM_UTF16_BE = 3, - GIT_BOM_UTF32_LE = 4, - GIT_BOM_UTF32_BE = 5 -} git_bom_t; + GIT_BUF_BOM_NONE = 0, + GIT_BUF_BOM_UTF8 = 1, + GIT_BUF_BOM_UTF16_LE = 2, + GIT_BUF_BOM_UTF16_BE = 3, + GIT_BUF_BOM_UTF32_LE = 4, + GIT_BUF_BOM_UTF32_BE = 5 +} git_buf_bom_t; typedef struct { - git_bom_t bom; /* BOM found at head of text */ + git_buf_bom_t bom; /* BOM found at head of text */ unsigned int nul, cr, lf, crlf; /* NUL, CR, LF and CRLF counts */ unsigned int printable, nonprintable; /* These are just approximations! */ } git_buf_text_stats; @@ -293,7 +293,7 @@ extern int git_buf_common_prefix(git_buf *buf, const git_strarray *strs); * @param buf Buffer in which to check the first bytes for a BOM * @return Number of bytes of BOM data (or 0 if no BOM found) */ -extern int git_buf_detect_bom(git_bom_t *bom, const git_buf *buf); +extern int git_buf_detect_bom(git_buf_bom_t *bom, const git_buf *buf); /** * Gather stats for a piece of text |
