summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-01-17 10:42:51 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2019-01-17 10:53:41 +0000
commit90046899572f7230ceeab5fef3a909f53f817ba1 (patch)
tree8b800b158025446101bbe03188a5f76b604de7d9
parent628ebc5168ca83d87b1d2fd2a0ad4095e47b0af2 (diff)
downloadlibgit2-90046899572f7230ceeab5fef3a909f53f817ba1.tar.gz
object_type: mark old values as deprecated
Mark old object type values as `static const` so that we can mark them as deprecated with the `GIT_DEPRECATED` macro.
-rw-r--r--include/git2/types.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/git2/types.h b/include/git2/types.h
index 2074ca934..f5517b807 100644
--- a/include/git2/types.h
+++ b/include/git2/types.h
@@ -450,16 +450,16 @@ typedef struct git_mailmap git_mailmap;
/**@{*/
-#define GIT_OBJ_ANY GIT_OBJECT_ANY
-#define GIT_OBJ_BAD GIT_OBJECT_BAD
-#define GIT_OBJ__EXT1 0
-#define GIT_OBJ_COMMIT GIT_OBJECT_COMMIT
-#define GIT_OBJ_TREE GIT_OBJECT_TREE
-#define GIT_OBJ_BLOB GIT_OBJECT_BLOB
-#define GIT_OBJ_TAG GIT_OBJECT_TAG
-#define GIT_OBJ__EXT2 5
-#define GIT_OBJ_OFS_DELTA GIT_OBJECT_OFS_DELTA
-#define GIT_OBJ_REF_DELTA GIT_OBJECT_REF_DELTA
+GIT_DEPRECATED(static const int) GIT_OBJ_ANY = GIT_OBJECT_ANY;
+GIT_DEPRECATED(static const int) GIT_OBJ_BAD = GIT_OBJECT_BAD;
+GIT_DEPRECATED(static const int) GIT_OBJ__EXT1 = 0;
+GIT_DEPRECATED(static const int) GIT_OBJ_COMMIT = GIT_OBJECT_COMMIT;
+GIT_DEPRECATED(static const int) GIT_OBJ_TREE = GIT_OBJECT_TREE;
+GIT_DEPRECATED(static const int) GIT_OBJ_BLOB = GIT_OBJECT_BLOB;
+GIT_DEPRECATED(static const int) GIT_OBJ_TAG = GIT_OBJECT_TAG;
+GIT_DEPRECATED(static const int) GIT_OBJ__EXT2 = 5;
+GIT_DEPRECATED(static const int) GIT_OBJ_OFS_DELTA = GIT_OBJECT_OFS_DELTA;
+GIT_DEPRECATED(static const int) GIT_OBJ_REF_DELTA = GIT_OBJECT_REF_DELTA;
#define git_otype git_object_t