Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
b3039bee
Commit
b3039bee
authored
Dec 30, 2008
by
Shawn O. Pearce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup formatting in our head files to be more consistent
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
parent
213e720c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
5 deletions
+18
-5
src/commit.h
+1
-0
src/common.h
+1
-0
src/errors.h
+2
-0
src/git/errors.h
+5
-3
src/git/fileops.h
+3
-2
src/git/thread-utils.h
+6
-0
No files found.
src/commit.h
View file @
b3039bee
#ifndef INCLUDE_commit_h__
#define INCLUDE_commit_h__
#include "git/commit.h"
#include <time.h>
...
...
src/common.h
View file @
b3039bee
...
...
@@ -4,6 +4,7 @@
#include "cc-compat.h"
#include "util.h"
#include "errors.h"
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
...
...
src/errors.h
View file @
b3039bee
#ifndef INCLUDE_errors_h__
#define INCLUDE_errors_h__
#include "git/errors.h"
#include <stdlib.h>
...
...
@@ -15,4 +16,5 @@ GIT_INLINE(void) *git_ptr_error(int code)
git_errno
=
code
;
return
NULL
;
}
#endif
src/git/errors.h
View file @
b3039bee
#ifndef INCLUDE_git_errors_h__
#define INCLUDE_git_errors_h__
#include "common.h"
#include "thread-utils.h"
/**
* @file git/errors.h
* @brief Git error handling routines and variables
* @ingroup Git
* @{
*/
#include "common.h"
#include "thread-utils.h"
GIT_BEGIN_DECL
/** The git errno. */
...
...
@@ -20,6 +21,7 @@ GIT_EXTERN(int) GIT_TLS git_errno;
* @return a string explaining the error code
*/
GIT_EXTERN
(
const
char
*
)
git_strerror
(
int
num
);
/** @} */
GIT_END_DECL
#endif
src/git/fileops.h
View file @
b3039bee
#ifndef INCLUDE_git_fileops_h__
#define INCLUDE_git_fileops_h__
#include "common.h"
/**
* @file git/fileops.h
* @brief Git platform agnostic filesystem operations
...
...
@@ -8,9 +10,8 @@
* @ingroup Git
* @{
*/
#include "common.h"
GIT_BEGIN_DECL
/**
* For each directory entry (except "." and ".."), run the function
* "fn", passing it "arg" as its first argument and the path to
...
...
src/git/thread-utils.h
View file @
b3039bee
#ifndef INCLUDE_git_thread_utils_h__
#define INCLUDE_git_thread_utils_h__
/*
* How TLS works is compiler+platform dependant
* Sources: http://en.wikipedia.org/wiki/Thread-Specific_Storage
* http://predef.sourceforge.net/precomp.html
*/
#define GIT_HAS_TLS 1
#if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) || \
defined(__xlc__) || defined(__xlC__)
# define GIT_TLS __thread
#elif defined(__INTEL_COMPILER)
# if defined(_WIN32) || defined(_WIN32_CE)
# define GIT_TLS __declspec(thread)
# else
# define GIT_TLS __thread
# endif
#elif defined(_WIN32) || defined(_WIN32_CE) || defined(__BORLANDC__)
# define GIT_TLS __declspec(thread)
#else
# undef GIT_HAS_TLS
# define GIT_TLS
/* nothing: tls vars are thread-global */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment