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>
This commit is contained in:
Elijah Newren 2023-04-22 20:17:13 +00:00 committed by Junio C Hamano
parent d5fff46f40
commit 9b5041f647
5 changed files with 11 additions and 5 deletions

View File

@ -10,6 +10,7 @@
#include "cache.h"
#include "abspath.h"
#include "alloc.h"
#include "base85.h"
#include "config.h"
#include "object-store.h"
#include "blob.h"

View File

@ -1,4 +1,5 @@
#include "cache.h"
#include "git-compat-util.h"
#include "base85.h"
#undef DEBUG_85

7
base85.h Normal file
View File

@ -0,0 +1,7 @@
#ifndef BASE85_H
#define BASE85_H
int decode_85(char *dst, const char *line, int linelen);
void encode_85(char *buf, const unsigned char *data, int bytes);
#endif /* BASE85_H */

View File

@ -593,10 +593,6 @@ int df_name_compare(const char *name1, size_t len1, int mode1,
int name_compare(const char *name1, size_t len1, const char *name2, size_t len2);
int cache_name_stage_compare(const char *name1, int len1, int stage1, const char *name2, int len2, int stage2);
/* base85 */
int decode_85(char *dst, const char *line, int linelen);
void encode_85(char *buf, const unsigned char *data, int bytes);
/* pkt-line.c */
void packet_trace_identity(const char *prog);

1
diff.c
View File

@ -4,6 +4,7 @@
#include "cache.h"
#include "abspath.h"
#include "alloc.h"
#include "base85.h"
#include "config.h"
#include "convert.h"
#include "environment.h"