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
1d50f955
Commit
1d50f955
authored
Mar 20, 2017
by
Edward Thomson
Committed by
GitHub
Mar 20, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4166 from pks-t/pks/map-free-fix
Remove `map_free` macros
parents
31059923
94af9155
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
9 additions
and
15 deletions
+9
-15
src/checkout.c
+1
-2
src/idxmap.c
+1
-1
src/idxmap.h
+1
-2
src/offmap.c
+1
-1
src/offmap.h
+1
-2
src/oidmap.c
+1
-1
src/oidmap.h
+1
-2
src/strmap.c
+1
-1
src/strmap.h
+1
-3
No files found.
src/checkout.c
View file @
1d50f955
...
...
@@ -2319,8 +2319,6 @@ static void checkout_data_clear(checkout_data *data)
git__free
(
data
->
pfx
);
data
->
pfx
=
NULL
;
git_strmap_free
(
data
->
mkdir_map
);
git_buf_free
(
&
data
->
target_path
);
git_buf_free
(
&
data
->
tmp
);
...
...
@@ -2328,6 +2326,7 @@ static void checkout_data_clear(checkout_data *data)
data
->
index
=
NULL
;
git_strmap_free
(
data
->
mkdir_map
);
data
->
mkdir_map
=
NULL
;
git_attr_session__free
(
&
data
->
attr_session
);
}
...
...
src/idxmap.c
View file @
1d50f955
...
...
@@ -99,7 +99,7 @@ void git_idxmap_icase_resize(git_idxmap_icase *map, size_t size)
kh_resize
(
idxicase
,
map
,
size
);
}
void
git_idxmap_
_
free
(
git_idxmap
*
map
)
void
git_idxmap_free
(
git_idxmap
*
map
)
{
kh_destroy
(
idx
,
map
);
}
...
...
src/idxmap.h
View file @
1d50f955
...
...
@@ -39,8 +39,7 @@ int git_idxmap_has_data(git_idxmap *map, size_t idx);
void
git_idxmap_resize
(
git_idxmap
*
map
,
size_t
size
);
void
git_idxmap_icase_resize
(
git_idxmap_icase
*
map
,
size_t
size
);
#define git_idxmap_free(h) git_idxmap__free(h); (h) = NULL
void
git_idxmap__free
(
git_idxmap
*
map
);
void
git_idxmap_free
(
git_idxmap
*
map
);
void
git_idxmap_clear
(
git_idxmap
*
map
);
void
git_idxmap_delete_at
(
git_idxmap
*
map
,
size_t
idx
);
...
...
src/offmap.c
View file @
1d50f955
...
...
@@ -14,7 +14,7 @@ git_offmap *git_offmap_alloc(void)
return
kh_init
(
off
);
}
void
git_offmap_
_
free
(
git_offmap
*
map
)
void
git_offmap_free
(
git_offmap
*
map
)
{
kh_destroy
(
off
,
map
);
}
...
...
src/offmap.h
View file @
1d50f955
...
...
@@ -21,8 +21,7 @@ __KHASH_TYPE(off, git_off_t, void *)
typedef
khash_t
(
off
)
git_offmap
;
git_offmap
*
git_offmap_alloc
(
void
);
#define git_offmap_free(h) git_offmap__free(h); (h) = NULL
void
git_offmap__free
(
git_offmap
*
map
);
void
git_offmap_free
(
git_offmap
*
map
);
void
git_offmap_clear
(
git_offmap
*
map
);
size_t
git_offmap_num_entries
(
git_offmap
*
map
);
...
...
src/oidmap.c
View file @
1d50f955
...
...
@@ -21,7 +21,7 @@ git_oidmap *git_oidmap_alloc()
return
kh_init
(
oid
);
}
void
git_oidmap_
_
free
(
git_oidmap
*
map
)
void
git_oidmap_free
(
git_oidmap
*
map
)
{
kh_destroy
(
oid
,
map
);
}
...
...
src/oidmap.h
View file @
1d50f955
...
...
@@ -21,8 +21,7 @@ __KHASH_TYPE(oid, const git_oid *, void *)
typedef
khash_t
(
oid
)
git_oidmap
;
git_oidmap
*
git_oidmap_alloc
(
void
);
#define git_oidmap_free(h) git_oidmap__free(h); (h) = NULL
void
git_oidmap__free
(
git_oidmap
*
map
);
void
git_oidmap_free
(
git_oidmap
*
map
);
void
git_oidmap_clear
(
git_oidmap
*
map
);
size_t
git_oidmap_size
(
git_oidmap
*
map
);
...
...
src/strmap.c
View file @
1d50f955
...
...
@@ -19,7 +19,7 @@ int git_strmap_alloc(git_strmap **map)
return
0
;
}
void
git_strmap_
_
free
(
git_strmap
*
map
)
void
git_strmap_free
(
git_strmap
*
map
)
{
kh_destroy
(
str
,
map
);
}
...
...
src/strmap.h
View file @
1d50f955
...
...
@@ -21,9 +21,7 @@ typedef khash_t(str) git_strmap;
typedef
khiter_t
git_strmap_iter
;
int
git_strmap_alloc
(
git_strmap
**
map
);
#define git_strmap_free(h) git_strmap__free(h); (h) = NULL
void
git_strmap__free
(
git_strmap
*
map
);
void
git_strmap_free
(
git_strmap
*
map
);
void
git_strmap_clear
(
git_strmap
*
map
);
size_t
git_strmap_num_entries
(
git_strmap
*
map
);
...
...
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