diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2014-10-10 18:06:36 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-10-10 18:06:36 +0200 |
| commit | bab92a8dcf66d93afb41c946c238841df74fff0e (patch) | |
| tree | c31f39d53be3c901d7a2e7be4d72375753c2ddce /src/tree-cache.h | |
| parent | 942a7b39edad519748456ddce97cf77a93c9babc (diff) | |
| parent | 062804570c3e25170b52f849da173f8266b5e33e (diff) | |
| download | libgit2-bab92a8dcf66d93afb41c946c238841df74fff0e.tar.gz | |
Merge pull request #2575 from cirosantilli/factor-struct-typedef
[factor] Join typedef and struct definitions in single file.
Diffstat (limited to 'src/tree-cache.h')
| -rw-r--r-- | src/tree-cache.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tree-cache.h b/src/tree-cache.h index 90c82dbbf..78017127c 100644 --- a/src/tree-cache.h +++ b/src/tree-cache.h @@ -11,7 +11,7 @@ #include "common.h" #include "git2/oid.h" -struct git_tree_cache { +typedef struct { struct git_tree_cache *parent; struct git_tree_cache **children; size_t children_count; @@ -20,9 +20,7 @@ struct git_tree_cache { git_oid oid; size_t namelen; char name[GIT_FLEX_ARRAY]; -}; - -typedef struct git_tree_cache git_tree_cache; +} git_tree_cache; int git_tree_cache_read(git_tree_cache **tree, const char *buffer, size_t buffer_size); void git_tree_cache_invalidate_path(git_tree_cache *tree, const char *path); |
