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/status | |
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/status')
-rw-r--r-- | tests/status/status_data.h | 2 | ||||
-rw-r--r-- | tests/status/worktree.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/status/status_data.h b/tests/status/status_data.h index 8ad4235fd..09b9827f2 100644 --- a/tests/status/status_data.h +++ b/tests/status/status_data.h @@ -1,6 +1,6 @@ #include "status_helpers.h" -// A utf-8 string with 83 characters, but 249 bytes. +/* A utf-8 string with 83 characters, but 249 bytes. */ static const char *longname = "\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97"; diff --git a/tests/status/worktree.c b/tests/status/worktree.c index bb9f8ec97..7abc703db 100644 --- a/tests/status/worktree.c +++ b/tests/status/worktree.c @@ -260,7 +260,7 @@ void test_status_worktree__within_subdir(void) pathsArray.strings = paths; opts.pathspec = pathsArray; - // We committed zzz_new_dir/new_file above. It shouldn't be reported. + /* We committed zzz_new_dir/new_file above. It shouldn't be reported. */ cl_git_pass( git_status_foreach_ext(repo, &opts, cb_status__normal, &counts) ); @@ -957,7 +957,7 @@ void test_status_worktree__long_filenames(void) git_status_options opts = GIT_STATUS_OPTIONS_INIT; status_entry_counts counts = {0}; - // Create directory with amazingly long filename + /* Create directory with amazingly long filename */ sprintf(path, "empty_standard_repo/%s", longname); cl_git_pass(git_futils_mkdir_r(path, 0777)); sprintf(path, "empty_standard_repo/%s/foo", longname); |