base85.h: move declarations for base85.c functions from cache.h
Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elijah Newren committed
Apr 22, 2023 at 20:17 UTC
9b5041f647fa5d9921b9b4f8be6b36cb39591166
5 files changed
+11
-5
apply.c
+1
@@ -10,6 +10,7 @@
10
#include "cache.h"
11
#include "abspath.h"
12
#include "alloc.h"
13
+#include "base85.h"
14
#include "config.h"
15
#include "object-store.h"
16
#include "blob.h"
base85.c
+2
-1
@@ -1,4 +1,5 @@
1
-#include "cache.h"
1
+#include "git-compat-util.h"
2
+#include "base85.h"
3
4
#undef DEBUG_85
5
base85.h
new
+7
@@ -0,0 +1,7 @@
1
+#ifndef BASE85_H
2
+#define BASE85_H
3
+
4
+int decode_85(char *dst, const char *line, int linelen);
5
+void encode_85(char *buf, const unsigned char *data, int bytes);
6
+
7
+#endif /* BASE85_H */
cache.h
-4
@@ -593,10 +593,6 @@ int df_name_compare(const char *name1, size_t len1, int mode1,
593
int name_compare(const char *name1, size_t len1, const char *name2, size_t len2);
594
int cache_name_stage_compare(const char *name1, int len1, int stage1, const char *name2, int len2, int stage2);
595
596
-/* base85 */
597
-int decode_85(char *dst, const char *line, int linelen);
598
-void encode_85(char *buf, const unsigned char *data, int bytes);
599
-
596
/* pkt-line.c */
597
void packet_trace_identity(const char *prog);
598
diff.c
+1
@@ -4,6 +4,7 @@
4
#include "cache.h"
5
#include "abspath.h"
6
#include "alloc.h"
7
+#include "base85.h"
8
#include "config.h"
9
#include "convert.h"
10
#include "environment.h"