mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-11 11:15:07 +00:00
Merge pull request #827 from schu/cleanup-error-cruft
Remove old error handling code
This commit is contained in:
commit
5a8204f8a8
10
src/common.h
10
src/common.h
@ -49,15 +49,6 @@
|
||||
|
||||
#include <regex.h>
|
||||
|
||||
extern void git___throw(const char *, ...) GIT_FORMAT_PRINTF(1, 2);
|
||||
#define git__throw(error, ...) \
|
||||
(git___throw(__VA_ARGS__), error)
|
||||
|
||||
extern void git___rethrow(const char *, ...) GIT_FORMAT_PRINTF(1, 2);
|
||||
#define git__rethrow(error, ...) \
|
||||
(git___rethrow(__VA_ARGS__), error)
|
||||
|
||||
|
||||
#define GITERR_CHECK_ALLOC(ptr) if (ptr == NULL) { return -1; }
|
||||
|
||||
void giterr_set_oom(void);
|
||||
@ -68,5 +59,4 @@ void giterr_set_regex(const regex_t *regex, int error_code);
|
||||
|
||||
#include "util.h"
|
||||
|
||||
|
||||
#endif /* INCLUDE_common_h__ */
|
||||
|
@ -10,10 +10,6 @@
|
||||
#include "mwindow.h"
|
||||
|
||||
typedef struct {
|
||||
struct {
|
||||
char last[1024];
|
||||
} error;
|
||||
|
||||
git_error *last_error;
|
||||
git_error error_t;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user