diff options
| author | Patrick Steinhardt <ps@pks.im> | 2018-06-25 11:56:52 +0200 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2018-07-13 08:25:12 +0200 |
| commit | 9994cd3f0ffcd7b28d26c82ecb6564bc4072dc2a (patch) | |
| tree | f053f0a7f44be547e208d35447623617dfbd0340 /tests/refs/normalize.c | |
| parent | f347a441c81c4e16dd54de07c5070eca8fccd5c8 (diff) | |
| download | libgit2-9994cd3f0ffcd7b28d26c82ecb6564bc4072dc2a.tar.gz | |
treewide: remove use of C++ style comments
C++ style comment ("//") are not specified by the ISO C90 standard and
thus do not conform to it. While libgit2 aims to conform to C90, we did
not enforce it until now, which is why quite a lot of these
non-conforming comments have snuck into our codebase. Do a tree-wide
conversion of all C++ style comments to the supported C style comments
to allow us enforcing strict C90 compliance in a later commit.
Diffstat (limited to 'tests/refs/normalize.c')
| -rw-r--r-- | tests/refs/normalize.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/refs/normalize.c b/tests/refs/normalize.c index f9c525edc..c692eda77 100644 --- a/tests/refs/normalize.c +++ b/tests/refs/normalize.c @@ -4,7 +4,7 @@ #include "git2/reflog.h" #include "reflog.h" -// Helpers +/* Helpers */ static void ensure_refname_normalized( unsigned int flags, const char *input_refname, @@ -149,7 +149,7 @@ void test_refs_normalize__symbolic(void) void test_refs_normalize__jgit_suite(void) { - // tests borrowed from JGit + /* tests borrowed from JGit */ /* EmptyString */ ensure_refname_invalid( @@ -316,9 +316,10 @@ void test_refs_normalize__jgit_suite(void) ensure_refname_normalized( GIT_REF_FORMAT_ALLOW_ONELEVEL, "refs/heads/}", "refs/heads/}"); - // This is valid on UNIX, but not on Windows - // hence we make in invalid due to non-portability - // + /* + * This is valid on UNIX, but not on Windows + * hence we make in invalid due to non-portability + */ ensure_refname_invalid( GIT_REF_FORMAT_ALLOW_ONELEVEL, "refs/heads/\\"); |
