20 lines
602 B
C
20 lines
602 B
C
#ifndef TREE_H
|
|
#define TREE_H
|
|
|
|
#include <zlib.h>
|
|
#include <errno.h>
|
|
|
|
#include "hash.h"
|
|
#include "file.h"
|
|
#include "myers.h"
|
|
#include "utilities.h"
|
|
|
|
#define IS_ALPHA(c) ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
|
|
#define IS_DIGIT(c) (c >= '0' && c <= '9')
|
|
#define IS_ALNUM(c) (IS_ALPHA(c) || IS_DIGIT(c))
|
|
#define IS_PUNCT(c) ((c >= 33 && c <= 47) || (c >= 58 && c <= 64) || (c >= 91 && c <= 96) || (c >= 123 && c <= 126))
|
|
|
|
void snapshot_tree(FileInfoBuffer*, char*);
|
|
int save_tree_diff(FileInfoBuffer*, char*, char*, size_t, char*, char*);
|
|
int read_tree(FileInfoBuffer*, char*);
|
|
#endif // TREE_H
|