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
13c3bc9a
Commit
13c3bc9a
authored
Jan 27, 2017
by
Patrick Steinhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmap: remove GIT__USE_STRMAP macro
parent
a13cfd2a
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
1 additions
and
31 deletions
+1
-31
src/attr.c
+0
-2
src/attrcache.c
+0
-2
src/checkout.c
+0
-2
src/config_file.c
+0
-2
src/diff_driver.c
+0
-2
src/fileops.c
+0
-2
src/mwindow.c
+0
-2
src/refdb_fs.c
+0
-2
src/refs.c
+0
-2
src/repository.c
+0
-1
src/sortedcache.c
+0
-2
src/strmap.c
+1
-1
src/strmap.h
+0
-3
src/transaction.c
+0
-2
src/tree.c
+0
-2
tests/core/strmap.c
+0
-2
No files found.
src/attr.c
View file @
13c3bc9a
...
...
@@ -7,8 +7,6 @@
#include "git2/oid.h"
#include <ctype.h>
GIT__USE_STRMAP
const
char
*
git_attr__true
=
"[internal]__TRUE__"
;
const
char
*
git_attr__false
=
"[internal]__FALSE__"
;
const
char
*
git_attr__unset
=
"[internal]__UNSET__"
;
...
...
src/attrcache.c
View file @
13c3bc9a
...
...
@@ -5,8 +5,6 @@
#include "sysdir.h"
#include "ignore.h"
GIT__USE_STRMAP
GIT_INLINE
(
int
)
attr_cache_lock
(
git_attr_cache
*
cache
)
{
GIT_UNUSED
(
cache
);
/* avoid warning if threading is off */
...
...
src/checkout.c
View file @
13c3bc9a
...
...
@@ -35,8 +35,6 @@
#include "pool.h"
#include "strmap.h"
GIT__USE_STRMAP
/* See docs/checkout-internals.md for more information */
enum
{
...
...
src/config_file.c
View file @
13c3bc9a
...
...
@@ -21,8 +21,6 @@
#include <sys/types.h>
#include <regex.h>
GIT__USE_STRMAP
typedef
struct
cvar_t
{
struct
cvar_t
*
next
;
git_config_entry
*
entry
;
...
...
src/diff_driver.c
View file @
13c3bc9a
...
...
@@ -16,8 +16,6 @@
#include "config.h"
#include "repository.h"
GIT__USE_STRMAP
typedef
enum
{
DIFF_DRIVER_AUTO
=
0
,
DIFF_DRIVER_BINARY
=
1
,
...
...
src/fileops.c
View file @
13c3bc9a
...
...
@@ -13,8 +13,6 @@
#include "win32/findfile.h"
#endif
GIT__USE_STRMAP
int
git_futils_mkpath2file
(
const
char
*
file_path
,
const
mode_t
mode
)
{
return
git_futils_mkdir
(
...
...
src/mwindow.c
View file @
13c3bc9a
...
...
@@ -14,8 +14,6 @@
#include "strmap.h"
#include "pack.h"
GIT__USE_STRMAP
#define DEFAULT_WINDOW_SIZE \
(sizeof(void*) >= 8 \
? 1 * 1024 * 1024 * 1024 \
...
...
src/refdb_fs.c
View file @
13c3bc9a
...
...
@@ -26,8 +26,6 @@
#include <git2/sys/refs.h>
#include <git2/sys/reflog.h>
GIT__USE_STRMAP
#define DEFAULT_NESTING_LEVEL 5
#define MAX_NESTING_LEVEL 10
...
...
src/refs.c
View file @
13c3bc9a
...
...
@@ -26,8 +26,6 @@
bool
git_reference__enable_symbolic_ref_target_validation
=
true
;
GIT__USE_STRMAP
#define DEFAULT_NESTING_LEVEL 5
#define MAX_NESTING_LEVEL 10
...
...
src/repository.c
View file @
13c3bc9a
...
...
@@ -30,7 +30,6 @@
#include "submodule.h"
#include "worktree.h"
GIT__USE_STRMAP
#include "strmap.h"
#ifdef GIT_WIN32
...
...
src/sortedcache.c
View file @
13c3bc9a
#include "sortedcache.h"
GIT__USE_STRMAP
int
git_sortedcache_new
(
git_sortedcache
**
out
,
size_t
item_path_offset
,
...
...
src/strmap.c
View file @
13c3bc9a
...
...
@@ -7,7 +7,7 @@
#include "strmap.h"
GIT__USE_STRMAP
__KHASH_IMPL
(
str
,
static
kh_inline
,
const
char
*
,
void
*
,
1
,
kh_str_hash_func
,
kh_str_hash_equal
)
int
git_strmap_alloc
(
git_strmap
**
map
)
{
...
...
src/strmap.h
View file @
13c3bc9a
...
...
@@ -20,9 +20,6 @@ __KHASH_TYPE(str, const char *, void *)
typedef
khash_t
(
str
)
git_strmap
;
typedef
khiter_t
git_strmap_iter
;
#define GIT__USE_STRMAP \
__KHASH_IMPL(str, static kh_inline, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
int
git_strmap_alloc
(
git_strmap
**
map
);
#define git_strmap_free(h) git_strmap__free(h); (h) = NULL
...
...
src/transaction.c
View file @
13c3bc9a
...
...
@@ -19,8 +19,6 @@
#include "git2/sys/refs.h"
#include "git2/sys/refdb_backend.h"
GIT__USE_STRMAP
typedef
enum
{
TRANSACTION_NONE
,
TRANSACTION_REFS
,
...
...
src/tree.c
View file @
13c3bc9a
...
...
@@ -20,8 +20,6 @@
#define TREE_ENTRY_CHECK_NAMELEN(n) \
if (n > UINT16_MAX) { giterr_set(GITERR_INVALID, "tree entry path too long"); }
GIT__USE_STRMAP
static
bool
valid_filemode
(
const
int
filemode
)
{
return
(
filemode
==
GIT_FILEMODE_TREE
...
...
tests/core/strmap.c
View file @
13c3bc9a
#include "clar_libgit2.h"
#include "strmap.h"
GIT__USE_STRMAP
git_strmap
*
g_table
;
void
test_core_strmap__initialize
(
void
)
...
...
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