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
da533495
Commit
da533495
authored
May 18, 2011
by
Jakob Pfender
Committed by
Vicent Marti
May 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hashtable.c: Move to new error handling mechanism
parent
d3ca89fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/hashtable.c
+2
-2
No files found.
src/hashtable.c
View file @
da533495
...
@@ -110,7 +110,7 @@ static int node_insert(git_hashtable *self, git_hashtable_node *new_node)
...
@@ -110,7 +110,7 @@ static int node_insert(git_hashtable *self, git_hashtable_node *new_node)
}
}
if
(
self
->
is_resizing
)
if
(
self
->
is_resizing
)
return
GIT_EBUSY
;
return
git__throw
(
GIT_EBUSY
,
"Failed to insert node. Hashtable is currently resizing"
)
;
resize_to
(
self
,
self
->
size
*
2
);
resize_to
(
self
,
self
->
size
*
2
);
git_hashtable_insert
(
self
,
new_node
->
key
,
new_node
->
value
);
git_hashtable_insert
(
self
,
new_node
->
key
,
new_node
->
value
);
...
@@ -248,7 +248,7 @@ int git_hashtable_remove(git_hashtable *self, const void *key)
...
@@ -248,7 +248,7 @@ int git_hashtable_remove(git_hashtable *self, const void *key)
}
}
}
}
return
GIT_ENOTFOUND
;
return
git__throw
(
GIT_ENOTFOUND
,
"Failed to remove entry. Entry not found"
)
;
}
}
int
git_hashtable_merge
(
git_hashtable
*
self
,
git_hashtable
*
other
)
int
git_hashtable_merge
(
git_hashtable
*
self
,
git_hashtable
*
other
)
...
...
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