Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-10-10 20:06:36 +0400
committerCarlos Martín Nieto <cmn@dwim.me>2014-10-10 20:06:36 +0400
commitbab92a8dcf66d93afb41c946c238841df74fff0e (patch)
treec31f39d53be3c901d7a2e7be4d72375753c2ddce /include
parent942a7b39edad519748456ddce97cf77a93c9babc (diff)
parent062804570c3e25170b52f849da173f8266b5e33e (diff)
Merge pull request #2575 from cirosantilli/factor-struct-typedef
[factor] Join typedef and struct definitions in single file.
Diffstat (limited to 'include')
-rw-r--r--include/git2/diff.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/git2/diff.h b/include/git2/diff.h
index 8147fd31c..ca49a9cd9 100644
--- a/include/git2/diff.h
+++ b/include/git2/diff.h
@@ -421,15 +421,14 @@ typedef int (*git_diff_file_cb)(
/**
* Structure describing a hunk of a diff.
*/
-typedef struct git_diff_hunk git_diff_hunk;
-struct git_diff_hunk {
+typedef struct git_diff_hunk {
int old_start; /**< Starting line number in old_file */
int old_lines; /**< Number of lines in old_file */
int new_start; /**< Starting line number in new_file */
int new_lines; /**< Number of lines in new_file */
size_t header_len; /**< Number of bytes in header text */
char header[128]; /**< Header text, NUL-byte terminated */
-};
+} git_diff_hunk;
/**
* When iterating over a diff, callback that will be made per hunk.
@@ -469,8 +468,7 @@ typedef enum {
/**
* Structure describing a line (or data span) of a diff.
*/
-typedef struct git_diff_line git_diff_line;
-struct git_diff_line {
+typedef struct git_diff_line {
char origin; /**< A git_diff_line_t value */
int old_lineno; /**< Line number in old file or -1 for added line */
int new_lineno; /**< Line number in new file or -1 for deleted line */
@@ -478,7 +476,7 @@ struct git_diff_line {
size_t content_len; /**< Number of bytes of data */
git_off_t content_offset; /**< Offset in the original file to the content */
const char *content; /**< Pointer to diff text, not NUL-byte terminated */
-};
+} git_diff_line;
/**
* When iterating over a diff, callback that will be made per text diff