merk/include/tree.h

19 lines
529 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 read_tree(FileInfoBuffer*, char*);
#endif // TREE_H