summaryrefslogtreecommitdiff
path: root/include/git2/errors.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2012-06-22 21:25:17 +0200
committerVicent Marti <tanoku@gmail.com>2012-06-22 21:25:17 +0200
commit798e4d53dcd2f5340782083130c0fb5227d596ac (patch)
tree8728939b3b0635833c36de2b0805e77464e50c28 /include/git2/errors.h
parent2ae052d1b1574d1a4de402c91ebb98f061c997d4 (diff)
downloadlibgit2-798e4d53dcd2f5340782083130c0fb5227d596ac.tar.gz
amigaos: Cleanup
Diffstat (limited to 'include/git2/errors.h')
-rw-r--r--include/git2/errors.h40
1 files changed, 1 insertions, 39 deletions
diff --git a/include/git2/errors.h b/include/git2/errors.h
index b4809fe1..ca7f0de6 100644
--- a/include/git2/errors.h
+++ b/include/git2/errors.h
@@ -17,44 +17,6 @@
*/
GIT_BEGIN_DECL
-#ifdef GIT_OLD_ERRORS
-enum {
- GIT_SUCCESS = 0,
- GIT_ERROR = -1,
- GIT_ENOTOID = -2,
- GIT_ENOTFOUND = -3,
- GIT_ENOMEM = -4,
- GIT_EOSERR = -5,
- GIT_EOBJTYPE = -6,
- GIT_ENOTAREPO = -7,
- GIT_EINVALIDTYPE = -8,
- GIT_EMISSINGOBJDATA = -9,
- GIT_EPACKCORRUPTED = -10,
- GIT_EFLOCKFAIL = -11,
- GIT_EZLIB = -12,
- GIT_EBUSY = -13,
- GIT_EBAREINDEX = -14,
- GIT_EINVALIDREFNAME = -15,
- GIT_EREFCORRUPTED = -16,
- GIT_ETOONESTEDSYMREF = -17,
- GIT_EPACKEDREFSCORRUPTED = -18,
- GIT_EINVALIDPATH = -19,
- GIT_EREVWALKOVER = -20,
- GIT_EINVALIDREFSTATE = -21,
- GIT_ENOTIMPLEMENTED = -22,
- GIT_EEXISTS = -23,
- GIT_EOVERFLOW = -24,
- GIT_ENOTNUM = -25,
- GIT_ESTREAM = -26,
- GIT_EINVALIDARGS = -27,
- GIT_EOBJCORRUPTED = -28,
- GIT_EAMBIGUOUS = -29,
- GIT_EPASSTHROUGH = -30,
- GIT_ENOMATCH = -31,
- GIT_ESHORTBUFFER = -32,
-};
-#else
-
/** Generic return codes */
enum {
GIT_OK = 0,
@@ -67,13 +29,13 @@ enum {
GIT_PASSTHROUGH = -30,
GIT_REVWALKOVER = -31,
};
-#endif
typedef struct {
char *message;
int klass;
} git_error;
+/** Error classes */
typedef enum {
GITERR_NOMEMORY,
GITERR_OS,