diff options
| author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2010-02-12 16:50:33 +0000 |
|---|---|---|
| committer | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2010-02-28 20:09:45 +0000 |
| commit | 1e5dd57214dbec1b166c881c1c44c8930923da17 (patch) | |
| tree | 7f7103b840176225a27d40ff95c541ecaf74bb59 /src/git | |
| parent | 74eff33f8be680e821d9674ab12da3c0b76dad23 (diff) | |
| download | libgit2-1e5dd57214dbec1b166c881c1c44c8930923da17.tar.gz | |
Fix some coding style issues
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Diffstat (limited to 'src/git')
| -rw-r--r-- | src/git/commit.h | 4 | ||||
| -rw-r--r-- | src/git/common.h | 10 | ||||
| -rw-r--r-- | src/git/oid.h | 3 | ||||
| -rw-r--r-- | src/git/revwalk.h | 4 |
4 files changed, 10 insertions, 11 deletions
diff --git a/src/git/commit.h b/src/git/commit.h index 979709bdb..010f258ae 100644 --- a/src/git/commit.h +++ b/src/git/commit.h @@ -25,14 +25,14 @@ typedef struct git_commit git_commit; * pool's git_odb, or if the commit is present but is * too malformed to be parsed successfully. */ -GIT_EXTERN(git_commit*) git_commit_parse(git_revpool *pool, const git_oid *id); +GIT_EXTERN(git_commit *) git_commit_parse(git_revpool *pool, const git_oid *id); /** * Get the id of a commit. * @param commit a previously parsed commit. * @return object identity for the commit. */ -GIT_EXTERN(const git_oid*) git_commit_id(git_commit *commit); +GIT_EXTERN(const git_oid *) git_commit_id(git_commit *commit); /** @} */ GIT_END_DECL diff --git a/src/git/common.h b/src/git/common.h index 375649f87..19c6a202c 100644 --- a/src/git/common.h +++ b/src/git/common.h @@ -16,8 +16,8 @@ /** Declare a public function exported for application use. */ #ifdef __GNUC__ # define GIT_EXTERN(type) extern \ - __attribute__((visibility("default"))) \ - type + __attribute__((visibility("default"))) \ + type #else # define GIT_EXTERN(type) extern type #endif @@ -25,9 +25,9 @@ /** Declare a public TLS symbol exported for application use. */ #ifdef __GNUC__ # define GIT_EXTERN_TLS(type) extern \ - __attribute__((visibility("default"))) \ - GIT_TLS \ - type + __attribute__((visibility("default"))) \ + GIT_TLS \ + type #else # define GIT_EXTERN_TLS(type) extern GIT_TLS type #endif diff --git a/src/git/oid.h b/src/git/oid.h index f3d6802e9..fe3c74b75 100644 --- a/src/git/oid.h +++ b/src/git/oid.h @@ -20,8 +20,7 @@ GIT_BEGIN_DECL #define GIT_OID_HEXSZ (GIT_OID_RAWSZ * 2) /** Unique identity of any object (commit, tree, blob, tag). */ -typedef struct -{ +typedef struct { /** raw binary formatted id */ unsigned char id[GIT_OID_RAWSZ]; } git_oid; diff --git a/src/git/revwalk.h b/src/git/revwalk.h index efaa4277c..5fac2a68a 100644 --- a/src/git/revwalk.h +++ b/src/git/revwalk.h @@ -25,7 +25,7 @@ GIT_BEGIN_DECL * @param db the database objects are read from. * @return the new traversal handle; NULL if memory is exhausted. */ -GIT_EXTERN(git_revpool*) gitrp_alloc(git_odb *db); +GIT_EXTERN(git_revpool *) gitrp_alloc(git_odb *db); /** * Reset the traversal machinary for reuse. @@ -52,7 +52,7 @@ GIT_EXTERN(void) gitrp_hide(git_revpool *pool, git_commit *commit); * @param pool the pool to pop the commit from. * @return next commit; NULL if there is no more output. */ -GIT_EXTERN(git_commit*) gitrp_next(git_revpool *pool); +GIT_EXTERN(git_commit *) gitrp_next(git_revpool *pool); /** * Free a revwalk previously allocated. |
